feat: Redesign New Chat (#31)

* make subject is optional

* redesign

* search

* fix

* adjust
This commit is contained in:
reya
2025-05-12 20:46:01 +07:00
committed by GitHub
parent 2f83b5091e
commit 4e24061817
32 changed files with 580 additions and 367 deletions

View File

@@ -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(),
}
}