Skip to content

Commit

Permalink
fix: fix tests and demo headers
Browse files Browse the repository at this point in the history
  • Loading branch information
orefalo committed Oct 19, 2024
1 parent f351402 commit 82d5825
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 74 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
"@playwright/test": "^1.48.1",
"@sveltejs/adapter-static": "^3.0.5",
"@sveltejs/kit": "^2.7.1",
"@sveltejs/package": "2.3.5",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.7",
"@sveltejs/package": "^2.3.5",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@types/eslint": "^9.6.1",
"@types/node": "^22.7.7",
"@typescript-eslint/eslint-plugin": "^8.10.0",
Expand Down Expand Up @@ -94,6 +94,6 @@
"vite": "^5.4.9"
},
"peerDependencies": {
"svelte": "5.0.0-next.270"
"svelte": "^5.0.0"
}
}
107 changes: 57 additions & 50 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/lib/VirtualListNew.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -548,12 +548,12 @@
const children = !isTable ? listInner.children : listInner.querySelector('tbody')!.children;
for (let index = 0; index < children.length; index++) {
const el = <HTMLElement>children[index];
const el = children[index];
const style = getComputedStyle(el);
if (['absolute', 'fixed'].includes(style.position)) {
continue;
}
const outerSize = getOuterSize(el);
const outerSize = getOuterSize(el as HTMLElement);
sizeArr.push(outerSize);
if (sizeArr.length >= maxSampleCount) {
break;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/examples/events/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
</script>

<h2>Events</h2>
<p>Try interacting with the list below and check the event log below.</p>
<p>Try interacting with the list below and check the event log in the console.</p>
<ExampleArea {example} />
2 changes: 1 addition & 1 deletion src/routes/examples/horizontal/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
import example from './code.svelte?example';
</script>

<h2>Internal: VirtualList</h2>
<h2>Horizontal List</h2>

<ExampleArea {example} />
2 changes: 1 addition & 1 deletion src/routes/examples/positioning/code.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
}
randomizeContent();
randomizeSize();
sameSize();
</script>

<div class="actions">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/examples/table/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
import example from './code.svelte?example';
</script>

<h2>Table rendering</h2>
<h2>Table Rendering</h2>

<ExampleArea {example} />
2 changes: 1 addition & 1 deletion src/routes/examples/variablesizing/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
import example from './code.svelte?example';
</script>

<h2>Variable Sizing</h2>
<h2>Variable item Sizing</h2>

<ExampleArea {example} />
2 changes: 1 addition & 1 deletion src/routes/examples/vertical/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
import example from './code.svelte?example';
</script>

<h2>Internal: VirtualList</h2>
<h2>Vertical List</h2>

<ExampleArea {example} />
Loading

0 comments on commit 82d5825

Please sign in to comment.