Fix display of links in lists (markdown_preview) (#8073)

![markdown_preview](https://github.com/zed-industries/zed/assets/67913738/d8e4800f-d549-42e7-90b4-001d98aa39d2)

Release Notes:

- Fixed display of long links in lists not fully visible in markdown
preview.
This commit is contained in:
Robin Pfäffle 2024-02-20 19:30:40 +01:00 committed by GitHub
parent d51a0b60be
commit 78dcd72790
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -154,7 +154,7 @@ fn render_markdown_list(parsed: &ParsedMarkdownList, cx: &mut RenderContext) ->
let item = h_flex()
.pl(DefiniteLength::Absolute(AbsoluteLength::Rems(padding)))
.items_start()
.children(vec![bullet, div().children(contents).pr_2().w_full()]);
.children(vec![bullet, div().children(contents).pr_4().w_full()]);
items.push(item);
}