bugfix
This commit is contained in:
parent
6634559657
commit
a834dfe189
@ -272,7 +272,6 @@ body {
|
||||
}
|
||||
|
||||
.llm_msg {
|
||||
width: 90%;
|
||||
margin-left: 5px;
|
||||
margin-right: auto;
|
||||
margin-bottom: 10px;
|
||||
@ -285,7 +284,6 @@ body {
|
||||
}
|
||||
|
||||
.user_msg {
|
||||
width: 90%;
|
||||
margin-left: auto;
|
||||
margin-right: 5px;
|
||||
margin-bottom: 10px;
|
||||
|
@ -25,7 +25,9 @@ bricks.UserMsgBox = class extends bricks.HBox {
|
||||
super(opts);
|
||||
var img = new bricks.Icon({rate:2,url:this.icon||bricks_resource('imgs/user.png')});
|
||||
var w = new bricks.MdWidget({mdtext:this.prompt});
|
||||
w.set_css('filler');
|
||||
w.set_css(this.msg_css||'user_msg');
|
||||
this.add_widget(new bricks.BlankIcon({rate:2, flexShrink:0}));
|
||||
this.add_widget(w);
|
||||
this.add_widget(img);
|
||||
}
|
||||
@ -51,11 +53,13 @@ bricks.LlmMsgBox = class extends bricks.HBox {
|
||||
super(opts);
|
||||
var img = new bricks.Icon({rate:2,url:this.icon||bricks_resource('imgs/user.png')});
|
||||
this.w = new bricks.MdWidget({mdtext:' '});
|
||||
this.w.set_css('filler');
|
||||
this.run = new bricks.BaseRunning({target:this});
|
||||
this.w.set_css(this.msg_css||'llm_msg');
|
||||
this.add_widget(img);
|
||||
this.add_widget(this.run)
|
||||
this.add_widget(this.w);
|
||||
this.add_widget(new bricks.BlankIcon({rate:2, flexShrink:0}));
|
||||
this.messages = [];
|
||||
}
|
||||
responsed(){
|
||||
|
@ -57,6 +57,7 @@ bricks.Toolbar = class extends bricks.Layout {
|
||||
"options":{
|
||||
width:"auto",
|
||||
orientation:"horizontal",
|
||||
flexShrink:0,
|
||||
icon:desc.icon,
|
||||
label:desc.label,
|
||||
name:desc.name,
|
||||
|
@ -68,17 +68,21 @@ bricks.JsWidget = class {
|
||||
"overflowY",
|
||||
"overflowX",
|
||||
"overflow",
|
||||
"flexShrink",
|
||||
"minWidth",
|
||||
"maxWidth",
|
||||
"minHeight",
|
||||
"maxHeight",
|
||||
"marginLeft",
|
||||
"marginRight",
|
||||
"marginTop",
|
||||
"marginBottom",
|
||||
"zIndex",
|
||||
"overflowX",
|
||||
"overflowY",
|
||||
"color"
|
||||
];
|
||||
var mapping_keys = {
|
||||
"flex-shrink":"flexShrink",
|
||||
"margin-left":"marginLeft",
|
||||
"margin-right":"marginRight",
|
||||
"margin-top":"marginTop",
|
||||
"margin-bottom":"marginBottom",
|
||||
"z-index":"zIndex",
|
||||
"overflow-x":"overflowX",
|
||||
"opveflow-y":"overflowY",
|
||||
"bgcolor":"backgroundColor"
|
||||
};
|
||||
var mkeys = Object.keys(mapping_keys);
|
||||
|
Loading…
Reference in New Issue
Block a user