Skip to content

Commit bc7653a

Browse files
authored
fix(routing): prevent long model names from overflowing tier cards (#1600)
Long model names (e.g. custom provider UUIDs) were pushing tier cards beyond their grid column, breaking the 4-column layout. Add min-width: 0 on the chip containers so flex children can shrink and the existing text-overflow: ellipsis on .routing-card__main takes effect. Also fix provider icon vertical alignment (flex-start → center).
1 parent 27ed92b commit bc7653a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/frontend/src/styles/routing.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
border: 1px solid hsl(var(--border));
140140
border-radius: var(--radius);
141141
min-height: 0;
142+
overflow: hidden;
142143
}
143144

144145
.dark .routing-card {
@@ -261,6 +262,7 @@
261262
.routing-card__model-chip {
262263
display: flex;
263264
flex-direction: column;
265+
min-width: 0;
264266
background: #f7f5ed;
265267
border: 1px solid hsl(var(--border));
266268
border-radius: var(--radius);
@@ -275,6 +277,7 @@
275277
.routing-card__chip-main {
276278
display: flex;
277279
align-items: center;
280+
min-width: 0;
278281
gap: 6px;
279282
padding: 6px 8px;
280283
}
@@ -393,7 +396,7 @@
393396

394397
.routing-card__override {
395398
display: inline-flex;
396-
align-items: flex-start;
399+
align-items: center;
397400
gap: 8px;
398401
flex: 1;
399402
min-width: 0;

0 commit comments

Comments
 (0)