fix: display long LoRA filenames in multiple lines in preview tooltip

Previously, long LoRA filenames were truncated from the right with ellipsis,
which hid important checkpoint step numbers (e.g., -00800, -01000) that users
need to distinguish between different training checkpoints.

Changes:
- Replace single-line truncation with multi-line display (max 3 lines)
- Add line-height and word-break properties for better readability
- Use -webkit-line-clamp to gracefully handle extremely long names

This ensures the step number suffix is always visible in the tooltip.
This commit is contained in:
Will Miao
2026-02-15 19:14:42 +08:00
parent 83fc3282d4
commit 466351b23a

View File

@@ -35,12 +35,16 @@
font-size: 13px;
font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
line-height: 1.4;
overflow-wrap: break-word;
word-break: break-word;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.lm-tooltip__license-overlay {