@jetbrains/kotlin-web-site-ui 4.4.3 → 4.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,9 +46,9 @@ const Header = forwardRef(({
46
46
  useImperativeHandle(forwardedRef, () => headerRef.current);
47
47
  const [isMenuPopupVisible, setMenuPopupVisible] = useState(false);
48
48
  useLayoutEffect(() => {
49
- setMenuPopupVisible((headerRef.current?.getBoundingClientRect?.().width ?? 0) <= MENU_POPUP_BREAKPOINT);
49
+ setMenuPopupVisible((headerRef.current?.getBoundingClientRect?.().width ?? Infinity) <= MENU_POPUP_BREAKPOINT);
50
50
  }, [headerRef]);
51
- useResizeObserver(headerRef, entry => setMenuPopupVisible(entry.contentRect.width <= MENU_POPUP_BREAKPOINT));
51
+ useResizeObserver(headerRef, entry => setMenuPopupVisible(!!entry.contentRect.width && entry.contentRect.width <= MENU_POPUP_BREAKPOINT));
52
52
  const handleSearchButtonClick = useCallback(() => {
53
53
  setSearchBoxVisible(!isSearchBoxVisible);
54
54
  }, []);
@@ -270,6 +270,13 @@
270
270
  color: #ffffff;
271
271
  }
272
272
 
273
+ @media (max-width: 640px) {
274
+
275
+ .ktl-search-button-module_button_YHJPv {
276
+ display: none
277
+ }
278
+ }
279
+
273
280
  .ktl-result-module_result_EKhUw {
274
281
  box-sizing: border-box;
275
282
  display: block;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jetbrains/kotlin-web-site-ui",
3
3
  "description": "UI components for Kotlin web sites development",
4
- "version": "4.4.3",
4
+ "version": "4.4.5",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
7
7
  "files": [