[ENG-1529] Round thumbnails for labels (#1981)

* rounded corner for labels

* can't forget list view
This commit is contained in:
Brendan Allan
2024-01-24 13:15:27 +08:00
committed by GitHub
parent d9ef836349
commit 10bd2af8a1
3 changed files with 3 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ repository = { workspace = true }
edition = { workspace = true }
[features]
default = ["ai-models"]
assets = []
ai-models = ["sd-core/ai"]

View File

@@ -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,

View File

@@ -38,7 +38,7 @@ const NameCell = memo(({ item, selected }: { item: ExplorerItem; selected: boole
<FileThumb
data={item}
frame
frameClassName="!border"
frameClassName={clsx("!border", item.type === "Label" && "!rounded-lg")}
blackBars
size={35}
className={clsx('mr-2.5', cut && 'opacity-60')}