Skip to content

Commit 7ef7d3a

Browse files
authored
[Fix] Svelte notebook btn overlapping with long title (#479)
1 parent ed7c897 commit 7ef7d3a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

kit/src/lib/DocNotebookDropdown.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { onMount } from "svelte";
2+
import { onMount, tick } from "svelte";
33
44
import Dropdown from "./Dropdown.svelte";
55
import DropdownEntry from "./DropdownEntry.svelte";
@@ -40,7 +40,10 @@
4040
}
4141
4242
onMount(() => {
43-
onResize();
43+
(async () => {
44+
await tick()
45+
onResize();
46+
})();
4447
});
4548
</script>
4649

0 commit comments

Comments
 (0)