You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var level = Level + 1 + Level * 0.5;
if (HasChilds && !NavItemGroupExpanded)
level += 0.25;
else if (!HasChilds && Level == 0)
level += 0.25;
// NezihOzkan level value must be (en-US) culture specific, otherwise the dot sign becomes a comma in other languages.
//return $"padding-left:{level}rem;";
return $"padding-left:{level.ToString(CultureInfo.CreateSpecificCulture("en-US"))}rem;";
}
The text was updated successfully, but these errors were encountered:
Describe the bug
Submember indentation is not possible in languages other than English in the Blazor Sidebar 2 component.
To Reproduce
Expected behavior
Versions (please complete the following information):
Sample code
private string GetNavLinkStyle()
{
// Implementation:
// Level 0 = 1rem = 0 + 1 + (0 * 0.5)
// Level 1 = 2.5rem = 1 + 1 + (1 * 0.5)
// Level 2 = 4rem = 2 + 1 + (2 * 0.5)
// ...
// Level n = ..... = n + 1 + (n * 0.5)
}
The text was updated successfully, but these errors were encountered: