From c240c9faeeb0897b5a29d8f701feb9195ce3ee86 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 12 Sep 2024 09:21:49 +0300 Subject: [PATCH] set vertical alignment to start --- src/app/browser/main/tab/page/content/text/gemini.cpp | 4 ++++ src/app/browser/main/tab/page/content/text/gemini.hpp | 1 + src/app/browser/main/tab/page/content/text/plain.cpp | 4 ++++ src/app/browser/main/tab/page/content/text/plain.hpp | 1 + 4 files changed, 10 insertions(+) diff --git a/src/app/browser/main/tab/page/content/text/gemini.cpp b/src/app/browser/main/tab/page/content/text/gemini.cpp index e0e86bbe..b38f091a 100644 --- a/src/app/browser/main/tab/page/content/text/gemini.cpp +++ b/src/app/browser/main/tab/page/content/text/gemini.cpp @@ -5,6 +5,10 @@ using namespace app::browser::main::tab::page::content::text; Gemini::Gemini( const Glib::ustring & GEMTEXT ) { + set_valign( + Gtk::Align::START + ); + set_wrap( true ); diff --git a/src/app/browser/main/tab/page/content/text/gemini.hpp b/src/app/browser/main/tab/page/content/text/gemini.hpp index aa6b56b1..8b8e7655 100644 --- a/src/app/browser/main/tab/page/content/text/gemini.hpp +++ b/src/app/browser/main/tab/page/content/text/gemini.hpp @@ -2,6 +2,7 @@ #define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_GEMINI_HPP #include +#include #include namespace app::browser::main::tab::page::content::text diff --git a/src/app/browser/main/tab/page/content/text/plain.cpp b/src/app/browser/main/tab/page/content/text/plain.cpp index 58347134..6042e65c 100644 --- a/src/app/browser/main/tab/page/content/text/plain.cpp +++ b/src/app/browser/main/tab/page/content/text/plain.cpp @@ -5,6 +5,10 @@ using namespace app::browser::main::tab::page::content::text; Plain::Plain( const Glib::ustring & TEXT ) { + set_valign( + Gtk::Align::START + ); + set_wrap( true ); diff --git a/src/app/browser/main/tab/page/content/text/plain.hpp b/src/app/browser/main/tab/page/content/text/plain.hpp index 1deff1cb..770c7143 100644 --- a/src/app/browser/main/tab/page/content/text/plain.hpp +++ b/src/app/browser/main/tab/page/content/text/plain.hpp @@ -2,6 +2,7 @@ #define APP_BROWSER_MAIN_TAB_PAGE_CONTENT_TEXT_PLAIN_HPP #include +#include #include namespace app::browser::main::tab::page::content::text