chore(FontList): Move documentation and remove default height
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
<!--
|
||||
Component: FontList
|
||||
|
||||
- Displays a virtualized list of fonts with loading, empty, and error states.
|
||||
- Uses unifiedFontStore from context for data, but can accept explicit fonts via props.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { fontshareStore } from '$entities/Font/model/store/fontshareStore.svelte';
|
||||
import {
|
||||
@@ -6,15 +12,9 @@ import {
|
||||
Title as ItemTitle,
|
||||
} from '$shared/shadcn/ui/item';
|
||||
import { VirtualList } from '$shared/ui';
|
||||
/**
|
||||
* FontList
|
||||
*
|
||||
* Displays a virtualized list of fonts with loading, empty, and error states.
|
||||
* Uses unifiedFontStore from context for data, but can accept explicit fonts via props.
|
||||
*/
|
||||
</script>
|
||||
|
||||
<VirtualList items={fontshareStore.fonts} itemHeight={30}>
|
||||
<VirtualList items={fontshareStore.fonts}>
|
||||
{#snippet children({ item: font })}
|
||||
<ItemRoot>
|
||||
<ItemContent>
|
||||
|
||||
Reference in New Issue
Block a user