File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
apps/svelte.dev/src/routes/docs Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 11<script lang =" ts" >
2- import { onMount } from ' svelte' ;
32 import { goto } from ' $app/navigation' ;
4- import { page } from ' $app/stores' ;
53 import { Text } from ' @sveltejs/site-kit/components' ;
64
75 interface Props {
108
119 const { docs }: Props = $props ();
1210
13- onMount (() => {
14- const hash = $page . url .hash .slice (1 );
11+ $effect (() => {
12+ const hash = location .hash .slice (1 );
1513 if (hash === ' ' ) return ;
1614
1715 const new_docs = docs .get (hash );
4644
4745<style >
4846 .page {
49- padding : var (--sk-page-padding-top ) var (--sk-page-padding-side );
47+ padding : var (--sk-page-padding-top ) var (--sk-page-padding-side ) var ( --sk-page-padding-bottom ) ;
5048 max-width : var (--sk-page-content-width );
5149 box-sizing : content-box ;
5250 margin : auto ;
53- text-wrap : balance ;
54- }
55-
56- ul {
57- list-style-type : none ;
5851 }
5952 </style >
You can’t perform that action at this time.
0 commit comments