From 812553af499fb7da60ca7350d52d0fd329902b4d Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 15 Nov 2025 19:15:22 +0200 Subject: [PATCH] init TextView as the single-line entry --- src/app/browser/window/tab/item/page/input/response/form.rs | 2 +- src/app/browser/window/tab/item/page/input/titan/text/form.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/page/input/response/form.rs b/src/app/browser/window/tab/item/page/input/response/form.rs index aa3af0e9..0e0f8f0d 100644 --- a/src/app/browser/window/tab/item/page/input/response/form.rs +++ b/src/app/browser/window/tab/item/page/input/response/form.rs @@ -36,9 +36,9 @@ impl Form for TextView { .css_classes(["frame", "view"]) .extra_menu(&adapter.menu_model()) .left_margin(MARGIN) - .margin_bottom(MARGIN / 4) .right_margin(MARGIN) .top_margin(MARGIN) + .valign(gtk::Align::BaselineCenter) .wrap_mode(WrapMode::Word) .build(); diff --git a/src/app/browser/window/tab/item/page/input/titan/text/form.rs b/src/app/browser/window/tab/item/page/input/titan/text/form.rs index bf461456..44d2cbf5 100644 --- a/src/app/browser/window/tab/item/page/input/titan/text/form.rs +++ b/src/app/browser/window/tab/item/page/input/titan/text/form.rs @@ -34,6 +34,7 @@ impl Form for TextView { .left_margin(MARGIN) .right_margin(MARGIN) .top_margin(MARGIN) + .valign(gtk::Align::BaselineCenter) .wrap_mode(WrapMode::Word) .build() };