From 44bdf4cd266fd5ac8512cb59606c9e71d2ad1840 Mon Sep 17 00:00:00 2001 From: Rahul Tripathi Date: Mon, 26 Jun 2023 14:39:37 +0530 Subject: [PATCH] #2267 fix styling for highlight bar in mobile. --- packages/web/components/patterns/HighlightBar.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/web/components/patterns/HighlightBar.tsx b/packages/web/components/patterns/HighlightBar.tsx index 98a92a39a..ba6fe5983 100644 --- a/packages/web/components/patterns/HighlightBar.tsx +++ b/packages/web/components/patterns/HighlightBar.tsx @@ -48,7 +48,7 @@ export function HighlightBar(props: HighlightBarProps): JSX.Element { }), ...(props.displayAtBottom && { '@smDown': { - maxWidth: '85%', + maxWidth: '90vw', bottom: `calc(28px + ${ isAndroid() ? 30 : 0 }px + env(safe-area-inset-bottom, 40px))`, @@ -89,7 +89,7 @@ function BarButton({ text, title, iconElement, onClick }: BarButtonProps) { + } onClick={() => props.handleButtonClick('delete')} /> @@ -143,7 +143,7 @@ function BarContent(props: HighlightBarProps): JSX.Element { text="Labels" title="Set Labels" iconElement={ - + } onClick={() => props.handleButtonClick('setHighlightLabels')} /> @@ -154,7 +154,7 @@ function BarContent(props: HighlightBarProps): JSX.Element { text="Note" title="Add Note to Highlight" iconElement={ - + } onClick={() => props.handleButtonClick('comment')} /> @@ -163,7 +163,7 @@ function BarContent(props: HighlightBarProps): JSX.Element { text="Copy" title="Copy Text to Clipboard" iconElement={ - + } onClick={() => props.handleButtonClick('copy')} />