This repository has been archived by the owner on Dec 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
ildyria
force-pushed
the
refactor_box_model
branch
from
November 21, 2022 22:06
c96ece2
to
c7204af
Compare
ildyria
reviewed
Nov 21, 2022
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.
Quickly tested. LGTM.
ildyria
approved these changes
Nov 21, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Disclaimer
This is a follow-up of #323 and #334. This PR is strictly ahead of those both PRs and hence shows all commits and diffs which are already contained in #323 and #334. Hence, the diff of this PR will "shrink" after those both PRs have been merged.
Summary
This PR revamps the box model of the Lychee frontend such that the box model follows the visual layout of the frontend more closely. In doing so it also fixes two long-lasting issues:
Screenshots to illustrate the issues
New scrollbars
As you can see, the scrollable content part of the view and the sidebar have independent vertical scrollbars on their respective right edge.
Correct height of footer
If the footer is large (i.e. every possible option is enabled), the last photo is fully visible and the footer is below it
Previous erroneous behavior on current master
Under the hood
The illustration is only meant as a helper to understand what has changed.
<body>
was the element which (erroneously) contained the vertical scrollbar for the scrollable content area. (That was also the reason, why the scrollbar appeared at the very right side.) Now the respective<div>
is scrollable; in particular the<body>
is always fully visible. This also allowed to remove the JS packagescrolllock
. Previously, this module was used to keep certain elements in sight even when the body was scrolled.