From 80ed646dd4bfc8987b3c1af9e58eb374e2766d2e Mon Sep 17 00:00:00 2001 From: Gigi Date: Sun, 2 Nov 2025 18:47:10 +0100 Subject: [PATCH] feat: move add bookmark button to filter bar - Move add bookmark button from web section header to filter bar - Position button on the right side of filter bar - Remove conditional rendering (always show button) - Add bookmark-filters-wrapper styling for proper layout --- src/components/BookmarkList.tsx | 26 +++++++++++++------------- src/styles/layout/sidebar.css | 15 +++++++++++++++ 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/src/components/BookmarkList.tsx b/src/components/BookmarkList.tsx index 4026b085..be35050a 100644 --- a/src/components/BookmarkList.tsx +++ b/src/components/BookmarkList.tsx @@ -247,10 +247,19 @@ export const BookmarkList: React.FC = ({ /> {allIndividualBookmarks.length > 0 && ( - +
+ + setShowAddModal(true)} + title="Add web bookmark" + ariaLabel="Add web bookmark" + className="bookmark-section-action" + /> +
)} {!activeAccount ? ( @@ -287,15 +296,6 @@ export const BookmarkList: React.FC = ({

{section.title}

- {section.key === 'web' && activeAccount && ( - setShowAddModal(true)} - title="Add web bookmark" - ariaLabel="Add web bookmark" - className="bookmark-section-action" - /> - )}
{section.items.map((individualBookmark, index) => ( diff --git a/src/styles/layout/sidebar.css b/src/styles/layout/sidebar.css index c5da9b7a..5e1579a9 100644 --- a/src/styles/layout/sidebar.css +++ b/src/styles/layout/sidebar.css @@ -267,6 +267,21 @@ .read-inline-btn:hover { background: rgb(22 163 74); /* green-600 */ } /* Bookmark filters */ +.bookmark-filters-wrapper { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0.5rem 1rem; + border-bottom: 1px solid var(--color-border); + background: var(--color-bg); +} + +.bookmark-filters-wrapper > .bookmark-filters { + padding: 0; + border-bottom: none; + background: transparent; +} + .bookmark-filters { display: flex; gap: 0.5rem;