Skip to content

Commit a053e67

Browse files
committed
simplify
1 parent baff64c commit a053e67

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

apps/svelte.dev/src/routes/docs/RemovedPage.svelte

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
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 {
@@ -10,8 +8,8 @@
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);
@@ -46,14 +44,9 @@
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>

0 commit comments

Comments
 (0)