Skip to content

Commit 8eeb6eb

Browse files
committed
style: enhance global search input and clear button styling for better responsiveness
1 parent ad2e880 commit 8eeb6eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

frontend/src/routes/+page.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,6 +1869,7 @@
18691869
18701870
.global-search input[type='search'] {
18711871
flex: 1 1 auto;
1872+
min-width: 0; /* allow shrinking inside flex */
18721873
background: transparent;
18731874
border: none;
18741875
color: var(--text-primary);
@@ -1909,6 +1910,11 @@
19091910
cursor: pointer;
19101911
padding: 0 0.25rem;
19111912
border-radius: 0.5rem;
1913+
flex: 0 0 auto; /* constrain within flex */
1914+
width: 1.6rem;
1915+
height: 1.6rem;
1916+
line-height: 1.6rem;
1917+
text-align: center;
19121918
}
19131919
19141920
.global-search .search-clear:hover,

0 commit comments

Comments
 (0)