feat: replace clsx with cn util

This commit is contained in:
Ilia Mashkov
2026-04-23 09:48:32 +03:00
parent cffebf05e3
commit 54087b7b2a
34 changed files with 91 additions and 92 deletions
+3 -3
View File
@@ -10,8 +10,8 @@
-->
<script lang="ts" generics="T">
import { createVirtualizer } from '$shared/lib';
import { cn } from '$shared/lib';
import { throttle } from '$shared/lib/utils';
import clsx from 'clsx';
import type { Snippet } from 'svelte';
import type { HTMLAttributes } from 'svelte/elements';
@@ -324,13 +324,13 @@ $effect(() => {
{/snippet}
{#if useWindowScroll}
<div class={clsx('relative w-full', className)} bind:this={viewportRef} {...rest}>
<div class={cn('relative w-full', className)} bind:this={viewportRef} {...rest}>
{@render content()}
</div>
{:else}
<div
bind:this={viewportRef}
class={clsx(
class={cn(
'relative overflow-y-auto overflow-x-hidden',
'rounded-md bg-background',
'w-full',