Misc · Export and import: reasons wrap; every way out tested

feedback::InlineMessage lays its words in a block that wraps, so the
importer's reason for unread text no longer runs past the dialog. The
reader skips a leading byte order mark, names the line an unclosed
quote opened on, and logs once per reading. Tests press each Cancel,
the scrim, Export with the first format, see focus return to the
opener, read new text under an open importer, and see a field with no
column come empty.
This commit is contained in:
ZacharyZhang-NY committed 2026-09-28 05:50:28 -04:00
1 parent 79fe78cefd
commit 385faa0581
4 files changed
+208 -29

No files matched your search

+8 -2
View File
@@ -271,7 +271,7 @@ impl RenderOnce for Callout {
}
}
/// One line beside what it is about, in the severity's color.
/// A line beside what it is about, in the severity's color; a long one wraps.
#[derive(IntoElement)]
pub struct InlineMessage {
severity: Severity,
@@ -302,7 +302,13 @@ impl RenderOnce for InlineMessage {
.size(IconSize::Xs)
.color(tone),
)
.child(self.text)
.child(
div()
.debug_selector(|| "inline-message-text".into())
.flex_1()
.min_w_0()
.child(self.text),
)
}
}