-
Notifications
You must be signed in to change notification settings - Fork 2
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
Work modals responsive fix #217
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.
Great catch. Only issue is the data-id
.
components/BloomWrapper.tsx
Outdated
@@ -14,6 +14,18 @@ const StyledBloomIIIFWrapper = styled("div", { | |||
".swiper-slide[data-type='collection']": { | |||
display: "none", | |||
}, | |||
|
|||
"@sm": { | |||
"& > div > div": { |
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.
Good for now but man I hate this div cascade. Some near future tech debt to come in and make these targets more specific. Also could just be a Bloom thing too?
<div> | ||
<Heading as="h2">All Subjects</Heading> | ||
<> | ||
<Heading as="h2" css={{ "@sm": { textAlign: "center" } }}> |
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.
Oh way, mediaQuery in a css
prop. I had not tried that. 🧙
components/Shared/Dialog.tsx
Outdated
@@ -29,6 +29,7 @@ const SharedDialog: React.FC<SharedDialogProps> = ({ | |||
<Dialog.Portal> | |||
<DialogOverlay /> | |||
<DialogContent | |||
data-id="adam" |
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.
This can be thrown out, right? 🗑️
bb5473d
to
30439d9
Compare
What does this do?
Updates Work modals (Find / Cite / Download) to behave better on mobile/tablet.
Before
After