summaryrefslogtreecommitdiffstats
path: root/platform/ios/export/export_plugin.cpp
diff options
context:
space:
mode:
authorGrammAcc <grammaticallyacceptable@gmail.com>2023-09-30 18:16:39 -0500
committerGrammAcc <grammaticallyacceptable@gmail.com>2023-09-30 18:16:39 -0500
commitd63a88bef1e10138741b6666def5b90460d6ba82 (patch)
treebca39146024dc0023a73d026e6217c51e28bbbc5 /platform/ios/export/export_plugin.cpp
parent6da4ad16624484398331f393b503f8b5e2888c51 (diff)
downloadredot-engine-d63a88bef1e10138741b6666def5b90460d6ba82.tar.gz
AssetLib: Fix long plugin names breaking the UI
The UI was extending past the screen width when loading a page diplaying a plugin with an especially long title in the asset store plugin. I implemented a new `EditorAssetLibraryItem::clamp_width` method that checks that the title text is not longer than the column width minus some padding and truncates it if it is. I also noticed that the nav buttons for paginated results were causing the UI to extend past the screen width on higher editor scales since they were hardcoded to show ten page buttons if there were enough results. I modified the pagination slightly to display a dynamic number of nav buttons based on the editor scale in order to fix this other cause of the same problem. I had to use the font of the `title`, which is a `LinkButton` in order to determine the text width, so I added a public getter `get_button_font` to the `LinkButton` class.
Diffstat (limited to 'platform/ios/export/export_plugin.cpp')
0 files changed, 0 insertions, 0 deletions