From 454a9c7076b9afcbd9e9d38c8bcd7f671ef9709b Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Sat, 21 Jul 2018 19:41:15 +0300 Subject: [PATCH] ShowWidget: Fix description padding. --- hammond-gtk/resources/gtk/show_widget.ui | 6 ++++-- hammond-gtk/src/widgets/show.rs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hammond-gtk/resources/gtk/show_widget.ui b/hammond-gtk/resources/gtk/show_widget.ui index cf4e875..7daf0d6 100644 --- a/hammond-gtk/resources/gtk/show_widget.ui +++ b/hammond-gtk/resources/gtk/show_widget.ui @@ -79,12 +79,13 @@ Tobias Bernard 32 True vertical + 6 True False vertical - 12 + 6 True @@ -120,6 +121,7 @@ Sorry, we could not find a description for this Show. True center True + True 70 @@ -136,6 +138,7 @@ Sorry, we could not find a description for this Show. False False + 6 1 @@ -143,7 +146,6 @@ Sorry, we could not find a description for this Show. True False - 12 0 in diff --git a/hammond-gtk/src/widgets/show.rs b/hammond-gtk/src/widgets/show.rs index 02100f9..4fbe6dc 100644 --- a/hammond-gtk/src/widgets/show.rs +++ b/hammond-gtk/src/widgets/show.rs @@ -85,7 +85,7 @@ impl ShowWidget { /// Set the descripton text. fn set_description(&self, text: &str) { self.description - .set_markup(&html2text::from_read(text.as_bytes(), 70)); + .set_markup(html2text::from_read(text.as_bytes(), 70).trim()); } /// Save the scrollabar vajustment to the cache.