-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[NoSquash] Redesign ContentDB dialog #14510
base: master
Are you sure you want to change the base?
Conversation
simplescreenrecorder-2024-04-01_19.32.41.mp4 |
98496ce
to
8c409bf
Compare
52551ac
to
e78e885
Compare
fb0a74a
to
0602e50
Compare
Sounds like a bug, as there is code for this: https://github.com/minetest/minetest/pull/14510/files#diff-64584e870acd6076965d3fd26c9a538de7ecc5c1bc8fa7003a013006c7dc1fa8R363
I'll have to reduce the |
617ca01
to
e3dcceb
Compare
This unfortunately isn't much better on my real device. There's still a lot of free space and titles are still cut off. Also, hardcoding a different number of items per page based on OS feels like a bad approach to me. This could use Maybe it would make more sense to have a minimum tile size and then determine the number of tiles per page based on that? Something like CSS grid (I couldn't test the package dialog changes because the long description isn't shown anymore.) |
The number of items per page can't change at runtime, so it would need to use the value of
I plan on moving the title and author names onto separate lines, this would avoid the clipping issues
The problem with changing the number of items based on window size is that the player could resize their window and lose their position. So num_per_page needs to be fixed at runtime - at best you could use the window size when opening the dialog
Fixed
Feedback is welcome, but there's a lot in the to do list and #14507 needs to be reviewed and merged first |
5e8e4ea
to
962d315
Compare
I can't reproduce the |
b03c790
to
2e537b7
Compare
Rebase error, fixed
Fixed, the
It's possible but not something I want to do in this PR
It's more complicated to do this without the text overlapping or scrolling, I'd rather leave it as is - can be improved in future PRs
This is something for a future PR imo
Something for a future PR
I assume you mean the download size? It's shown with the nearest significant unit, I think it's relevant. |
Please may you provide the max_formspec_size so I can reproduce your exact set up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing and applying my patch!
Please may you provide the max_formspec_size so I can reproduce your exact set up
Here you go (fresh installation, all settings at their default values):
{
touch_controls = false,
real_gui_scaling = 3,
real_hud_scaling = 2.5500001907349,
size = {
y = 1080,
x = 2412
},
max_formspec_size = {
y = 10,
x = 22.333333969116
}
}
Ok, so the reason why it chooses to do 5 columns is because 4 columns is too tall for the available space:
What I can do is add 0.05 - 0.1 to the available height to allow it to go slightly into the margin I added a red |
Ok, yeah, that's very close. Your proposed solution sounds good to me. In the end, going a little bit into the margin is probably better than wasting a lot of space. Thanks for investigating. |
2e537b7
to
f3abde6
Compare
Ok, added the 0.1 and also hid the queued icon background |
The grid/flex code can always been improved in future PRs, especially if we get a new GUI API with a flex component! |
ed45e35
to
3ce07c1
Compare
3ce07c1
to
e519bf8
Compare
How did you determine the values for "Respect Android safe zone"? Why is there so much left margin in the package list, but no left margin in the package dialog? |
e519bf8
to
0ce18b1
Compare
It's a magic value based on my phone screen. Perhaps you could call the Android APIs to determine how much space, but maybe just having a margin of two all around on Android would make sense. And yes, the package view should do a similar thing |
403bba2
to
92d89bc
Compare
Since there was a complaint about the dialog being too dense/crowded, I experimented a bit. I think the version with a bit more space looks better, but this probably depends on screen size. And then there's also Android, where the current version is probably better. this PR (92d89bc) some more space (grorp@658d77e) |
A redesign of the ContentDB dialog to show more information and make better use of space.
Part of #6733
Depends on #14507
Screenshots
To do
This PR is Ready for Review
Wrap short desc tooltips(not an issue with this PR)Add(leave for later)Resize
event to update formspec when the window changes sizeBetter featured iconfuture PRKnown Issues
Known issues that I'm not planning on fixing in this PR (unless there's a simple fix):
How to test