forked from 1b-agent/opencadstudio-upstream
feat(plot): read-only rows use the shared selectable read-only field
This commit is contained in:
1 parent
8e6b60910c
commit
41223f09d7
1 file changed
+6
-6
@@ -401,9 +401,11 @@ fn drop_row_enabled<'a>(
|
|||||||
}
|
}
|
||||||
row![
|
row![
|
||||||
text(label).size(11).style(muted_style).width(92),
|
text(label).size(11).style(muted_style).width(92),
|
||||||
container(text(selected.map(|choice| choice.to_string()).unwrap_or_default()).size(12).style(muted_style))
|
crate::ui::read_only::field(
|
||||||
.padding([4, 7])
|
selected.map(|choice| choice.to_string()).unwrap_or_default().as_str(),
|
||||||
.width(width),
|
12.0,
|
||||||
|
width,
|
||||||
|
),
|
||||||
]
|
]
|
||||||
.spacing(8)
|
.spacing(8)
|
||||||
.align_y(iced::Center)
|
.align_y(iced::Center)
|
||||||
@@ -442,9 +444,7 @@ fn field_row_enabled<'a>(
|
|||||||
}
|
}
|
||||||
row![
|
row![
|
||||||
text(label).size(11).style(muted_style).width(92),
|
text(label).size(11).style(muted_style).width(92),
|
||||||
container(text(value.to_string()).size(12).style(muted_style))
|
crate::ui::read_only::field(value, 12.0, Length::Fixed(width as f32)),
|
||||||
.padding([4, 7])
|
|
||||||
.width(width as f32),
|
|
||||||
]
|
]
|
||||||
.spacing(8)
|
.spacing(8)
|
||||||
.align_y(iced::Center)
|
.align_y(iced::Center)
|
||||||
|
|||||||
Reference in new issue
Block a user