From 063e1589896014c9146db89ef3c92025a70d7852 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 1 Jun 2026 13:29:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=B3=E4=BE=A7=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=8D=E5=8F=AF=E6=BB=9A=E5=8A=A8=20?= =?UTF-8?q?=E2=80=94=20=E6=B7=BB=E5=8A=A0filler=20CSS=E5=92=8Cflex?= =?UTF-8?q?=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - show_llms/show_llms_by_providers的HBox加css:filler - 右侧urlwidget加css:filler - show_llms_cards两个文件的VScrollPanel加css:filler - CSS中为tabpanel-content和scrollpanel添加flex布局确保高度传递 --- wwwroot/model_plaza.css | 11 +++++++++++ wwwroot/show_llms.ui | 2 ++ wwwroot/show_llms_by_providers.ui | 2 ++ wwwroot/show_llms_cards.ui | 1 + wwwroot/show_llms_cards_by_provider.ui | 1 + 5 files changed, 17 insertions(+) diff --git a/wwwroot/model_plaza.css b/wwwroot/model_plaza.css index f189e27..9d089ec 100644 --- a/wwwroot/model_plaza.css +++ b/wwwroot/model_plaza.css @@ -69,6 +69,17 @@ padding: 4px 8px; } +/* Right panel: ensure scrollable area fills available space */ +.plaza-tabs .tabpanel-content { + display: flex; + flex-direction: column; +} +.plaza-tabs .tabpanel-content > .scrollpanel { + flex: 1; + min-height: 0; + overflow-y: auto; +} + /* Model icon area */ .plaza-card .model-icon-row { gap: 8px; diff --git a/wwwroot/show_llms.ui b/wwwroot/show_llms.ui index fd9ac50..dc34bdf 100644 --- a/wwwroot/show_llms.ui +++ b/wwwroot/show_llms.ui @@ -2,6 +2,7 @@ { "widgettype":"HBox", "options":{ + "css":"filler", "width":"100%", "height":"100%" }, @@ -65,6 +66,7 @@ "widgettype":"urlwidget", "id":"plaza_cards_panel", "options":{ + "css":"filler", "cwidth":82, "height":"100%", "url":"{{entire_url('show_llms_cards.ui')}}" diff --git a/wwwroot/show_llms_by_providers.ui b/wwwroot/show_llms_by_providers.ui index f3dc6fc..e18ea70 100644 --- a/wwwroot/show_llms_by_providers.ui +++ b/wwwroot/show_llms_by_providers.ui @@ -2,6 +2,7 @@ { "widgettype":"HBox", "options":{ + "css":"filler", "width":"100%", "height":"100%" }, @@ -65,6 +66,7 @@ "widgettype":"urlwidget", "id":"plaza_provider_panel", "options":{ + "css":"filler", "cwidth":82, "height":"100%", "url":"{{entire_url('show_llms_cards_by_provider.ui')}}" diff --git a/wwwroot/show_llms_cards.ui b/wwwroot/show_llms_cards.ui index 31b073c..a2478ba 100644 --- a/wwwroot/show_llms_cards.ui +++ b/wwwroot/show_llms_cards.ui @@ -4,6 +4,7 @@ { "widgettype":"VScrollPanel", "options":{ + "css":"filler", "width":"100%", "height":"100%" }, diff --git a/wwwroot/show_llms_cards_by_provider.ui b/wwwroot/show_llms_cards_by_provider.ui index f4f4662..96c9aa0 100644 --- a/wwwroot/show_llms_cards_by_provider.ui +++ b/wwwroot/show_llms_cards_by_provider.ui @@ -4,6 +4,7 @@ { "widgettype":"VScrollPanel", "options":{ + "css":"filler", "width":"100%", "height":"100%" },