[frontend] Fix mfm element styling

This commit is contained in:
Lilian 2024-06-27 12:02:01 +02:00 committed by Laura Hausmann
parent 578cd0c925
commit 10e772f2ab
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 5 additions and 1 deletions

View file

@ -13,4 +13,7 @@
}
}
.mfm {
margin: 0;
}
}

View file

@ -19,8 +19,9 @@ public class MfmRenderer
}
public static INode RenderMultipleNodes(IEnumerable<MfmNodeTypes.MfmNode> nodes, IDocument document)
{
var el = document.CreateElement("p");
var el = document.CreateElement("span");
el.SetAttribute("mfm", "mfm");
el.ClassName = "mfm";
foreach (var node in nodes)
{
try