Fix layout issues with the width of a post

This commit is contained in:
Bnyro 2023-07-13 16:36:23 +02:00
parent 1f044145b3
commit 7f993ee531
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,7 @@ impl SimpleComponent for PostPage {
gtk::Box {
set_orientation: gtk::Orientation::Vertical,
set_vexpand: false,
set_hexpand: true,
set_margin_all: 10,
#[local_ref]
@ -91,6 +92,8 @@ impl SimpleComponent for PostPage {
set_markup: &markdown_to_pango_markup(model.info.post_view.post.body.clone().unwrap_or("".to_string())),
set_wrap: true,
set_margin_top: 10,
set_margin_start: 15,
set_margin_end: 15,
set_use_markup: true,
},