The approval dialog set AdwDialog:content-width, which an AdwAlertDialog ignores — it uses internal breakpoints, and a breakpoint-using AdwDialog has no minimum size, so the dialog rendered 300px wide however large the request. Pin it with a width-request instead (plain::alert_width), which the dialog honours exactly. With that working, drop the shared dialog width from 560 to 480 and shrink the main window to 560x740 so both dialogs sit comfortably inside it.
14 lines
216 B
Plaintext
14 lines
216 B
Plaintext
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
Adw.ApplicationWindow window {
|
|
title: "Regent";
|
|
default-width: 560;
|
|
default-height: 740;
|
|
|
|
content: Adw.ToolbarView toolbar_view {
|
|
[top]
|
|
Adw.HeaderBar header_bar {}
|
|
};
|
|
}
|