From 2159ddfeb554f1086133fa7b635f2ca921a10355 Mon Sep 17 00:00:00 2001 From: yiling Date: Mon, 15 Jun 2026 15:51:23 +0800 Subject: [PATCH] style(webui): refine carousel item sizes, active states, and background colors --- .../webui/components/file-viewer-left-sidebar.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/webui/components/file-viewer-left-sidebar.tsx b/packages/webui/components/file-viewer-left-sidebar.tsx index b5c52082..18e8abf8 100644 --- a/packages/webui/components/file-viewer-left-sidebar.tsx +++ b/packages/webui/components/file-viewer-left-sidebar.tsx @@ -1,11 +1,11 @@ import { client } from '@/ui/api/client' +import { cn } from '@/ui/lib/utils' +import type { AssetInfo, AssetInfoPaginatedList } from '@shumai/dtos' +import { Link } from '@tanstack/react-router' import { File, Loader2 } from 'lucide-react' import type { FC } from 'react' -import type { AssetInfo, AssetInfoPaginatedList } from '@shumai/dtos' import { useEffect, useRef, useState } from 'react' import { useInView } from 'react-intersection-observer' -import { Link } from '@tanstack/react-router' -import { cn } from '@/ui/lib/utils' interface FileViewerLeftSidebarProps { projectId: string @@ -107,7 +107,7 @@ export const FileViewerLeftSidebar: FC = ({ }, [files, currentAssetId]) return ( -
+
{files.map((file) => { if (!file) return null @@ -125,8 +125,8 @@ export const FileViewerLeftSidebar: FC = ({ className={cn( 'rounded-lg border overflow-hidden flex items-center justify-center transition-all bg-muted/30 block', isActive - ? 'w-[60px] h-[60px] border-primary ring-2 ring-primary opacity-100' - : 'w-[54px] h-[54px] border-border hover:border-primary/50 opacity-65 hover:opacity-100', + ? 'w-[62px] h-[62px] opacity-100' + : 'w-[52px] h-[52px] opacity-60 hover:opacity-100', )} >