We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7a6b86 commit 4897cedCopy full SHA for 4897ced
KeyUI.lua
@@ -785,8 +785,8 @@ function addon:SetKey(button)
785
end
786
787
-- Calculate the maximum allowed characters based on button width
788
- local max_allowed_chars = math.floor(button:GetWidth() / 8)
789
- local combined_text = button.short_key:GetText() -- Combined text with modifiers if present
+ local max_allowed_chars = math.floor(button:GetWidth() / 9)
+ local combined_text = button.short_key:GetText() or "" -- Use empty string if GetText() returns nil
790
791
-- Use Condensed font if the combined text exceeds max_allowed_chars
792
if string.len(combined_text) > max_allowed_chars then
0 commit comments