fix: wrap description+pricing in VScrollPanel so long descriptions don't push pricing off-screen

- show_llms_cards.ui: card-body-scroll VScrollPanel wraps Text(desc) + Filler(pricing)
- show_llms_cards_by_provider.ui: same fix
This commit is contained in:
yumoqing 2026-07-06 15:08:51 +08:00
parent c2af41d5f4
commit 109d081a3f
2 changed files with 52 additions and 36 deletions

View File

@ -50,6 +50,12 @@
}
]
},
{
"widgettype":"VScrollPanel",
"options":{
"css":"card-body-scroll"
},
"subwidgets":[
{
"widgettype":"Text",
"options":{
@ -64,7 +70,7 @@
"css":"pricing-box"
},
"subwidgets":[
{% for pricing_text in llm.pricing_display %}
{% for pricing_text in llm.pricing_display %}
{
"widgettype":"Text",
"options":{
@ -74,7 +80,9 @@
"css":"pricing-text"
}
}{% if not loop.last %},{% endif %}
{% endfor %}
{% endfor %}
]
}
]
}
],

View File

@ -49,6 +49,12 @@
}
]
},
{
"widgettype":"VScrollPanel",
"options":{
"css":"card-body-scroll"
},
"subwidgets":[
{
"widgettype":"Text",
"options":{
@ -63,7 +69,7 @@
"css":"pricing-box"
},
"subwidgets":[
{% for pricing_text in llm.pricing_display %}
{% for pricing_text in llm.pricing_display %}
{
"widgettype":"Text",
"options":{
@ -73,7 +79,9 @@
"css":"pricing-text"
}
}{% if not loop.last %},{% endif %}
{% endfor %}
{% endfor %}
]
}
]
}
],