feat: Redesign New Chat (#31)
* make subject is optional * redesign * search * fix * adjust
This commit is contained in:
@@ -308,9 +308,15 @@ impl RenderOnce for Button {
|
||||
// Normal Button
|
||||
match self.size {
|
||||
Size::Size(size) => this.px(size * 0.2),
|
||||
Size::XSmall => this.h_6().px_1p5(),
|
||||
Size::Small => this.h_7().px_2(),
|
||||
Size::Large => this.h_10().px_3(),
|
||||
Size::XSmall => this.h_6().px_2(),
|
||||
Size::Small => {
|
||||
if self.icon.is_some() {
|
||||
this.h_7().pl_2().pr_3()
|
||||
} else {
|
||||
this.h_7().px_3()
|
||||
}
|
||||
}
|
||||
Size::Large => this.h_10().px_4(),
|
||||
_ => this.h_9().px_2(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user