Added navigation labels
This commit is contained in:
parent
84d29d146b
commit
c62dffbb02
2 changed files with 23 additions and 4 deletions
|
|
@ -7,6 +7,9 @@
|
||||||
@click="setThisTab"
|
@click="setThisTab"
|
||||||
>
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
<div class="tabtitle">
|
||||||
|
{{ title }}
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -32,9 +35,15 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
title: function() {
|
||||||
|
// Get the last section of a fully qualified name
|
||||||
|
var topName = this.id.split(".").pop();
|
||||||
|
// Make first character uppercase, then add the rest of the string
|
||||||
|
return topName.charAt(0).toUpperCase() + topName.slice(1);
|
||||||
|
},
|
||||||
|
|
||||||
tooltipOptions: function() {
|
tooltipOptions: function() {
|
||||||
var title = this.id.charAt(0).toUpperCase() + this.id.slice(1);
|
return `pos: right; title: ${this.title}; delay: 500`;
|
||||||
return `pos: right; title: ${title}; delay: 500`;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
classObject: function() {
|
classObject: function() {
|
||||||
|
|
@ -69,4 +78,14 @@ export default {
|
||||||
color: @inverse-primary-muted-color !important;
|
color: @inverse-primary-muted-color !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tabtitle {
|
||||||
|
max-width: 60px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabtitle a :hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<!-- Vertical tab bar -->
|
<!-- Vertical tab bar -->
|
||||||
<div
|
<div
|
||||||
id="switcher-left"
|
id="switcher-left"
|
||||||
class="uk-flex uk-flex-column uk-padding-remove uk-width-auto uk-height-1-1"
|
class="uk-flex uk-flex-column uk-padding-remove uk-width-auto uk-height-1-1 uk-text-center"
|
||||||
>
|
>
|
||||||
<tabIcon
|
<tabIcon
|
||||||
id="status"
|
id="status"
|
||||||
|
|
@ -254,7 +254,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
#switcher-left a {
|
#switcher-left a {
|
||||||
padding: 10px 16px;
|
padding: 10px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#switcher-left {
|
#switcher-left {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue