ui fix
This commit is contained in:
parent
5e4560e89e
commit
9961a31936
7 changed files with 1587 additions and 16 deletions
20
src/main.rs
20
src/main.rs
|
|
@ -263,12 +263,7 @@ fn build_ui(app: &Application) {
|
|||
|
||||
let rent_sheet = Box::builder()
|
||||
.orientation(Orientation::Vertical)
|
||||
.spacing(16)
|
||||
.build();
|
||||
let rent_sheet_title = Label::builder()
|
||||
.css_classes(["title-4"])
|
||||
.label("Rent Bike")
|
||||
.xalign(0.0)
|
||||
.spacing(12)
|
||||
.build();
|
||||
let rent_form = Box::builder()
|
||||
.orientation(Orientation::Vertical)
|
||||
|
|
@ -278,7 +273,6 @@ fn build_ui(app: &Application) {
|
|||
rent_form.append(&rent_err);
|
||||
rent_form.append(&rent_submit);
|
||||
rent_form.append(&rent_spinner);
|
||||
rent_sheet.append(&rent_sheet_title);
|
||||
rent_sheet.append(&rent_form);
|
||||
|
||||
// — Return form —
|
||||
|
|
@ -318,14 +312,8 @@ fn build_ui(app: &Application) {
|
|||
|
||||
let ret_sheet = Box::builder()
|
||||
.orientation(Orientation::Vertical)
|
||||
.spacing(16)
|
||||
.spacing(12)
|
||||
.build();
|
||||
let ret_sheet_title = Label::builder()
|
||||
.css_classes(["title-4"])
|
||||
.label("Return Bike")
|
||||
.xalign(0.0)
|
||||
.build();
|
||||
ret_sheet.append(&ret_sheet_title);
|
||||
ret_sheet.append(&ret_inner);
|
||||
|
||||
// — Shared sheet stack —
|
||||
|
|
@ -335,8 +323,8 @@ fn build_ui(app: &Application) {
|
|||
|
||||
let sheet_box = Box::builder()
|
||||
.orientation(Orientation::Vertical)
|
||||
.margin_top(8)
|
||||
.margin_bottom(24)
|
||||
.margin_top(34)
|
||||
.margin_bottom(18)
|
||||
.margin_start(16)
|
||||
.margin_end(16)
|
||||
.build();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue