From 3c82ab9de977d1facae8ee32f49f8bfc12711e04 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 16 Dec 2024 13:54:04 +0200 Subject: [PATCH] update margins for `osd` class --- .../window/tab/item/page/input/response/title/widget.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/browser/window/tab/item/page/input/response/title/widget.rs b/src/app/browser/window/tab/item/page/input/response/title/widget.rs index 4cb208b1..d38f0177 100644 --- a/src/app/browser/window/tab/item/page/input/response/title/widget.rs +++ b/src/app/browser/window/tab/item/page/input/response/title/widget.rs @@ -1,5 +1,7 @@ use gtk::{prelude::WidgetExt, Align, Label}; +const MARGIN: i32 = 6; + pub struct Widget { pub label: Label, } @@ -10,8 +12,9 @@ impl Widget { let label = Label::builder() .css_classes(["heading"]) .halign(Align::Start) - .margin_end(8) - .margin_start(8) + .margin_end(MARGIN) + .margin_start(MARGIN) + .margin_top(MARGIN) .visible(false) .build();