From 4fd6b6e6e969d177e9e0a3fcc472d7c51f425f97 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Fri, 21 Nov 2025 13:38:18 +0000 Subject: [PATCH] style: reduce size of metadata drawer on mob --- src/containers/Entry.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/containers/Entry.tsx b/src/containers/Entry.tsx index 757be3f..78aa6b1 100644 --- a/src/containers/Entry.tsx +++ b/src/containers/Entry.tsx @@ -1,8 +1,13 @@ import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable" import EntryBody from "@/components/EntryBody" import EntryMetadata from "@/containers/EntryMetadata" +import { useIsMobile } from "@/hooks/use-mobile" export default function Entry({ entryTitle, entryBody, history, metadata, isLoading }) { + const isMobile = useIsMobile() + const bottomPanelSize = isMobile ? 0 : 25 + const handleSize = isMobile ? "5px" : "1px" + console.log(isMobile) return ( @@ -10,8 +15,9 @@ export default function Entry({ entryTitle, entryBody, history, metadata, isLoad - - + + +