Repository navigation
Directory State page: scroll the incidents table inside its box on narrow screens - #89
Merged
Merged
Conversation
…rrow screens The table from the directory's own markup needs about 1,080 px, so on phones and small laptops the whole State page scrolled sideways (677 px at a 390 px phone width). Below 1,100 px its wrapper now scrolls instead. Wider screens are unchanged.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
On directory.disclose.io/state the incidents table needs about 1,080 px, so below that the whole page scrolled sideways (677 px at a 390 px phone width, 59 px at 1,024). This adds one rule in
assets/css/main.css: below 1,100 px,main .threats-table-wrapscrolls horizontally instead. The class appears only on that page.Measured with this stylesheet on the real page: sideways overflow 0 at 390, 767, 1,024 and 1,080 px (was 677, 308, 59 and 3); 1,100 and 1,440 unchanged at 0. Every element compared on the index, page 2, an organisation page and State: no differences. The rest of the built stylesheet is byte-identical.
Not covered: at 320 px a row of ecosystem cards elsewhere on the page still sticks out by 10 px; that is a separate element.