diff --git a/reposilite-frontend/src/components/access/PrincipalsPanel.test.ts b/reposilite-frontend/src/components/access/PrincipalsPanel.test.ts index 91c1173f05..039295978f 100644 --- a/reposilite-frontend/src/components/access/PrincipalsPanel.test.ts +++ b/reposilite-frontend/src/components/access/PrincipalsPanel.test.ts @@ -180,8 +180,8 @@ describe('PrincipalsPanel', () => { await rowOf('alice').find('button[aria-haspopup="menu"]').trigger('click') - expect(rowOf('alice').classes(), 'each row is its own stacking context, so the open one needs a z-index').toContain('z-20') - expect(rowOf('bob').classes()).not.toContain('z-20') + expect(rowOf('alice').classes(), 'each row is its own stacking context, so the open one needs a z-index').toContain('z-md-sticky') + expect(rowOf('bob').classes()).not.toContain('z-md-sticky') }) it('puts the row back when the actions menu closes', async () => { @@ -190,7 +190,7 @@ describe('PrincipalsPanel', () => { await rowOf('alice').find('button[aria-haspopup="menu"]').trigger('click') - expect(rowOf('alice').classes()).not.toContain('z-20') + expect(rowOf('alice').classes()).not.toContain('z-md-sticky') }) it('builds the principal rows from the shared list rows', async () => { diff --git a/reposilite-frontend/src/components/access/PrincipalsPanel.vue b/reposilite-frontend/src/components/access/PrincipalsPanel.vue index 4c040bc915..d2a1473863 100644 --- a/reposilite-frontend/src/components/access/PrincipalsPanel.vue +++ b/reposilite-frontend/src/components/access/PrincipalsPanel.vue @@ -219,7 +219,7 @@ const deleted = (principal: PrincipalSummary) => { class="md-state-layer" :class="[ row.selected ? 'bg-secondary-container text-on-secondary-container' : '', - row.principal.name === menuRow ? 'z-20' : '' + row.principal.name === menuRow ? 'z-md-sticky' : '' ]" > > diff --git a/reposilite-frontend/src/components/card/SnippetsCard.vue b/reposilite-frontend/src/components/card/SnippetsCard.vue index f9cbaba74e..6c74236a3b 100644 --- a/reposilite-frontend/src/components/card/SnippetsCard.vue +++ b/reposilite-frontend/src/components/card/SnippetsCard.vue @@ -255,7 +255,7 @@ const selectTab = (tab: string) => >