From cbe17cde6c518d1629705c0b01f9fd10d766094d Mon Sep 17 00:00:00 2001 From: RockChinQ Date: Sun, 21 Jun 2026 12:54:24 -0400 Subject: [PATCH] fix(web): provider card overflow on mobile via grid/flex min-width floor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous truncate/shrink-0 pass only touched leaf nodes, but the min-content floor was set by two ancestors: the flex-1 left group lacked min-w-0, and CardHeader is a CSS grid whose implicit single column defaults to min-content. Constrain both (min-w-0 on the header grid + explicit grid-cols-[minmax(0,1fr)], min-w-0 on the inner flex groups) so the provider name / base_url+key subtitle actually truncate instead of forcing the card — and the whole settings modal — wider than the viewport. --- .../components/models-dialog/components/ProviderCard.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/app/home/components/models-dialog/components/ProviderCard.tsx b/web/src/app/home/components/models-dialog/components/ProviderCard.tsx index a3ec99624..26a518575 100644 --- a/web/src/app/home/components/models-dialog/components/ProviderCard.tsx +++ b/web/src/app/home/components/models-dialog/components/ProviderCard.tsx @@ -150,9 +150,9 @@ export default function ProviderCard({ return ( - -
-
+ +
+
{isLangBotModels ? (