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