Skip to content

Commit

Permalink
Tweak initial render of search icon
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-matt-hillsdon committed Apr 18, 2024
1 parent e562869 commit 6ecc85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workbench/SideBarHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const SideBarHeader = ({
const contentRect = useResizeObserverContentRect(ref);
const contentWidth = contentRect?.width ?? 0;
const searchButtonMode =
!contentWidth || contentWidth > 405 ? "button" : "icon";
contentWidth && contentWidth > 405 ? "button" : "icon";
const paddingX = 14;
const modalOffset = faceLogoRef.current
? faceLogoRef.current.getBoundingClientRect().right + paddingX
Expand Down

0 comments on commit 6ecc85f

Please sign in to comment.