Skip to content

Commit

Permalink
Fix text overflow in mods manager tooltips
Browse files Browse the repository at this point in the history
The mod manager is using some custom logic for the tooltips and its was not scaling the width of the tooltip causing text overflow on couple of the elements.
  • Loading branch information
speed2CZ committed Jan 1, 2025
1 parent 12c3305 commit 4c06251
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/ui/lobby/ModsManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,7 @@ end
function AddTooltip(control, title, description, width, padding, fontSize, position)
if not fontSize then fontSize = 14 end
if not position then position = 'left' end
if width then width = LayoutHelpers.ScaleNumber(width) end
import("/lua/ui/game/tooltip.lua").AddControlTooltipManual(control, title, description, 0, width, 6, fontSize or 14, fontSize, position or 'left')
end

Expand Down

0 comments on commit 4c06251

Please sign in to comment.