fix: improve module name truncation in pill

- Add min-width: 0 and flex-shrink to pill for proper flex behavior
- Reduce max-width to 120px desktop, 80px mobile
This commit is contained in:
2025-12-30 20:15:52 +01:00
parent 583c53371d
commit 3cd1ae132b

View File

@@ -238,6 +238,8 @@ code, kbd {
border-radius: 16px; border-radius: 16px;
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 600; font-weight: 600;
min-width: 0;
flex-shrink: 1;
} }
.module-name { .module-name {
@@ -246,7 +248,7 @@ code, kbd {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
max-width: 150px; max-width: 120px;
} }
.module-pill .level-indicator { .module-pill .level-indicator {
@@ -1084,7 +1086,7 @@ input:checked + .toggle-slider::before {
} }
.module-name { .module-name {
max-width: 100px; max-width: 80px;
} }
.level-label { .level-label {