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:
@@ -23,7 +23,7 @@ export default function NavigationBar(
|
|||||||
];
|
];
|
||||||
const isHome = props.active == "/";
|
const isHome = props.active == "/";
|
||||||
return (
|
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">
|
<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) => (
|
{items.map((item) => (
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
Reference in New Issue
Block a user