fix(widgets): align tall compact stats
This commit is contained in:
1 parent
e161c8c512
commit
7e13ca54fb
1 file changed
+9
-1
@@ -32,7 +32,7 @@ export function getCompactStatLayout({
|
||||
defaultColumns,
|
||||
defaultIconSize,
|
||||
}: CompactStatLayoutInput): CompactStatLayout {
|
||||
if (!compactDisplay || height >= SHORT_HEIGHT_BREAKPOINT) {
|
||||
if (!compactDisplay) {
|
||||
return {
|
||||
state: "default",
|
||||
columns: defaultColumns,
|
||||
@@ -48,6 +48,14 @@ export function getCompactStatLayout({
|
||||
};
|
||||
}
|
||||
|
||||
if (height >= SHORT_HEIGHT_BREAKPOINT) {
|
||||
return {
|
||||
state: "default",
|
||||
columns: defaultColumns,
|
||||
iconSize: defaultIconSize,
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
state: "short",
|
||||
columns: Math.max(visibleCount, 1),
|
||||
|
||||
Reference in new issue
Block a user