Skip to content

Commit

Permalink
fix: tab ui style (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
haitaodesign authored Nov 17, 2023
1 parent 5d6419f commit 6e1638e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion datasophon-ui/src/pages/serviceManage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<a-icon type="down" />
</div>
</a-dropdown>
<div v-else class="webui" :style="{left: serviceName === 'YARN' ? '280px' : '200px'}">
<div v-else class="webui" :style="{left: getWebUIWidth(serviceName)}">
WebUI
<a-icon type="down" />
</div>
Expand Down Expand Up @@ -90,6 +90,13 @@ export default {
}
},
methods: {
getWebUIWidth (serviceName) {
if (serviceName === 'KRBCLIENT') {
return '136px'
} else {
return serviceName === 'YARN' ? '280px' : '200px'
}
},
handleMenuClick(item) {
let url = this.webUis[item.key].webUrl
window.open(url)
Expand Down

0 comments on commit 6e1638e

Please sign in to comment.