Skip to content

Commit

Permalink
Added: Render hidden name of panels in nav bar (mbnuqw#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Jun 4, 2020
1 parent d53c67a commit 956c7fa
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sidebar/components/hidden-panels-bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
@mouseup.right="onNavRightMouseup($event, panel.index)")
img(v-if="!!panel.customIcon" :src="panel.customIcon")
svg(v-else): use(:xlink:href="'#' + panel.icon")
.name {{panel.name}}
</template>

<script>
Expand Down
3 changes: 3 additions & 0 deletions src/sidebar/components/nav-bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
svg: use(xlink:href="#icon_ok")
.err-badge
svg: use(xlink:href="#icon_err")
.name(v-if="!btn.internal") {{btn.name}}
.progress-spinner
.len(v-if="$store.state.navBtnCount && btn.len") {{btn.len}}

Expand All @@ -52,6 +53,7 @@ const HIDDEN_PANEL_BTN = {
icon: 'icon_expand',
hidden: false,
tooltip: translate('nav.show_hidden_tooltip'),
internal: true,
}
const ADD_PANEL_BTN = {
Expand All @@ -61,6 +63,7 @@ const ADD_PANEL_BTN = {
icon: 'icon_plus_v2',
hidden: false,
tooltip: translate('nav.add_panel_tooltip'),
internal: true,
}
export default {
Expand Down
3 changes: 3 additions & 0 deletions src/styles/themes/default/navigation-bar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@
#000000
)

.Sidebar .panel-btn .name
display: none

// ---
// -- Progress spinner
// -
Expand Down
2 changes: 2 additions & 0 deletions src/styles/themes/default/sidebar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ for i in 1..12
pos(calc(50% - 8px), same)
size(16px, same)
fill: var(--container-fg)
> .name
display: none
&:hover
background-color: #00000032
&:active
Expand Down
3 changes: 3 additions & 0 deletions src/styles/themes/tactile/navigation-bar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@
#000000
)

.Sidebar .panel-btn .name
display: none

// ---
// -- Progress spinner
// -
Expand Down
2 changes: 2 additions & 0 deletions src/styles/themes/tactile/sidebar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ for i in 1..12
pos(calc(50% - 8px), same)
size(16px, same)
fill: var(--container-fg)
> .name
display: none
&:hover
background-color: #00000032
&:active
Expand Down

0 comments on commit 956c7fa

Please sign in to comment.