-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Description
When working with elements in the right-side tabs panel, encountering elements with long names (e.g., lengthy entity IDs or asset paths) causes a critical UI issue:
The tab's width permanently expands to accommodate the long name, even if the element is no longer visible.
This forces the tab to occupy an excessive portion of the screen (see attached screenshot).
The only workaround is to restart Loenn, as manually resizing the panel or switching tabs fails to reset the width.
Steps to Reproduce
Open a map in Loenn.
Add an element with an unusually long name to the right-side tab (e.g., via custom entities or lengthy asset paths).
Trigger the tab to display this element (e.g., select it in the editor).
Observe the tab’s width permanently increasing, crowding out the central workspace.
The tab's width permanently expands to accommodate the long name, even if the element is no longer visible.
Expected Behavior
The right panel’s width should either:
Revert to its original/default size after the long-named element is no longer active, or
Respect manual user resizing without requiring a restart.
Proposed Solution
Add a user-configurable maximum width setting for the right-side tabs panel. This could include:
A slider in Preferences > UI to set a pixel-based limit.
A toggle to enforce auto-resetting the width when elements disappear.
Alternatively, implement dynamic width adjustment that truncates long names (with tooltips).