diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget.rs index c8c6553a..26bcb1e4 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget.rs @@ -3,6 +3,8 @@ use gtk::{ }; use std::sync::Arc; +const MARGIN: i32 = 16; + pub struct Widget { gobject: TextView, } @@ -16,11 +18,15 @@ impl Widget { motion_controller: EventControllerMotion, ) -> Arc { let gobject = TextView::builder() - .editable(false) - .cursor_visible(false) - .wrap_mode(WrapMode::Word) - .vexpand(true) + .bottom_margin(MARGIN) .buffer(buffer) + .cursor_visible(false) + .editable(false) + .left_margin(MARGIN) + .right_margin(MARGIN) + .top_margin(MARGIN) + .vexpand(true) + .wrap_mode(WrapMode::Word) .build(); gobject.add_controller(primary_button_controller);