bugfix
This commit is contained in:
parent
7e6603b0ec
commit
8da00bcdc4
@ -7,6 +7,10 @@ body {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
pre {
|
||||
overflow-x: auto; /* 允许内容超出容器显示 */
|
||||
background-color: #b5e5e5;
|
||||
}
|
||||
* {
|
||||
box-sizing: border-box!important;
|
||||
}
|
||||
@ -436,3 +440,5 @@ hr {
|
||||
.llm_title {
|
||||
background-color:#eeeeee;
|
||||
}
|
||||
|
||||
|
||||
|
@ -118,6 +118,7 @@ bricks.ModelOutput = class extends bricks.HBox {
|
||||
this.run = null;
|
||||
var w = await bricks.widgetBuild(this.output_view, this.llmio, data);
|
||||
w.set_css('llm_msg');
|
||||
w.set_style('width', '100%');
|
||||
this.filler.clear_widgets();
|
||||
this.filler.add_widget(w);
|
||||
this.filler.add_widget(this.estimate_w);
|
||||
|
@ -55,13 +55,17 @@ bricks.Menu = class extends bricks.VBox {
|
||||
itw.add_widget(subw);
|
||||
itw.add_widget(w1);
|
||||
this.create_children(w1, item.items);
|
||||
subw.bind('click', w1.toggle_hide.bind(w1));
|
||||
subw.bind('click', this.items_toggle_hide.bind(this, w1));
|
||||
} else {
|
||||
subw.bind('click', this.regen_menuitem_event.bind(this, item))
|
||||
w.add_widget(subw);
|
||||
}
|
||||
}
|
||||
}
|
||||
items_toggle_hide(w, event){
|
||||
w.toggle_hide();
|
||||
event.stopPropagation();
|
||||
}
|
||||
create_menuitem(item){
|
||||
var w = new bricks.HBox({cheight:this.item_cheight||2});
|
||||
var iw, tw;
|
||||
|
Loading…
Reference in New Issue
Block a user