[fractal] Message Widget: Add margins for lists
- From: Alejandro Domínguez <aledomu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] Message Widget: Add margins for lists
- Date: Wed, 3 Feb 2021 00:56:03 +0000 (UTC)
commit 7bec0f36dbd7bc8b0b04b1117fa19631228db65e
Author: Maximiliano Sandoval R <msandova protonmail com>
Date: Tue Dec 22 18:50:08 2020 +0100
Message Widget: Add margins for lists
Ordered and unordered lists now have margins.
fractal-gtk/src/widgets/message.rs | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/fractal-gtk/src/widgets/message.rs b/fractal-gtk/src/widgets/message.rs
index 319d7a24..ad80b058 100644
--- a/fractal-gtk/src/widgets/message.rs
+++ b/fractal-gtk/src/widgets/message.rs
@@ -551,6 +551,8 @@ fn render_html_block(container: &MessageBoxContainer, msg: &Message, block: &Htm
}
HtmlBlock::UList(elements) => {
let bx = gtk::Box::new(gtk::Orientation::Vertical, 6);
+ bx.set_margin_end(6);
+ bx.set_margin_start(6);
for li in elements.iter() {
let h_box = gtk::Box::new(gtk::Orientation::Horizontal, 6);
@@ -569,6 +571,8 @@ fn render_html_block(container: &MessageBoxContainer, msg: &Message, block: &Htm
}
HtmlBlock::OList(elements) => {
let bx = gtk::Box::new(gtk::Orientation::Vertical, 6);
+ bx.set_margin_end(6);
+ bx.set_margin_start(6);
for (i, ol) in elements.iter().enumerate() {
let h_box = gtk::Box::new(gtk::Orientation::Horizontal, 6);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]