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:
parent
c2af41d5f4
commit
109d081a3f
@ -50,6 +50,12 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"widgettype":"VScrollPanel",
|
||||||
|
"options":{
|
||||||
|
"css":"card-body-scroll"
|
||||||
|
},
|
||||||
|
"subwidgets":[
|
||||||
{
|
{
|
||||||
"widgettype":"Text",
|
"widgettype":"Text",
|
||||||
"options":{
|
"options":{
|
||||||
@ -64,7 +70,7 @@
|
|||||||
"css":"pricing-box"
|
"css":"pricing-box"
|
||||||
},
|
},
|
||||||
"subwidgets":[
|
"subwidgets":[
|
||||||
{% for pricing_text in llm.pricing_display %}
|
{% for pricing_text in llm.pricing_display %}
|
||||||
{
|
{
|
||||||
"widgettype":"Text",
|
"widgettype":"Text",
|
||||||
"options":{
|
"options":{
|
||||||
@ -74,7 +80,9 @@
|
|||||||
"css":"pricing-text"
|
"css":"pricing-text"
|
||||||
}
|
}
|
||||||
}{% if not loop.last %},{% endif %}
|
}{% if not loop.last %},{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@ -49,6 +49,12 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"widgettype":"VScrollPanel",
|
||||||
|
"options":{
|
||||||
|
"css":"card-body-scroll"
|
||||||
|
},
|
||||||
|
"subwidgets":[
|
||||||
{
|
{
|
||||||
"widgettype":"Text",
|
"widgettype":"Text",
|
||||||
"options":{
|
"options":{
|
||||||
@ -63,7 +69,7 @@
|
|||||||
"css":"pricing-box"
|
"css":"pricing-box"
|
||||||
},
|
},
|
||||||
"subwidgets":[
|
"subwidgets":[
|
||||||
{% for pricing_text in llm.pricing_display %}
|
{% for pricing_text in llm.pricing_display %}
|
||||||
{
|
{
|
||||||
"widgettype":"Text",
|
"widgettype":"Text",
|
||||||
"options":{
|
"options":{
|
||||||
@ -73,7 +79,9 @@
|
|||||||
"css":"pricing-text"
|
"css":"pricing-text"
|
||||||
}
|
}
|
||||||
}{% if not loop.last %},{% endif %}
|
}{% if not loop.last %},{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user