fixed viewTransition bug

This commit is contained in:
liyunze 2023-08-14 16:26:28 +08:00
parent 4de61cf803
commit 763b07cbd1
2 changed files with 50 additions and 51 deletions

View file

@ -1,4 +1,4 @@
<div class="w-full">
<div transition:persist class="w-full">
<label
class="fixed flex hamburger-menu bg-primary border-2 border-solid border-gray-100 p-2 rounded-lg"
>

View file

@ -35,17 +35,14 @@ const { title, description } = Astro.props;
rel="stylesheet"
/>
<script defer src="/_vercel/insights/script.js"></script>
<ViewTransitions />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body>
<NavBar />
<slot />
<ViewTransitions />
</body>
</html>
<style is:global>
</body><style is:global>
* {
box-sizing: border-box;
margin: 0;
@ -69,7 +66,8 @@ const { title, description } = Astro.props;
code {
font-family: Menlo, Monaco, Lucida Console, Liberation Mono,
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New,
monospace;
}
nav {
@ -91,4 +89,5 @@ const { title, description } = Astro.props;
width: 100%; /* Make sure the code element takes up the full width of its container */
overflow-x: auto;
}
</style>
</style>
</html>