Fix token preview rendering for token groups

This commit is contained in:
Mitchell McCaffrey
2021-06-12 21:25:03 +10:00
parent 359be5373b
commit 1eed2eb15d
4 changed files with 35 additions and 19 deletions
+7 -2
View File
@@ -70,11 +70,16 @@ function TokenBarTokenGroup({ group, tokens, draggable }) {
} else {
return (
<Grid
columns="2fr 2fr"
columns="1fr 1fr"
alt={group.name}
title={group.name}
bg="muted"
sx={{ borderRadius: "8px", gridGap: "4px", minHeight: "48px" }}
sx={{
borderRadius: "8px",
gridGap: "4px",
height: "48px",
gridTemplateRows: "1fr 1fr",
}}
p="2px"
{...listeners}
{...attributes}