From 9086123240f63b103a2249492f7564ee22c3747e Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Wed, 2 Sep 2026 19:17:40 +0700 Subject: [PATCH] Fix messy Stash header/toolbar layout on mobile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Let the title badges (Encrypted · Syncs everywhere · sats) wrap gracefully instead of colliding with the toolbar controls - Hide the list/grid view toggle on the empty state (nothing to toggle) so it no longer clutters the space next to the Add button - Give the title row room to grow on mobile (min-h-14 + padding) instead of forcing everything into a fixed 56px row - Make the search input flex-fill and shrink the category select on small screens so the filter bar no longer overflows - Add aria-labels to the view-toggle buttons Co-authored-by: shakespeare.diy --- src/pages/StashPage.tsx | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/pages/StashPage.tsx b/src/pages/StashPage.tsx index b4c5ad1..9669022 100644 --- a/src/pages/StashPage.tsx +++ b/src/pages/StashPage.tsx @@ -705,8 +705,8 @@ export default function StashPage() {
{/* Title row */} -
-
+
+
@@ -717,26 +717,29 @@ export default function StashPage() {
)}
-
+

My Stash

-
- Encrypted +
+ Encrypted · - Syncs everywhere + Syncs everywhere {stats.totalValue > 0 && ( <>· - {stats.totalValue > 999 ? Math.floor(stats.totalValue / 1000) + 'k' : stats.totalValue} sats + {stats.totalValue > 999 ? Math.floor(stats.totalValue / 1000) + 'k' : stats.totalValue} sats )}
-
-
- - -
+
+ {/* View toggle — only useful when there are items to view */} + {stats.total > 0 && ( +
+ + +
+ )} {/* Mobile-only quick add — desktop has sidebar buttons */} -
+
addItem.mutate(item)} mode="stash" />
@@ -763,12 +766,12 @@ export default function StashPage() { {/* ── Filter bar ── */}
-
+
setSearchQuery(e.target.value)} className="pl-8 h-8 bg-white/4 border-white/8 text-sm placeholder:text-gray-600 focus:border-[#ff6600]/50" />