Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assetlib: Fix long plugin names breaking the UI #80555

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Assetlib: Fix long plugin names breaking the UI #80555

merged 1 commit into from
Oct 2, 2023

Commits on Sep 30, 2023

  1. 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.
    GrammAcc committed Sep 30, 2023
    Configuration menu
    Copy the full SHA
    d63a88b View commit details
    Browse the repository at this point in the history