Compare commits

...
Author SHA1 Message Date
Martin BallandClaude Opus 5.5 8199f45fa2 Merge to New Document / Printer: From and To boxes on one row (#7976)
The To: caption pushed its box right of the From box. Both boxes now
share a row, "[from] To: [to]", under the From: radio.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx
2026-12-02 18:46:05 +00:00
Martin BallandClaude Opus 5.5 6e2b519b3e Merge to New Document / Printer: the To: box gets its caption back (#7976)
The second record-range box drew no caption; its "To:" was only the
accessible name. Wrap it in `labelled`, as Find Recipient and Insert
Merge Field already are. The first box keeps the From: radio as its
caption.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx
2026-12-02 00:49:06 +00:00
+12 -3
View File
@@ -269,12 +269,21 @@ impl WordForm for MergeRecordsForm {
})
});
self.choice = choice;
// Typing a number picks the range.
if let Some(v) = NumberField::new(tl!("From:"), Bind::given(self.from)).show(ui).value().copied() {
// Typing a number picks the range. One row, "[from] To: [to]": the From: radio captions the first box, the
// second needs its own (#7976).
let (from, to) = (self.from, self.to);
let (from, to) = ui
.horizontal(|ui| {
let from = NumberField::new(tl!("From:"), Bind::given(from)).show(ui).value().copied();
let to = labelled(ui, tl!("To:"), |name, ui| NumberField::new(name, Bind::given(to)).show(ui).value().copied()).flatten();
(from, to)
})
.inner;
if let Some(v) = from {
self.from = v;
self.choice = 2;
}
if let Some(v) = NumberField::new(tl!("To:"), Bind::given(self.to)).show(ui).value().copied() {
if let Some(v) = to {
self.to = v;
self.choice = 2;
}