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

Commit

Permalink
fix: add scrollbar to installed plugin list (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
brenopolanski committed Mar 14, 2020
1 parent 0028132 commit ef7aee9
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions src/renderer/components/App/AppSidemenu/AppSidemenuPlugins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,17 @@
:single-column="false"
class="whitespace-no-wrap"
>
<div
v-for="(columnItems, columnId) in pluginMenuItems"
:key="columnId"
>
<MenuOptionsItem
v-for="(menuItem, menuId) in columnItems"
:key="menuId"
:title="menuItem.title"
@click="navigateToRoute(menuItem.routeName)"
/>
</div>
<MenuOptionsItem
v-for="(menuItem, menuId) in pluginMenuItems"
:key="menuId"
:title="menuItem.title"
@click="navigateToRoute(menuItem.routeName)"
/>
</MenuOptions>
</div>
</template>

<script>
import { chunk } from 'lodash'
import { MenuOptions, MenuOptionsItem } from '@/components/Menu'
export default {
Expand All @@ -52,18 +46,12 @@ export default {
type: Boolean,
required: false,
default: false
},
itemsPerColumn: {
type: Number,
required: false,
default: 5
}
},
computed: {
pluginMenuItems () {
return chunk(this.$store.getters['plugin/menuItems'], this.itemsPerColumn)
return this.$store.getters['plugin/menuItems']
}
},
Expand All @@ -88,6 +76,9 @@ export default {
top: 19rem;
transform: translateY(-10%);
}
.AppSidemenuPlugins .MenuOptions {
@apply .flex-col .max-h-xs .overflow-y-auto;
}
.AppSidemenuPlugins--single {
top: 22.2rem;
Expand All @@ -98,4 +89,7 @@ export default {
right: 8.5rem;
top: 5.75rem;
}
.AppSidemenuPlugins--horizontal .MenuOptions {
@apply .flex-col .max-h-xs .overflow-y-auto;
}
</style>

0 comments on commit ef7aee9

Please sign in to comment.