From 1f66d5aae718b18ebf3f44ccec849338bb71e0b3 Mon Sep 17 00:00:00 2001 From: lyon Date: Mon, 15 Jun 2026 01:35:40 +0800 Subject: [PATCH] fix: keep user workbench messages horizontal --- web/hwlab-cloud-web/src/styles/workbench.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/hwlab-cloud-web/src/styles/workbench.css b/web/hwlab-cloud-web/src/styles/workbench.css index 2c66b760..faca5d58 100644 --- a/web/hwlab-cloud-web/src/styles/workbench.css +++ b/web/hwlab-cloud-web/src/styles/workbench.css @@ -629,7 +629,9 @@ } .message-card[data-role="user"] { - width: fit-content; + justify-self: end; + width: max-content; + min-width: min(120px, 100%); max-width: min(720px, 100%); margin-left: auto; border-color: #bfdbfe; @@ -639,6 +641,8 @@ } .message-card[data-role="user"] .message-text { + max-width: 100%; + overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }