-
Notifications
You must be signed in to change notification settings - Fork 50
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
Improve photo album pages #5128
Conversation
This preserves scroll location in the gallery detail page when opening and closing images
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This required adding a ref to the modal and making the dropdown use this ref as the container. It previously used document.body as the container, meaning any clicks in the dropdown were counted as outside the modal and closed the modal.
eaba04b
to
6a45535
Compare
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.
Awesome! If it works it works 👍
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 looks much better! 😍 I like
@@ -1,14 +1,27 @@ | |||
@import url('~app/styles/variables.css'); | |||
|
|||
.loadingIndicator { | |||
margin: 0.375rem; |
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.
no
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.
It should match the padding of clickable Icon
s: https://github.com/webkom/lego-webapp/blame/8d156d0615da926ca9b2d0cc12037576fa4bc223/packages/lego-bricks/src/components/Icon/Icon.module.css#L24
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.
It avoids a slight movement in the layout, which doesn't look great.
@@ -22,6 +35,9 @@ | |||
} | |||
|
|||
.dropdown { | |||
position: absolute; | |||
top: 0; | |||
right: 3rem; |
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.
no
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.
It look so much nicer! |
Description
The image gallery was a bit clunky and had some bugs.
The following issues are fixed in this PR:
ProgressiveImage
componentShould be tested to really feel the improvements.
Result
The above issues are fixed. Minor visual changes.
It now has a lot less duplicated code, though.
Testing
Please describe what and how the changes have been tested, and provide instructions to reproduce if necessary.
Resolves ABA-1159