File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
apps/desktop/src/components/v3 Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 161
161
bind:viewport
162
162
whenToShow ={$userSettings .scrollbarVisibilityState }
163
163
onscroll ={handleScroll }
164
- {top }
165
- {bottom }
166
164
bind:viewportHeight
167
165
>
168
- {#each visible as chunk }
169
- <!-- Note: keying this #each would things much slower. -->
170
- <div class =" list-row" >
171
- {@render group ?.(chunk .data )}
172
- </div >
173
- {/each }
166
+ <div class ="padded-contents" style:padding-top ={top + ' px' } style:padding-bottom ={bottom + ' px' }>
167
+ {#each visible as chunk }
168
+ <!-- Note: keying this #each would things much slower. -->
169
+ <div class =" list-row" >
170
+ {@render group ?.(chunk .data )}
171
+ </div >
172
+ {/each }
173
+ </div >
174
174
</ScrollableContainer >
175
175
176
176
<style >
179
179
overflow : hidden ;
180
180
background-color : var (--clr-bg-1 );
181
181
}
182
+ .padded-contents {
183
+ display : flex ;
184
+ flex-direction : column ;
185
+ }
182
186
</style >
You can’t perform that action at this time.
0 commit comments