Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: show the scroll bar permanently visible if there are +5 plugins …
Browse files Browse the repository at this point in the history
…installed
  • Loading branch information
brenopolanski committed Mar 13, 2020
1 parent 6028deb commit 0cb716e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/renderer/components/App/AppSidemenu/AppSidemenuPlugins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
v-click-outside="emitClose"
:class="{
'AppSidemenuPlugins--horizontal': isHorizontal,
'AppSidemenuPlugins__scrollable--horizontal': isHorizontal && pluginMenuItems.length >= 5,
'AppSidemenuPlugins': !isHorizontal,
'AppSidemenuPlugins__scrollable': !isHorizontal && pluginMenuItems.length >= 5,
'AppSidemenuPlugins--single': pluginMenuItems.length === 1
}"
class="absolute z-20 theme-dark"
Expand Down Expand Up @@ -77,7 +79,10 @@ export default {
transform: translateY(-10%);
}
.AppSidemenuPlugins .MenuOptions {
@apply .flex-col .max-h-xs .overflow-y-auto;
@apply .flex-col .max-h-xs;
}
.AppSidemenuPlugins__scrollable .MenuOptions {
@apply .flex-col .max-h-xs .overflow-y-scroll;
}
.AppSidemenuPlugins--single {
Expand All @@ -90,6 +95,9 @@ export default {
top: 5.75rem;
}
.AppSidemenuPlugins--horizontal .MenuOptions {
@apply .flex-col .max-h-xs .overflow-y-auto;
@apply .flex-col .max-h-xs;
}
.AppSidemenuPlugins__scrollable--horizontal .MenuOptions {
@apply .flex-col .max-h-xs .overflow-y-scroll;
}
</style>

0 comments on commit 0cb716e

Please sign in to comment.