From a7eec53a55c887d313aad3cbd4206c2a8a06b578 Mon Sep 17 00:00:00 2001 From: Andy Chen <44120813+achen5671@users.noreply.github.com> Date: Mon, 5 Aug 2024 16:09:46 -0400 Subject: [PATCH] studio: fix asset grid (#10815) * fix asset grid * center loading view * actually center loading view * no actually center correctly this time * add margin under thumbail --------- Co-authored-by: Liam Broza --- .../editor/panels/Assets/container/index.tsx | 16 +++++++++------- .../ui/src/primitives/tailwind/Table/index.tsx | 2 +- 2 files changed, 10 insertions(+), 8 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 09472a220e..8d7f69d3ce 100644 --- a/packages/ui/src/components/editor/panels/Assets/container/index.tsx +++ b/packages/ui/src/components/editor/panels/Assets/container/index.tsx @@ -173,10 +173,10 @@ const ResourceFile = (props: { }) } onContextMenu={handleContextMenu} - className="mb-2 flex cursor-pointer flex-col items-center justify-center align-middle" + className="mb-3 flex h-auto w-40 cursor-pointer flex-col items-center text-center" > @@ -515,7 +515,7 @@ const AssetPanel = () => { const ResourceItems = () => { if (loading.value) { return ( -
+
) @@ -663,14 +663,16 @@ const AssetPanel = () => { onSelectCategory={handleSelectCategory} style={{ width: width.value }} /> -
+
-
- +
+
+ +
-
+
+