Skip to content

Commit 62d72ce

Browse files
committed
feat(ui): sticky note header
1 parent c39437a commit 62d72ce

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

codex-ui/src/styles/z-axis.pcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
--z-popover: 3;
33
--z-navbar: calc(var(--z-popover) + 1);
44
--z-popup: calc(var(--z-navbar) + 1);
5+
--z-note-header: var(--z-navbar);
56
}

src/presentation/components/note-header/NoteHeader.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
transition: opacity 100ms;
2323
justify-content: space-between;
2424
padding: var(--spacing-s) var(--spacing-m);
25+
position: sticky;
26+
top: var(--layout-navbar-height);
27+
background-color: var(--base--bg-primary);
28+
z-index: var(--z-note-header);
2529
2630
&__left {
2731
color: var(--base--text-secondary);

0 commit comments

Comments
 (0)