🐛 Fix use ellipsis when property names are too long (#7135)

This commit is contained in:
Luis de Dios
2025-08-18 21:36:56 +02:00
committed by GitHub
parent 6babea8b12
commit 4237ef572e
2 changed files with 14 additions and 10 deletions

View File

@@ -464,8 +464,10 @@
(for [[pos prop] (map vector (range) properties)]
[:div {:key (str (:id shape) pos) :class (stl/css :variant-property-container)}
[:*
[:span {:class (stl/css :variant-property-name)}
(:name prop)]
[:div {:class (stl/css :variant-property-name-wrapper-copy)
:title (:name prop)}
[:span {:class (stl/css :variant-property-name)}
(:name prop)]]
[:> select* {:default-selected (:value prop)
:options (get-options (:name prop))
:empty-to-end true

View File

@@ -746,18 +746,13 @@
padding-right: var(--sp-xxs);
}
.variant-property-name {
color: var(--color-foreground-primary);
height: var(--sp-xxxl);
width: $s-104;
.variant-property-name-wrapper-copy {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: var(--sp-xxxl);
width: $s-104;
}
.variant-property-name-wrapper {
@@ -766,6 +761,13 @@
width: $s-104;
}
.variant-property-name {
color: var(--color-foreground-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.variant-warning-wrapper {
@include bodySmallTypography;
border: 1px solid var(--color-background-quaternary);