Settings: controls give way, notices fold, and every edit needs its owner
A settings row's control slot shrinks to the box, so a control's text wraps and a palette's row folds; the font size's sample wraps in a plain block. A notice's boxes carry their channel's name and fold under the kind's name when narrow. canvas::panel::editing takes the owner's handler itself: the design panels, the structure editor, the index manager and the privacy, notice and startup settings take theirs at render and fail loud without one. Apply fails loud if pressed while the proxy does not read. Tests cover Apply resting on a bad port, the way back resting at the default size and a box pressed off.
This commit is contained in:
1 parent
380cdb0676
commit
195f9964a0
15 files changed
+172
-85
No files matched your search
@@ -217,6 +217,9 @@ impl RenderOnce for SettingsRow {
|
||||
.child(text)
|
||||
})),
|
||||
)
|
||||
.children(self.control.map(|control| div().flex_none().child(control)))
|
||||
.children(
|
||||
self.control
|
||||
.map(|control| div().flex_none().min_w_0().max_w_full().child(control)),
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user