diff --git a/packages/web/components/patterns/HighlightBar.tsx b/packages/web/components/patterns/HighlightBar.tsx index b454cade3..1a95588b5 100644 --- a/packages/web/components/patterns/HighlightBar.tsx +++ b/packages/web/components/patterns/HighlightBar.tsx @@ -27,12 +27,12 @@ type HighlightBarProps = { anchorCoordinates: PageCoordinates isNewHighlight: boolean isSharedToFeed: boolean - isTouchscreenDevice: boolean + displayNearCursor: boolean handleButtonClick: (action: HighlightAction) => void } export function HighlightBar(props: HighlightBarProps): JSX.Element { - if (props.isTouchscreenDevice) { + if (props.displayNearCursor) { return ( - - css= - {{ - width: '350px', - background: '$grayBg', - borderRadius: '4px', - border: '1px solid $grayBorder', - boxShadow: '$cardBoxShadow', - }} - - - + + ) } }