From db7b1044f4e9cc9e56da50b5c29e603af57315ee Mon Sep 17 00:00:00 2001 From: Heliguy Date: Mon, 2 Sep 2024 22:02:50 -0400 Subject: [PATCH] Fix the padding --- src/main_window/window.blp | 4 +-- src/remotes_page/add_remote_dialog.blp | 39 +++++++++++++++++--------- 2 files changed, 27 insertions(+), 16 deletions(-) diff --git a/src/main_window/window.blp b/src/main_window/window.blp index 4d62690..277d4d7 100644 --- a/src/main_window/window.blp +++ b/src/main_window/window.blp @@ -6,7 +6,7 @@ template $WarehouseWindow: Adw.ApplicationWindow { // default-width: 240; default-width: 865; width-request: 400; - height-request: 360; + height-request: 260; Adw.Breakpoint main_breakpoint { condition ("min-width: 865") @@ -182,4 +182,4 @@ menu primary_menu { action: "app.about"; } } -} \ No newline at end of file +} diff --git a/src/remotes_page/add_remote_dialog.blp b/src/remotes_page/add_remote_dialog.blp index 72f1d9f..5bfcd64 100644 --- a/src/remotes_page/add_remote_dialog.blp +++ b/src/remotes_page/add_remote_dialog.blp @@ -5,7 +5,7 @@ template $AddRemoteDialog : Adw.Dialog { title: _("Add a Remote"); // content-width: 500; // content-height: 375; - width-request: 400; + // width-request: 400; follows-content-size: true; Adw.ToolbarView { [top] @@ -24,19 +24,30 @@ template $AddRemoteDialog : Adw.Dialog { } Adw.ToastOverlay toast_overlay { Stack stack { - Adw.PreferencesPage content_page { - Adw.PreferencesGroup { - Adw.EntryRow title_row { - title: _("Enter Title"); - } - Adw.EntryRow name_row { - title: _("Enter Name"); - } - Adw.EntryRow url_row { - title: _("Enter Repo URL"); - } - Adw.ComboRow installation_row { - title: _("Installation"); + ScrolledWindow content_page { + propagate-natural-height: true; + propagate-natural-width: true; + Adw.Clamp { + ListBox { + margin-start: 12; + margin-end: 12; + margin-top: 12; + margin-bottom: 12; + selection-mode: none; + valign: start; + styles ["boxed-list"] + Adw.EntryRow title_row { + title: _("Enter Title"); + } + Adw.EntryRow name_row { + title: _("Enter Name"); + } + Adw.EntryRow url_row { + title: _("Enter Repo URL"); + } + Adw.ComboRow installation_row { + title: _("Installation"); + } } } }