mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 00:59:49 +00:00

Two changes in the theme config for 1024x600, which is inherited by the config for 800x600. Both are the same line but otherwise only loosely related to each other; together these fix issue #6264, which was that trigger areas for some tooltips overlapped. Reduce the width for the unit's name, thus giving the side-flag and side-number (which get the remaining horizontal space) enough space to display themselves. 128 pixels wide is the same as the name gets in larger themes, even though those larger themes use larger font sizes. This means that the side number doesn't get ellipsed, at least for games with up to 9 sides, with the side-effect that the tooltip can be displayed when hovering over the flag. Move the name, and thus the flag and side-number down by 1 pixel, so that they don't overlap with the tooltip trigger areas for movement points and terrain defense. The name's location is based on the placement of `unit-box-botleft`; the theme for larger screen-sizes similarly adds 5 pixels of padding because the `unit-box` is only 72x72 for the image, and the text areas for movement points and defense go lower than that. (cherry picked from commit 0d4854d5ffdcf265065d9519e2537dce14c8406e)