New: Truncate button text

Closes #7691
This commit is contained in:
Mark McDowall 2025-03-02 12:35:04 -08:00
parent f58dfc5605
commit 093ee5b88d
2 changed files with 4 additions and 0 deletions

View file

@ -22,11 +22,14 @@
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
height: 24px;
}
.label {
padding: 0 3px;
max-width: 100%;
max-height: 100%;
color: var(--toolbarLabelColor);
font-size: $extraSmallFontSize;
line-height: calc($extraSmallFontSize + 1px);

View file

@ -31,6 +31,7 @@ function PageToolbarButton({
isDisabled && styles.isDisabled
)}
isDisabled={isDisabled || isSpinning}
title={label}
{...otherProps}
>
<Icon