fix(widgets): restore readable summary text and icons (#7068)

* fix(widgets): restore readable summary text and icons

* fix: size Bazarr columns using displayed dimensions

* Revert "fix: size Bazarr columns using displayed dimensions"

This reverts commit 02e28a964faa191a91f840b7b45d79ea937dac5d.
This commit is contained in:
Thomas authored and GitHub committed 2026-10-07 17:02:38 +02:00
1 parent 8d78d0ae54
commit 2ea05f50cc
5 files changed
+58 -19

No files matched your search

@@ -35,11 +35,16 @@
.grid[data-short] .statTile {
flex-direction: row;
gap: 3px;
gap: calc(3px * var(--board-canvas-ui-scale, 1));
padding: 3px 4px;
}
.grid[data-short] .statValue {
flex-shrink: 0;
}
.grid[data-short] .statLabel {
min-width: 0;
text-align: left;
}
@@ -55,7 +60,7 @@
}
.statLabel {
font-size: clamp(8px, 2.5cqi, 12px);
font-size: clamp(var(--mantine-font-size-xs), 2.5cqi, var(--mantine-font-size-sm));
color: var(--mantine-color-dimmed);
line-height: 1.2;
text-align: center;
@@ -66,7 +71,7 @@
}
.statValue {
font-size: clamp(14px, 5.5cqi, 24px);
font-size: clamp(var(--mantine-font-size-lg), 5.5cqi, var(--mantine-font-size-2xl));
font-weight: 700;
color: var(--mantine-primary-color-filled);
line-height: 1.1;
+5 -2
View File
@@ -61,6 +61,7 @@ export default function BazarrWidget({
width,
height,
displayMode,
displayScale = 1,
}: WidgetComponentProps<"bazarr">) {
const t = useI18n("widget.bazarr");
const { data: badges, error } = clientApi.widget.bazarr.getBadges.useQuery(
@@ -84,7 +85,9 @@ export default function BazarrWidget({
const visibleStatKeys = getVisibleBazarrStatKeys(options, displayMode);
const gridCols = getGridCols(width, height, visibleStatKeys.length);
const iconSize = getIconSize(Math.min(width, height));
const iconSize = Math.max(20, getIconSize(Math.min(width, height)));
let responsiveHeight = height;
if (displayMode !== "advanced") responsiveHeight *= displayScale;
if (visibleStatKeys.length === 0) {
return (
@@ -102,7 +105,7 @@ export default function BazarrWidget({
<div className={classes.root}>
<div
className={classes.grid}
data-short={height < 120 || undefined}
data-short={(responsiveHeight < 120 && gridCols < visibleStatKeys.length) || undefined}
style={{ "--stat-cols": gridCols } as CSSProperties}
>
{visibleStatKeys.map((statKey) => {