From 90a6d26e3bab3d864ed69a7a3cc9b5595777721d Mon Sep 17 00:00:00 2001 From: toddriley Date: Fri, 6 Oct 2023 16:39:22 -0400 Subject: [PATCH] Show sub nav on all screen sizes. --- docs/src/components/HeadingLanguageSelect.tsx | 18 +++++++++++++-- docs/src/lib/useResizing.ts | 23 +++++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 docs/src/lib/useResizing.ts diff --git a/docs/src/components/HeadingLanguageSelect.tsx b/docs/src/components/HeadingLanguageSelect.tsx index 73f85875..69401df6 100644 --- a/docs/src/components/HeadingLanguageSelect.tsx +++ b/docs/src/components/HeadingLanguageSelect.tsx @@ -3,6 +3,7 @@ import { PathParts, languageSlugsToLabels, } from "@/lib/languageFromPath"; +import { useResizing } from "@/lib/useResizing"; import clsx from "clsx"; import { Dispatch, SetStateAction } from "react"; import { Button } from "./Button"; @@ -22,8 +23,9 @@ export function HeadingLanguageSelect({ isOpen, handleChange, }: HeadingLanguageSelectProps) { + const resizing = useResizing(); return ( -
+