From aa0f0e73aa06242b8228fd81df8acaac6f377b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 30 Jan 2025 01:47:10 +0100 Subject: [PATCH] Let `markdown::view` be `Shrink` when no code blocks exist --- widget/src/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/src/markdown.rs b/widget/src/markdown.rs index 252a3e1aa5..2b7bc0fc7f 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.