diff --git a/src/app/browser/window/tab/item/page/input/response/form/widget.rs b/src/app/browser/window/tab/item/page/input/response/form/widget.rs index 4f4c116f..5791fe70 100644 --- a/src/app/browser/window/tab/item/page/input/response/form/widget.rs +++ b/src/app/browser/window/tab/item/page/input/response/form/widget.rs @@ -1,8 +1,13 @@ use gtk::{ - gio::SimpleAction, glib::GString, prelude::{ActionExt, TextBufferExt, TextViewExt, WidgetExt}, TextView, WrapMode + gio::SimpleAction, + glib::GString, + prelude::{ActionExt, TextBufferExt, TextViewExt, WidgetExt}, + TextView, WrapMode, }; use std::sync::Arc; +const MARGIN: i32 = 8; + pub struct Widget { gobject: TextView, } @@ -12,10 +17,10 @@ impl Widget { pub fn new_arc(action_update: Arc) -> Arc { // Init gobject let gobject = TextView::builder() - .left_margin(8) - .pixels_above_lines(8) - .pixels_below_lines(8) - .right_margin(8) + .bottom_margin(MARGIN) + .left_margin(MARGIN) + .right_margin(MARGIN) + .top_margin(MARGIN) .wrap_mode(WrapMode::Word) .build();