From 053d1a905ed6cef71151d168351f22b35ddca986 Mon Sep 17 00:00:00 2001 From: Olicorne <26625900+thiswillbeyourgithub@users.noreply.github.com> Date: Sun, 18 May 2025 20:45:32 +0200 Subject: fix(web): Switch to a tab view in small screens for bookmark previews * feat: Implement tabbed layout for bookmark preview content and details * feat: Enable swipe gesture to switch between content and details tabs * feat: add scroll-based tab bar hide/show functionality * fix: adjust tab bar layout to maintain content space when hidden * fix: bg-muted was stopping midway in the background * fix: disable mouse tracking for swipe detection in BookmarkPreview * fix: improve scroll behavior to prevent glitchy tab bar animation * Update apps/web/components/dashboard/preview/BookmarkPreview.tsx Co-authored-by: xuatz * Update apps/web/components/dashboard/preview/BookmarkPreview.tsx Co-authored-by: xuatz * feat: add responsive layout with tabs and swipe for BookmarkPreview * Remove react swipe, scroll handlers and do screen detection using media queries * Revert the grey background for the main content * remove react-swip from the package.json * more fixes * Fix the black area under the tab bar --------- Co-authored-by: xuatz Co-authored-by: Mohamed Bassem --- apps/web/lib/i18n/locales/en/translation.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/web/lib') diff --git a/apps/web/lib/i18n/locales/en/translation.json b/apps/web/lib/i18n/locales/en/translation.json index aef2d2a7..c26c9523 100644 --- a/apps/web/lib/i18n/locales/en/translation.json +++ b/apps/web/lib/i18n/locales/en/translation.json @@ -341,7 +341,11 @@ "preview": { "view_original": "View Original", "cached_content": "Cached Content", - "reader_view": "Reader View" + "reader_view": "Reader View", + "tabs": { + "content": "Content", + "details": "Details" + } }, "editor": { "quickly_focus": "You can quickly focus on this field by pressing ⌘ + E", -- cgit v1.2.3-70-g09d2