From ea0cf161db97cb49364edc0e09c82d7891f04388 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 13 Oct 2024 10:24:40 +0300 Subject: [PATCH] increase max width, add view adw class --- .../window/tab/item/page/content/text/gemini/widget.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/widget.rs b/src/app/browser/window/tab/item/page/content/text/gemini/widget.rs index 896e0b7f..77d722f1 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/widget.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/widget.rs @@ -10,7 +10,11 @@ impl Widget { // Construct pub fn new_arc(child: &TextView) -> Arc { Arc::new(Self { - gobject: ClampScrollable::builder().child(child).build(), + gobject: ClampScrollable::builder() + .child(child) + .css_classes(["view"]) + .maximum_size(840) + .build(), }) }