We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e562869 commit 027bb24Copy full SHA for 027bb24
src/workbench/SideBarHeader.tsx
@@ -138,7 +138,7 @@ const SideBarHeader = ({
138
const contentRect = useResizeObserverContentRect(ref);
139
const contentWidth = contentRect?.width ?? 0;
140
const searchButtonMode =
141
- !contentWidth || contentWidth > 405 ? "button" : "icon";
+ contentWidth && contentWidth > 405 ? "button" : "icon";
142
const paddingX = 14;
143
const modalOffset = faceLogoRef.current
144
? faceLogoRef.current.getBoundingClientRect().right + paddingX
0 commit comments