From 10bd2af8a101da6892f76856a0a1f05319758b38 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Wed, 24 Jan 2024 13:15:27 +0800 Subject: [PATCH] [ENG-1529] Round thumbnails for labels (#1981) * rounded corner for labels * can't forget list view --- apps/server/Cargo.toml | 1 + interface/app/$libraryId/Explorer/View/GridView/Item/index.tsx | 1 + interface/app/$libraryId/Explorer/View/ListView/useTable.tsx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/server/Cargo.toml b/apps/server/Cargo.toml index df0153ab8..a3b1b541c 100644 --- a/apps/server/Cargo.toml +++ b/apps/server/Cargo.toml @@ -6,6 +6,7 @@ repository = { workspace = true } edition = { workspace = true } [features] +default = ["ai-models"] assets = [] ai-models = ["sd-core/ai"] diff --git a/interface/app/$libraryId/Explorer/View/GridView/Item/index.tsx b/interface/app/$libraryId/Explorer/View/GridView/Item/index.tsx index d8f91ecec..c568e3ba8 100644 --- a/interface/app/$libraryId/Explorer/View/GridView/Item/index.tsx +++ b/interface/app/$libraryId/Explorer/View/GridView/Item/index.tsx @@ -85,6 +85,7 @@ const ItemFileThumb = () => { extension className={clsx('px-2 py-1', item.cut && 'opacity-60')} ref={setDraggableRef} + frameClassName={clsx(item.data.type === "Label" && "!rounded-2xl")} childProps={{ style, ...attributes, diff --git a/interface/app/$libraryId/Explorer/View/ListView/useTable.tsx b/interface/app/$libraryId/Explorer/View/ListView/useTable.tsx index bc2c3afa7..da19fcc95 100644 --- a/interface/app/$libraryId/Explorer/View/ListView/useTable.tsx +++ b/interface/app/$libraryId/Explorer/View/ListView/useTable.tsx @@ -38,7 +38,7 @@ const NameCell = memo(({ item, selected }: { item: ExplorerItem; selected: boole