From aa0f0e73aa06242b8228fd81df8acaac6f377b71 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 30 Jan 2025 01:47:10 +0100 Subject: Let `markdown::view` be `Shrink` when no code blocks exist --- widget/src/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widget/src/markdown.rs') diff --git a/widget/src/markdown.rs b/widget/src/markdown.rs index 252a3e1a..2b7bc0fc 100644 --- a/widget/src/markdown.rs +++ b/widget/src/markdown.rs @@ -735,7 +735,7 @@ where .into(), }); - Element::new(column(blocks).width(Length::Fill).spacing(text_size)) + Element::new(column(blocks).spacing(spacing)) } /// The theme catalog of Markdown items. -- cgit