bugfix
This commit is contained in:
parent
e50012751d
commit
6d10256aa9
@ -484,7 +484,7 @@ bricks.LlmIO = class extends bricks.VBox {
|
|||||||
var w = await bricks.widgetBuild(this.input_view, this.o_w, data);
|
var w = await bricks.widgetBuild(this.input_view, this.o_w, data);
|
||||||
w.set_css(this.msg_css||'user_msg');
|
w.set_css(this.msg_css||'user_msg');
|
||||||
w.set_css('filler');
|
w.set_css('filler');
|
||||||
var img = new bricks.Svg({rate:2,url:this.user_icon||bricks_resource('imgs/user.svg')});
|
var img = new bricks.Svg({rate:2,url:this.user_icon||bricks_resource('imgs/chat-user.svg')});
|
||||||
box.add_widget(new bricks.BlankIcon({rate:2, flexShrink:0}));
|
box.add_widget(new bricks.BlankIcon({rate:2, flexShrink:0}));
|
||||||
box.add_widget(w);
|
box.add_widget(w);
|
||||||
box.add_widget(img);
|
box.add_widget(img);
|
||||||
|
@ -23,7 +23,7 @@ bricks.UserMsgBox = class extends bricks.HBox {
|
|||||||
*/
|
*/
|
||||||
constructor(opts){
|
constructor(opts){
|
||||||
super(opts);
|
super(opts);
|
||||||
var img = new bricks.Svg({rate:2,url:this.icon||bricks_resource('imgs/user.svg')});
|
var img = new bricks.Svg({rate:2,url:this.icon||bricks_resource('imgs/chat-user.svg')});
|
||||||
var w = new bricks.MdWidget({mdtext:this.prompt});
|
var w = new bricks.MdWidget({mdtext:this.prompt});
|
||||||
w.set_css('filler');
|
w.set_css('filler');
|
||||||
w.set_css(this.msg_css||'user_msg');
|
w.set_css(this.msg_css||'user_msg');
|
||||||
|
@ -31,9 +31,11 @@ bricks.Svg = class extends bricks.VBox {
|
|||||||
fetch(url)
|
fetch(url)
|
||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then(svgText => {
|
.then(svgText => {
|
||||||
this.svgText = svgText;
|
if (svgText.startsWith("<svg ")){
|
||||||
this.set_colored_svg(this.color);
|
this.svgText = svgText;
|
||||||
if (this.blink) this.start_blink();
|
this.set_colored_svg(this.color);
|
||||||
|
if (this.blink) this.start_blink();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
set_ancent_color(e){
|
set_ancent_color(e){
|
||||||
|
Loading…
Reference in New Issue
Block a user