From 8830773acb461ac91bf373e74cf163eb9effcd8d Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 11 Aug 2023 22:26:40 +0200 Subject: [PATCH] fix: Mobile styling bugs --- app/components/ContextMenu/index.tsx | 2 +- app/scenes/Document/components/Header.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/ContextMenu/index.tsx b/app/components/ContextMenu/index.tsx index 6c24ef1bb..c883118e0 100644 --- a/app/components/ContextMenu/index.tsx +++ b/app/components/ContextMenu/index.tsx @@ -151,7 +151,7 @@ const ContextMenu: React.FC = ({ ref={backgroundRef} hiddenScrollbars style={ - topAnchor + topAnchor && !isMobile ? { maxHeight, } diff --git a/app/scenes/Document/components/Header.tsx b/app/scenes/Document/components/Header.tsx index 05231e299..f9061521a 100644 --- a/app/scenes/Document/components/Header.tsx +++ b/app/scenes/Document/components/Header.tsx @@ -138,7 +138,7 @@ function DocumentHeader({ to={documentEditPath(document)} neutral > - {t("Edit")} + {isMobile ? null : t("Edit")}