v0.1.9 — ListRow : le slot trailing peut rétrécir sans écraser le titre
- .list-row__trailing : flex-shrink:0 + max-width:50% + troncature - .list-row__title/__subtitle : nowrap + ellipsis par défaut - gap entre les deux colonnes Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+17
@@ -333,13 +333,30 @@
|
||||
padding: 0 var(--space-5);
|
||||
min-height: 52px;
|
||||
display: flex; align-items: center;
|
||||
gap: var(--space-4);
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background: none;
|
||||
font-family: inherit;
|
||||
}
|
||||
/* Colonne titre : min-width:0 (posé en inline sur le composant) laisse déjà le flex-item se
|
||||
réduire ; ellipsis pour qu'un titre/sous-titre long soit tronqué proprement au lieu de wrapper
|
||||
indéfiniment quelle que soit la largeur laissée par trailing. */
|
||||
.list-row__title,
|
||||
.list-row__subtitle {
|
||||
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
}
|
||||
.list-row__title { font-size: var(--text-body-size); color: var(--label-primary); }
|
||||
.list-row__subtitle { font-size: var(--text-subheadline-size); color: var(--label-secondary); }
|
||||
/* trailing : sans garde-fou, un contenu non wrappable (Badge, Button — tous deux
|
||||
white-space:nowrap / pilule) refuse de rétrécir sous flexbox (min-width:auto par défaut) et
|
||||
prélève l'espace manquant sur la colonne titre au lieu du sien. flex-shrink:0 fixerait sa
|
||||
largeur naturelle sans jamais la limiter ; max-width borne ce cas-là aussi. */
|
||||
.list-row__trailing {
|
||||
flex-shrink: 0;
|
||||
max-width: 50%;
|
||||
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
}
|
||||
.list-row--interactive { cursor: pointer; }
|
||||
|
||||
/* Text field */
|
||||
|
||||
Reference in New Issue
Block a user