docs: fix navigating to components from docs with small screen (#2198)

closes https://github.com/denoland/fresh/issues/2190

Marvin, I noticed that adding the fix
[here](https://github.com/denoland/fresh/blob/a8a43ff0d4ed7ae9958a09f37ce8dadf219f76e1/www/components/Header.tsx#L41)
did not resolve the issue. I see the docs say `Partials are enabled by
adding a f-client-nav attribute to an HTML element` -- is it expected
that adding `f-client-nav={false}` to a component does not automatically
apply it to html element children?
This commit is contained in:
Reed von Redwitz
2024-01-09 11:48:24 +01:00
committed by GitHub
parent 8ffe3d32aa
commit 15929d37bd
+1 -1
View File
@@ -23,7 +23,7 @@ export default function NavigationBar(
];
const isHome = props.active == "/";
return (
<nav class={"flex " + props.class ?? ""}>
<nav class={"flex " + props.class ?? ""} f-client-nav={false}>
<ul class="flex justify-center items-center gap-2 sm:gap-4 mx-4 my-2 sm:my-6 flex-wrap lg:mx-8 2xl:mr-0">
{items.map((item) => (
<li>