forked from 1b-agent/opencadstudio-upstream
feat(text-style): read-only rows use the shared selectable read-only field
This commit is contained in:
1 parent
f2c4d389db
commit
61c3497d7f
1 file changed
+1
-1
@@ -220,7 +220,7 @@ fn input_row<'a>(
|
||||
read_only: bool,
|
||||
) -> Element<'a, Message> {
|
||||
let control: Element<'a, Message> = if read_only {
|
||||
container(text(value).size(11)).padding([5, 7]).width(180).into()
|
||||
crate::ui::read_only::field(value, 11.0, Length::Fixed(180.0))
|
||||
} else {
|
||||
text_input(placeholder.as_ref(), value)
|
||||
.on_input(move |value| Message::TextStyleEdit { field, value })
|
||||
|
||||
Reference in new issue
Block a user