From 916bfb0ab0fa7871760129c8d1fe7ba3cdf17d5b Mon Sep 17 00:00:00 2001 From: Will Miao Date: Mon, 23 Feb 2026 18:19:02 +0800 Subject: [PATCH] Allow adaptive multi-line model names in cards - Remove fixed min-height from card-footer for adaptive sizing - Increase model-name max-height to 5.6em (4 lines) Enables full display of long custom-trained LoRA filenames --- static/css/components/card.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/css/components/card.css b/static/css/components/card.css index dd36ce1f..9f0871b4 100644 --- a/static/css/components/card.css +++ b/static/css/components/card.css @@ -282,7 +282,7 @@ display: flex; justify-content: space-between; align-items: flex-start; /* Changed from flex-end to allow for text wrapping */ - min-height: 32px; + min-height: auto; gap: var(--space-1); /* Add gap between model info and actions */ } @@ -413,7 +413,7 @@ font-size: 0.95em; word-break: break-word; display: block; - max-height: 3em; /* Increased to ensure two full lines */ + max-height: 4.2em; /* Allow up to 3 lines */ overflow: hidden; /* Add line height for consistency */ line-height: 1.4;