llmage/wwwroot/show_llms.ui
yumoqing 063e158989 fix: 右侧模型列表不可滚动 — 添加filler CSS和flex布局
- show_llms/show_llms_by_providers的HBox加css:filler
- 右侧urlwidget加css:filler
- show_llms_cards两个文件的VScrollPanel加css:filler
- CSS中为tabpanel-content和scrollpanel添加flex布局确保高度传递
2026-06-01 13:29:57 +08:00

77 lines
1.4 KiB
XML

{% set catelogs = get_llmcatelogs() %}
{
"widgettype":"HBox",
"options":{
"css":"filler",
"width":"100%",
"height":"100%"
},
"subwidgets":[
{
"widgettype":"VScrollPanel",
"options":{
"cwidth":18,
"height":"100%",
"css":"plaza-sidebar"
},
"subwidgets":[
{
"widgettype":"Button",
"options":{
"label":"全部",
"css":"plaza-nav-btn",
"width":"100%"
},
"binds":[
{
"wid":"self",
"event":"click",
"actiontype":"urlwidget",
"target":"app.plaza_cards_panel",
"mode":"replace",
"options":{
"url":"{{entire_url('show_llms_cards.ui')}}"
}
}
]
},
{% for cat in catelogs %}
{
"widgettype":"Button",
"options":{
"label":"{{cat.name}}",
"css":"plaza-nav-btn",
"width":"100%"
},
"binds":[
{
"wid":"self",
"event":"click",
"actiontype":"urlwidget",
"target":"app.plaza_cards_panel",
"mode":"replace",
"options":{
"url":"{{entire_url('show_llms_cards.ui')}}",
"params":{
"catelogid":"{{cat.id}}"
}
}
}
]
}{% if not loop.last %},{% endif %}
{% endfor %}
]
},
{
"widgettype":"urlwidget",
"id":"plaza_cards_panel",
"options":{
"css":"filler",
"cwidth":82,
"height":"100%",
"url":"{{entire_url('show_llms_cards.ui')}}"
}
}
]
}