Skip to content

Commit e4db555

Browse files
committed
fix(desktop): give the update badge label its own truncating element
text-overflow: ellipsis applies to a block container's own inline content, not to an overflowing flex child -- and Button lays its content out as a centred flex row, so the bare label spilled past both edges and was cut symmetrically with no ellipsis at all. Wrapping it in its own block element puts the truncation where it can act, on the trailing edge.
1 parent c9e31fe commit e4db555

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/desktop/src/renderer/systems/appUpdate/ui/UpdateBadge.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function UpdateBadge() {
3636
onClick={openAppUpdateAvailable}
3737
title={label}
3838
>
39-
{label}
39+
<span className="sk-update-badge__label">{label}</span>
4040
</Button>
4141
);
4242
}

0 commit comments

Comments
 (0)