Skip to content

Commit 027bb24

Browse files
Tweak initial render of search icon (#1173)
1 parent e562869 commit 027bb24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/workbench/SideBarHeader.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const SideBarHeader = ({
138138
const contentRect = useResizeObserverContentRect(ref);
139139
const contentWidth = contentRect?.width ?? 0;
140140
const searchButtonMode =
141-
!contentWidth || contentWidth > 405 ? "button" : "icon";
141+
contentWidth && contentWidth > 405 ? "button" : "icon";
142142
const paddingX = 14;
143143
const modalOffset = faceLogoRef.current
144144
? faceLogoRef.current.getBoundingClientRect().right + paddingX

0 commit comments

Comments
 (0)