-
Notifications
You must be signed in to change notification settings - Fork 1.2k
The dropzone's small size has been adjusted to match the small size of the thumbnail. #11595
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
Changes from all commits
fe50372
b4f32b3
9e6f5ff
1cb118f
b15cfe7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/polaris': patch | ||
--- | ||
|
||
Updated DropZone minimum size from 50px to 40px to fit within a small Thumbnail |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; | |
|
||
function DropZoneExample() { | ||
return ( | ||
<div style={{width: 50, height: 50}}> | ||
<div style={{width: 40, height: 40}}> | ||
<DropZone> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated example on Polaris website as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You may need to run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you! That helped! |
||
<DropZone.FileUpload /> | ||
</DropZone> | ||
|
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.
When testing admin spin, I noticed there is a content jump which is an issue. Is that something that we have to control at the consumer level or polaris dropzone? Can this be fixed at consumer or polaris for tophatting before we merge this to ensure we fix it at the source of the problem?
My.Movie.mp4
Uh oh!
There was an error while loading. Please reload this page.
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.
Thank you @tatianau for catching this! I fixed it on consumer side by adding width and height to parent block.
How it works now:
Screen.Recording.2024-02-13.at.1.00.06.PM.mov
I still can see that images/thumbnails kinda take some time to be rendered, looking further if it's something with my implementation.
Uh oh!
There was an error while loading. Please reload this page.
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.
@tatianau you were right, that delay with image rendering is caused by drop zone, here is sandbox link
Video:
Screen.Recording.2024-02-13.at.2.56.50.PM.mov
I'l surface it to Veronica and Polaris team