Skip to content

Commit 26c6b4a

Browse files
ci: apply automated fixes
1 parent 1c2aa8d commit 26c6b4a

1 file changed

Lines changed: 7 additions & 15 deletions

File tree

  • examples/solid/scroll-restoration/src

‎examples/solid/scroll-restoration/src/main.tsx‎

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ function IndexComponent() {
5252
<h3>Welcome Home!</h3>
5353
<div class="space-y-2">
5454
{Array.from({ length: 50 }).map((_, i) => (
55-
<div
56-
class="h-[100px] p-2 rounded-lg bg-gray-200 dark:bg-gray-800 border"
57-
>
55+
<div class="h-[100px] p-2 rounded-lg bg-gray-200 dark:bg-gray-800 border">
5856
Home Item {i + 1}
5957
</div>
6058
))}
@@ -76,9 +74,7 @@ function AboutComponent() {
7674
<div>Hello from About!</div>
7775
<div class="space-y-2">
7876
{Array.from({ length: 50 }).map((_, i) => (
79-
<div
80-
class="h-[100px] p-2 rounded-lg bg-gray-200 dark:bg-gray-800 border"
81-
>
77+
<div class="h-[100px] p-2 rounded-lg bg-gray-200 dark:bg-gray-800 border">
8278
About Item {i + 1}
8379
</div>
8480
))}
@@ -105,7 +101,7 @@ function ByElementComponent() {
105101
})
106102

107103
// Let's use TanStack Virtual to virtualize some content!
108-
let virtualizerParentRef: any;
104+
let virtualizerParentRef: any
109105
const virtualizer = createVirtualizer({
110106
count: 10000,
111107
getScrollElement: () => virtualizerParentRef,
@@ -121,9 +117,7 @@ function ByElementComponent() {
121117
<div class="h-full min-h-0 flex gap-4">
122118
<div class="border rounded-lg p-2 overflow-auto flex-1 space-y-2">
123119
{Array.from({ length: 50 }).map((_, i) => (
124-
<div
125-
class="h-[100px] p-2 rounded-lg bg-gray-200 dark:bg-gray-800 border"
126-
>
120+
<div class="h-[100px] p-2 rounded-lg bg-gray-200 dark:bg-gray-800 border">
127121
About Item {i + 1}
128122
</div>
129123
))}
@@ -133,9 +127,7 @@ function ByElementComponent() {
133127
<div class="flex-1 border rounded-lg p-2 overflow-auto">
134128
<div class="space-y-2">
135129
{Array.from({ length: 50 }).map((_, i) => (
136-
<div
137-
class="h-[100px] p-2 rounded-lg bg-gray-200 dark:bg-gray-800 border"
138-
>
130+
<div class="h-[100px] p-2 rounded-lg bg-gray-200 dark:bg-gray-800 border">
139131
About Item {i + 1}
140132
</div>
141133
))}
@@ -161,8 +153,8 @@ function ByElementComponent() {
161153
<div
162154
class="absolute p-2 pb-0 w-full"
163155
style={{
164-
height: item.size+'px',
165-
top: item.start+'px',
156+
height: item.size + 'px',
157+
top: item.start + 'px',
166158
}}
167159
>
168160
<div class="p-2 rounded-lg bg-gray-200 dark:bg-gray-800 border h-full">

0 commit comments

Comments
 (0)