1
0
Fork 0
godot/scene
GrammAcc d63a88bef1 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.
2023-09-30 18:16:39 -05:00
..
2d Implement conversion from `CPUParticles` to `GPUParticles` (3D/2D) 2023-08-19 11:58:57 +03:00
3d Implement conversion from `CPUParticles` to `GPUParticles` (3D/2D) 2023-08-19 11:58:57 +03:00
animation Merge pull request #80708 from garychia/anim_seek 2023-08-17 15:44:03 +02:00
audio Use StringName consistently to refer to the Master audio bus name 2023-08-07 18:06:17 +02:00
debugger Fix arg count checks in SceneDebugger 2023-07-19 18:13:15 +02:00
gui AssetLib: Fix long plugin names breaking the UI 2023-09-30 18:16:39 -05:00
main Merge pull request #80780 from HolonProduction/sub-window-focus-crash 2023-08-21 08:23:23 +02:00
resources Cleanup MeshLibrary changed signals 2023-08-19 11:56:31 +02:00
theme Merge pull request #68429 from KoBeWi/PropertySettings 2023-01-06 22:59:29 +01:00
SCsub
property_utils.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
property_utils.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
register_scene_types.cpp Merge pull request #79288 from BastiaanOlij/custom_texture_api 2023-07-26 18:40:01 +02:00
register_scene_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
scene_string_names.cpp Use StringName consistently to refer to the Master audio bus name 2023-08-07 18:06:17 +02:00
scene_string_names.h Use StringName consistently to refer to the Master audio bus name 2023-08-07 18:06:17 +02:00