fix(phase4): sticky nav reaches top edge and search collapses on clear
- Remove negative top margin from .favorites-nav (was -24px, now 0) - Update clearCurrentSearch() to collapse search when cleared - Add hover state to clear button for better UX cp
This commit is contained in:
1 parent
a45806e4c4
commit
92486c3943
1 file changed
+7
-1
@@ -279,6 +279,7 @@
|
||||
|
||||
function clearCurrentSearch() {
|
||||
setCurrentSearchValue('');
|
||||
searchExpanded = false;
|
||||
}
|
||||
|
||||
function getTabIcon(tab: TabType) {
|
||||
@@ -1445,7 +1446,7 @@
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px 24px;
|
||||
margin: -24px -32px 16px -32px;
|
||||
margin: 0 -32px 16px -32px;
|
||||
background-color: var(--bg-primary);
|
||||
border-bottom: 1px solid var(--bg-tertiary);
|
||||
}
|
||||
@@ -1554,6 +1555,11 @@
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.search-clear-btn:hover {
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in new issue
Block a user