[Project Manager] Fix Wrap Long Project Title and Compact Mode - #122061
[Project Manager] Fix Wrap Long Project Title and Compact Mode#122061CarrotOfPower wants to merge 2 commits into
Conversation
|
The tags are already taken into account in |
Strange... My system info is: Godot v4.8.dev2 - Windows 11 (build 26200) - Multi-window, 1 monitor - Direct3D 12 (Forward+) - dedicated AMD Radeon 780M Graphics (Advanced Micro Devices, Inc.; 32.0.13018.6) - AMD Ryzen 7 8700G w/ Radeon 780M Graphics (16 threads) - 31.11 GiB memory - WASAPI (48000 Hz, Stereo/mono) I've set interface/editor/appearance/ Anyway, this fixes the bug for me. |
24db6a3 to
86e5b7a
Compare
|
I'm genuinely confused. I tested this at all standard editor scales before pushing the change and it worked perfectly. Now it barely works at 1.25 and breaks completely at any scale above 1.5. I tried implementing your change in my custom build and it's still broken and somehow your build broke and is staying broken. I'll have to look into it. |
|
@Anyone4551, I managed to get a fix that works on my end and in my testing found another bug. If you don't mind I would like to create a PR that includes the fix for this bug, the fix for the other bug, and your last fix #122037. Would also make the changes easier to cherrypick for 4.7.2. You'll be added as a Co-Author, it's also fine if you prefer not to, it's up to you. |
unit-tick
left a comment
There was a problem hiding this comment.
This works on my end, also doesn't break when opened with a single tag, which your previous changes did.
86e5b7a to
f133b77
Compare
|
@unit-tick Yes! It works. Of course, you can create a PR yourself. Finally, You fixed it. Nevertheless, I updated this one. |
81bc7f4 to
18a6c10
Compare
18a6c10 to
86e5b7a
Compare
ffb7e28 to
7ed0865
Compare
|
Tested this fix and it doesn't work at 0.75 editor scale, which means it does not fix #122092, so that needs to be removed so a proper fix can be made for it. UI.clipping.0.75.scale.mp4 |
7ed0865 to
2d80df4
Compare
266f464 to
520795f
Compare
|
@AThousandShips Since I cannot find a "Request for Review" button, I would like to ask you for a review. |
088e3e6 to
3afb07f
Compare
|
I don't really have anything to add |
3132555 to
62ceab2
Compare
f4877f8 to
0d3dd94
Compare
245a730 to
09b2088
Compare
Fixes several issues where long project titles were not wrapping correctly in the project list. Co-authored-by: unit-tick <official.prince.john@gmail.com>
Adds a compact mode setting which hides the project list sidebar when the project manager is shrunk. Adds a compact mode threshold setting that sets the point beyond which the project list sidebar is hidden. Co-authored-by: CarrotOfPower <260066004+CarrotOfPower@users.noreply.github.com>
This is meant for 4.8. You can find the fix for 4.7.2 here: #122350.
What problem(s) does this PR solve?
title_size_cachethrough logic, so the value is calculated and save for future layout changes, while the magic number had to be adjusted for layout changes.#122075
wrap_long_project_title_empty_tag_container_bug.mp4
#122092
The bug in that issue was caused by #121387 as it introduced a compact mode which hid the sidebar when the project manager was shrunk beyond a threshold. This PR does two things:
Reasoning
Since the mentioned PR was andriod focused, a compact mode setting builds upon the PR, it is set to on by default on the intended mobile devices and off on desktop devices.
Because desktop devices have more real-estate, the compact_mode_threshold gives users more fine grained control.
(This text is from #122152)
Difference to #122152 / #122095
title_size_cachethrough logic, so the value is calculated and save for future layout changes, while the magic number had to be adjusted for layout changes.This is #122152:
project-manager-add-compact-mode.mp4
As you may notice, the tags do not resize at first, title and tags share the space somewhere in the middle.
Also, you see the errors from #122257 in the terminal window.
This PR:
fix-wrap-long-project-title-result-scale-2.2-demo.mp4
It ensures that the tags do resize at first, so the title can take mor space, which can be used more efficiently.
You don't see any errors in the terminal window.
Also, #122152 currently broke the compact mode setting. For demo:
#122152:
project-manager-add-compact-mode-setting-applied-compact-mode-bug.mp4
This PR:
fix-wrap-long-project-title-result-scale-2.2-compact-mode-demo.mp4
Additional information
Validated by building the Windows editor with SCons and testing it, as well as testing the test artifact for Windows.