Fix width of crop labels in screenshot example (again)

This commit is contained in:
Héctor Ramón Jiménez 2023-06-06 16:36:20 +02:00
parent 38582873b7
commit 78c0189824
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -153,11 +153,11 @@ impl Application for Example {
let crop_origin_controls = row![
text("X:")
.vertical_alignment(alignment::Vertical::Center)
.width(20),
.width(30),
numeric_input("0", self.x_input_value).map(Message::XInputChanged),
text("Y:")
.vertical_alignment(alignment::Vertical::Center)
.width(20),
.width(30),
numeric_input("0", self.y_input_value).map(Message::YInputChanged)
]
.spacing(10)
@ -166,12 +166,12 @@ impl Application for Example {
let crop_dimension_controls = row![
text("W:")
.vertical_alignment(alignment::Vertical::Center)
.width(20),
.width(30),
numeric_input("0", self.width_input_value)
.map(Message::WidthInputChanged),
text("H:")
.vertical_alignment(alignment::Vertical::Center)
.width(20),
.width(30),
numeric_input("0", self.height_input_value)
.map(Message::HeightInputChanged)
]