Skip to content

Commit 8070509

Browse files
committed
style(autosave): fix recent-files hover padding + text color (#288)
1 parent 3068e89 commit 8070509

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/routes/+page.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,9 +1854,10 @@
18541854
position: absolute;
18551855
top: 100%;
18561856
left: 0;
1857-
/* Bridge the gap so the mouse can cross from button to menu without
1858-
triggering mouseleave on the wrapper. */
1859-
padding-top: 4px;
1857+
/* Top padding bridges the gap so the mouse can cross from button to
1858+
menu without triggering mouseleave. The other sides are inner
1859+
panel padding so item hover doesn't touch the rounded panel edge. */
1860+
padding: 4px 4px 4px 4px;
18601861
min-width: 240px;
18611862
max-width: 360px;
18621863
z-index: var(--z-popover, 1000);
@@ -1898,6 +1899,7 @@
18981899
.recent-item:hover,
18991900
.recent-item:focus-visible {
19001901
background: var(--surface-hover);
1902+
color: var(--text);
19011903
outline: none;
19021904
}
19031905

0 commit comments

Comments
 (0)