mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-13 06:12:19 +00:00
UI: stack notice buttons only below 200 pt so the 900-wide notice keeps its layout (#1913)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f6e335f3fe
commit
03a4c21cfe
1 file changed
+1
-1
@@ -4249,7 +4249,7 @@ fn notice_bar(ui: &mut egui::Ui, t: &Tokens, icon: &str, icon_color: Color32, te
|
||||
const ROW: f32 = 28.0;
|
||||
const ICON: f32 = 16.0;
|
||||
/// Content width below which the buttons stack under the message.
|
||||
const STACK_BELOW: f32 = 300.0;
|
||||
const STACK_BELOW: f32 = 200.0;
|
||||
egui::Frame::NONE.fill(t.accent_soft).inner_margin(egui::Margin::symmetric(14, 7)).show(ui, |ui| {
|
||||
let width = ui.available_width();
|
||||
if width < STACK_BELOW {
|
||||
|
||||
Reference in new issue
Block a user