CounterStrikeSharp icon indicating copy to clipboard operation
CounterStrikeSharp copied to clipboard

A method to control the characters limitation of a centerhtmlmenu item

Open samyycX opened this issue 1 month ago • 0 comments

Currently we have CenterHtmlMenu.cs#L61 and CenterHtmlMenu.cs#72 to limit the character amount.

I think it is because the original developer want to ensure items are displayed in one line. (https://github.com/roflmuffin/CounterStrikeSharp/pull/268#issuecomment-1901229101) But with such limitation, the html labels in text will be counted too, even if they don't change the length of the text, and using other characters (like Chinese characters) will cause the view to be malformed too.

It would be great if we can have a method to control these limitations, and please tell me if there are more reasons to have these limitations.

samyycX avatar May 11 '24 11:05 samyycX