Skip to content

Commit

Permalink
Hide the scrollbar using css
Browse files Browse the repository at this point in the history
Move new folder in the default template instead of list

Signed-off-by: Laurent Gabardos <l.gabardos@proton.me>
  • Loading branch information
lgabardos committed Nov 26, 2024
1 parent 3916c60 commit 1839680
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions src/components/Sidebar.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<template>
<NcAppNavigation>
<AddFeed v-if="showAddFeed" @close="closeShowAddFeed()" />
<template #search>
<NcAppNavigationNew :text="t('news', 'Subscribe')"
button-id="new-feed-button"
button-class="icon-add"
:icon="''"
@click="showShowAddFeed()">
<template #icon>
<PlusIcon />
</template>
</NcAppNavigationNew>
</template>
<template #list>
<NcAppNavigationNew :text="t('news', 'Subscribe')"
button-id="new-feed-button"
button-class="icon-add"
:icon="''"
@click="showShowAddFeed()">
<template #icon>
<PlusIcon />
</template>
</NcAppNavigationNew>
<div class="new-folder-container">
<NcAppNavigationNewItem :name="t('news', 'New folder')"
:icon="''"
@new-item="newFolder">
<template #icon>
<FolderPlusIcon />
</template>
</NcAppNavigationNewItem>
</div>
<template #list>

<NcAppNavigationItem :name="t('news', 'Unread articles')" icon="icon-rss" :to="{ name: ROUTES.UNREAD }">
<template #actions>
Expand Down Expand Up @@ -660,4 +660,15 @@ export default Vue.extend({
.button-container button {
flex: 1;
}
</style>
.new-folder-container {
padding: calc(var(--default-grid-baseline, 4px)* 2);
}
/*
* workaround remove extra scroll bar in navigation body
*/
:deep(.app-navigation__body) {
overflow-y: unset !important;
flex: 1 0 auto;
}
</style>

0 comments on commit 1839680

Please sign in to comment.