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

apply dialog fixes to bookmark dialogs #768

Merged
merged 1 commit into from
Aug 25, 2024
Merged

Conversation

LeXofLeviafan
Copy link
Collaborator

…After a few more checks I realized the dialogs on the Bookmarks page had the same issues as on those the Stats page (+they add an unnecessary scrollbar on the main window just because). So I renamed the CSS file (which only contained dialog styles anyway) and did a few more adjustments to make sure the fixes work on all pages.


/* limit dialog height with a scrollbox */
.modal-content {
max-height: calc(100vh - 60px);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous implementation assumed same-sized dialog header, but Bookmarks dialogs are larger; so I moved dynamic size to the dialog frame instead (…which required a few extra hacks to make the scrollbox work correctly).

.modal-body thead {
position: sticky;
/* setting `top:` with JS, to account for theme differences */
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

position: sticky has no effect unless a position size is defined… and <thead> only exists in Stats dialogs

/* overriding icon-button text color with theme color */
.modal-header .close {
color: inherit;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a better match for existing Bootstrap styles

@jarun jarun merged commit dd370f7 into jarun:master Aug 25, 2024
1 check passed
@jarun
Copy link
Owner

jarun commented Aug 25, 2024

Thank you!

@jarun
Copy link
Owner

jarun commented Aug 25, 2024

Can you please have a look if some of the open issues can be closed... if your time permits?

@LeXofLeviafan LeXofLeviafan deleted the fix-modals branch August 25, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants