diff --git a/src/workbench/SideBarHeader.tsx b/src/workbench/SideBarHeader.tsx index 1677fdb1a..a3e812df2 100644 --- a/src/workbench/SideBarHeader.tsx +++ b/src/workbench/SideBarHeader.tsx @@ -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