mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 16:31:18 +00:00
Set item_spacing.x to zero when rendering note content.
This commit is contained in:
parent
234881bedb
commit
1c87d1e390
@ -14,6 +14,8 @@ pub(super) fn render_content(
|
||||
as_deleted: bool,
|
||||
content: &str,
|
||||
) {
|
||||
ui.style_mut().spacing.item_spacing.x = 0.0;
|
||||
|
||||
for span in LinkFinder::new().kinds(&[LinkKind::Url]).spans(content) {
|
||||
if span.kind().is_some() {
|
||||
ui.hyperlink_to(span.as_str(), span.as_str());
|
||||
@ -70,4 +72,6 @@ pub(super) fn render_content(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ui.reset_style();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user