Compare commits

...

2 Commits

Author SHA1 Message Date
1434dffb49 fix: increase model card spacing - margin 4px -> 8px 2026-06-12 11:17:25 +08:00
a0cff97091 fix: LlmModel card spacing - add cwidth/cheight/margin to prevent overlap
render_title: padding 15px -> cwidth:3, cheight:3, padding:4px, margin:2px, css:clickable
2026-06-12 11:05:58 +08:00

View File

@ -155,7 +155,7 @@ bricks.LlmModel = class extends bricks.JsWidget {
this.llmio = llmio; this.llmio = llmio;
} }
render_title(){ render_title(){
var w = new bricks.HBox({padding:'15px'}); var w = new bricks.HBox({cwidth:3, cheight:3, padding:'4px', margin:'2px', css:'clickable'});
w.bind('click', this.show_setup_panel.bind(this)) w.bind('click', this.show_setup_panel.bind(this))
var img = new bricks.Svg({ var img = new bricks.Svg({
rate:2, rate:2,
@ -422,12 +422,13 @@ bricks.LlmIO = class extends bricks.VBox {
llmcatelogid:this.models[0].llmcatelogid llmcatelogid:this.models[0].llmcatelogid
}, },
data_method:'POST', data_method:'POST',
col_cwidth: 24, col_cwidth: 36,
record_view:{ record_view:{
widgettype:"VBox", widgettype:"VBox",
options:{ options:{
cheight:20, cheight:14,
css:"card" css:"card",
margin:"8px"
}, },
subwidgets:[ subwidgets:[
{ {