From 50a0b3b6e51cf462db40ada9dccd2d47255dd1ee Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 18 Dec 2024 20:28:38 +0200 Subject: [PATCH] fix margins --- .../window/tab/item/page/input/response/control/send/widget.rs | 3 --- .../window/tab/item/page/input/response/control/widget.rs | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/browser/window/tab/item/page/input/response/control/send/widget.rs b/src/app/browser/window/tab/item/page/input/response/control/send/widget.rs index 66cfd60e..d8b376c4 100644 --- a/src/app/browser/window/tab/item/page/input/response/control/send/widget.rs +++ b/src/app/browser/window/tab/item/page/input/response/control/send/widget.rs @@ -4,8 +4,6 @@ use gtk::{ Button, }; -const MARGIN: i32 = 6; - pub struct Widget { pub button: Button, } @@ -17,7 +15,6 @@ impl Widget { let button = Button::builder() //.css_classes(["accent"]) .label("Send") - .margin_bottom(MARGIN) .build(); // Init events diff --git a/src/app/browser/window/tab/item/page/input/response/control/widget.rs b/src/app/browser/window/tab/item/page/input/response/control/widget.rs index 427205c2..a878771d 100644 --- a/src/app/browser/window/tab/item/page/input/response/control/widget.rs +++ b/src/app/browser/window/tab/item/page/input/response/control/widget.rs @@ -1,5 +1,6 @@ use gtk::{prelude::BoxExt, Align, Box, Button, Label, Orientation}; +const MARGIN: i32 = 8; const SPACING: i32 = 8; pub struct Widget { @@ -12,6 +13,7 @@ impl Widget { // Init main widget let g_box = Box::builder() .halign(Align::End) + .margin_bottom(MARGIN) .orientation(Orientation::Horizontal) .spacing(SPACING) .build();