Skip to content

Commit 23638f3

Browse files
authored
Merge pull request #4163 from nextcloud/fix/misc
fix scrolling in list view
2 parents 3bca510 + 39a1076 commit 23638f3

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/components/Base/modules/HeaderBar.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ function toggleClamp() {
4343
}
4444
4545
.header_bar {
46-
position: sticky;
47-
top: 0;
4846
margin-inline: -8px;
4947
padding-inline: 56px 8px;
5048
background-color: var(--color-main-background);
51-
z-index: 9;
5249
transition: all var(--animation-slow) linear;
50+
&.sticky-top {
51+
z-index: 9;
52+
}
5353
5454
&::after {
5555
border-top: 1px solid var(--color-border);

src/views/Vote.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ onUnmounted(() => {
174174

175175
<VoteInfoCards class="sticky-left" />
176176

177-
<IntersectionObserver id="table-observer" v-model="tableSticky" />
177+
<IntersectionObserver
178+
v-if="pollStore.viewMode === 'table-view'"
179+
id="table-observer"
180+
v-model="tableSticky" />
178181

179182
<VoteTable
180183
v-show="optionsStore.options.length"

0 commit comments

Comments
 (0)