Files
frontend-svelte/src/routes/Page.svelte

36 lines
874 B
Svelte
Raw Normal View History

<script lang="ts">
2026-01-18 15:01:19 +03:00
import FontDisplay from '$features/DisplayFont/ui/FontDisplay/FontDisplay.svelte';
2026-01-24 15:39:38 +03:00
import { FontSearch } from '$widgets/FontSearch';
2026-01-18 15:01:19 +03:00
/**
* Page Component
*/
2026-01-24 15:39:38 +03:00
let searchContainer: HTMLElement;
let isExpanded = $state(false);
</script>
2026-01-13 20:05:33 +03:00
<!-- Font List -->
2026-01-24 15:39:38 +03:00
<div class="p-2 will-change-[height]">
<div bind:this={searchContainer}>
<FontSearch bind:showFilters={isExpanded} />
</div>
<div class="will-change-tranform transition-transform content">
<FontDisplay />
</div>
2026-01-18 15:01:19 +03:00
</div>
2026-01-24 15:39:38 +03:00
<style>
.content {
/* Tells the browser to skip rendering off-screen content */
content-visibility: auto;
/* Helps the browser reserve space without calculating everything */
contain-intrinsic-size: 1px 1000px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
</style>