From 64e450262d70b8a4659f5cba045a367e0ea4e084 Mon Sep 17 00:00:00 2001 From: Andy Chen <44120813+achen5671@users.noreply.github.com> Date: Thu, 1 Aug 2024 11:08:00 -0400 Subject: [PATCH] studio: polish asset grid (#10788) * update asset grid * add padding * set bg color for selected asset --------- Co-authored-by: Rahul Ghosh --- .../editor/panels/Assets/container/index.tsx | 14 ++++++++------ .../components/editor/panels/Files/icon/index.tsx | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/ui/src/components/editor/panels/Assets/container/index.tsx b/packages/ui/src/components/editor/panels/Assets/container/index.tsx index 88a880ba32..532fc54810 100644 --- a/packages/ui/src/components/editor/panels/Assets/container/index.tsx +++ b/packages/ui/src/components/editor/panels/Assets/container/index.tsx @@ -175,16 +175,18 @@ const ResourceFile = (props: { }) } onContextMenu={handleContextMenu} - className={`flex cursor-pointer flex-col items-center justify-center align-middle ${ - selected ? 'border border-gray-100' : '' - }`} + className="mb-2 flex cursor-pointer flex-col items-center justify-center align-middle" > - + - {name} + {name} setAnchorEvent(undefined)} className="gap-1"> @@ -624,7 +626,7 @@ const AssetPanel = () => { onSelectCategory={handleSelectCategory} />
-
+
diff --git a/packages/ui/src/components/editor/panels/Files/icon/index.tsx b/packages/ui/src/components/editor/panels/Files/icon/index.tsx index 11735441a5..6cf8f3231a 100644 --- a/packages/ui/src/components/editor/panels/Files/icon/index.tsx +++ b/packages/ui/src/components/editor/panels/Files/icon/index.tsx @@ -90,7 +90,7 @@ export const FileIcon = ({ alt="" /> ) : FallbackIcon ? ( - + ) : ( <>