mirror of
https://github.com/liyunze-coding/coworking-website.git
synced 2026-11-06 13:13:34 +00:00
fixed viewTransition bug
This commit is contained in:
parent
4de61cf803
commit
763b07cbd1
2 changed files with 50 additions and 51 deletions
|
|
@ -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"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue