[frontend/mfm] Fix sizes of x3 and x4 fn nodes

This commit is contained in:
pancakes 2024-12-10 16:45:18 +10:00 committed by Laura Hausmann
parent 27eb943066
commit 427c2c2109
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -316,7 +316,14 @@ public static partial class MfmRenderer
{
var el = document.CreateElement("span");
el.SetAttribute("style", $"display: inline-block; font-size: {name.Replace("x", "")}em;");
var size = name switch
{
"x4" => "600%",
"x3" => "400%",
_ => "200%"
};
el.SetAttribute("style", $"display: inline-block; font-size: {size};");
return el;
}