-
Notifications
You must be signed in to change notification settings - Fork 9
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(Gallery): add Gallery component #247
base: main
Are you sure you want to change the base?
Conversation
Preview is ready. |
@@ -0,0 +1,18 @@ | |||
import React from 'react'; | |||
|
|||
import {FilePreview} from '../../FilePreview'; |
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's better to use FIlePreview component from gravity-ui/uikit. Current component will be removed in next major
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.
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.
need version 6.35.0 of uikit(
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.
className={cnVideoFileView(null, className)} | ||
src={src} | ||
controls | ||
autoPlay |
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.
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.
| Auto-play can also be quite annoying in such a case.
This is already user tested scenario. But I can make the autoplay optional.
} as File, | ||
}, | ||
{ | ||
type: 'document', |
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.
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 is just an example, mock pdf file, I can't find a correct link. The service should implement the document functionality itself.
@kseniya57 Do we have rfc fo this components? |
Yes |
401a5d6
to
8c07955
Compare
855b632
to
772a07f
Compare
Add the components for rendering galleries (base gallery and the files gallery with file previews and some pre-defined active file renderers)