-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/mobile row variant #14
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
base: feature/future-news
Are you sure you want to change the base?
Conversation
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.
| color: var(--panel-color); | ||
| border-radius: var(--panel-radius); | ||
| padding: var(--panel-padding); | ||
| max-width: 640px; |
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.
Where did this come from?
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.
Ben said: "Tablet text line length should max out at 640px" - Perhaps we need to check with him if that's for only that one breakpoint? I suspect that it's a readability thing that applies in general
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.
Gotcha. Let's check, because it might make it a bit tight on large desktop. Also let's convert it to rems, that's what the rest of the stylesheet is using
| if ($isMobileRowMode) { | ||
| // For row layout on small portrait screens, block out space taken up by the viz at the top | ||
| const threshold = ($vizDims.dims[1] / $screenDims[1]) * 100; | ||
| // console.log($vizDims, $screenDims, threshold); |
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.
| // console.log($vizDims, $screenDims, threshold); |
| import acto from '@abcnews/alternating-case-to-object'; | ||
| import { selectMounts, isMount, getMountValue } from '@abcnews/mount-utils'; | ||
| import type { PanelAlignment, PanelDefinition, ScrollytellerDefinition } from './types.js'; | ||
| import type { PanelDefinition, ScrollytellerDefinition } from './types.js'; |
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.
If we're not using PanelAlignment let's delete it from types.js too

No description provided.