-
Notifications
You must be signed in to change notification settings - Fork 291
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
feat(cells): repository logic for the file dropzone #18800
base: dev
Are you sure you want to change the base?
Conversation
src/script/components/Conversation/useFilesUploadState/useFilesUploadState.ts
Outdated
Show resolved
Hide resolved
top: '50%', | ||
left: '50%', | ||
transform: 'translate(-50%, -50%)', | ||
width: '32px', | ||
height: '32px', | ||
backgroundColor: 'var(--white)', | ||
borderRadius: '50%', | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: '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.
Instead of this, You can use inset: 0, display: 'grid', (placeContent | placeSelf | placeItems): 'center', instead of transform, top, left, and flex with alignItems and justifyContent ?
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.
I'll take a look
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.
I can replace flexbox centering with grid and placeItems - but IMO there's no difference, just one property less
Same with the transform part, I can, and it's just property less, but I think it's not important
top: '50%', | ||
left: '50%', | ||
transform: 'translate(-50%, -50%)', | ||
width: '32px', | ||
height: '32px', | ||
backgroundColor: 'var(--white)', | ||
borderRadius: '50%', | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: '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.
Maybe You can create common styles for this? Because I see You have in multiple places same styles :)
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.
I was thinking about it, but as long as it's not that much code, and it's only in two places, I would stay with it for now
|
Description
What's changed:
Demo
Upload success:
successful_upload.mov
Upload failed:
upload_error_plus_retries.mov
Checklist