Skip to content

Commit 79fa16b

Browse files
committed
feat: fixed header
1 parent cc2f05f commit 79fa16b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/style.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
overflow-y: auto;
1616

1717
.file-header {
18+
position: sticky;
19+
top: 0;
20+
z-index: 1;
1821
background-color: var(--color-canvas-subtle);
1922
border-bottom: 1px solid var(--color-border-default);
2023
padding: 8px 16px;
2124
font-size: 12px;
22-
font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
23-
25+
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
2426
.file-info {
2527
display: flex;
2628
justify-content: space-between;

0 commit comments

Comments
 (0)