[frontend/mfm] Fix sizes of x3 and x4 fn nodes
This commit is contained in:
parent
27eb943066
commit
427c2c2109
1 changed files with 8 additions and 1 deletions
|
@ -316,7 +316,14 @@ public static partial class MfmRenderer
|
||||||
{
|
{
|
||||||
var el = document.CreateElement("span");
|
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;
|
return el;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue