-
Notifications
You must be signed in to change notification settings - Fork 44
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(CLNP-1132): zoomable image viewer #156
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #156 +/- ##
==========================================
- Coverage 13.08% 13.04% -0.05%
==========================================
Files 331 334 +3
Lines 7388 7414 +26
Branches 2037 2045 +8
==========================================
Hits 967 967
- Misses 6351 6376 +25
- Partials 70 71 +1 ☔ View full report in Codecov by Sentry. |
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.
Left a small question. LGTM 👍
{mediaViewer} | ||
{loading && <LoadingSpinner style={{ position: 'absolute' }} size={40} color={palette.primary300} />} |
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.
{mediaViewer} | |
{loading && <LoadingSpinner style={{ position: 'absolute' }} size={40} color={palette.primary300} />} | |
{loading ? <LoadingSpinner style={{ position: 'absolute' }} size={40} color={palette.primary300} /> : mediaViewer} |
Should we display only one component depends on the loading status? Or it's just okay to keep both like the above?
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.
The loading state is controlled by the onLoadEnd
event of the mediaViewer(ImageView or VideoView).
Therefore, the LoadingSpinner should take the form of covering the screen.
External Contributions
This project is not yet set up to accept pull requests from external contributors.
If you have a pull request that you believe should be accepted, please contact
the Developer Relations team [email protected] with details
and we'll evaluate if we can setup a CLA to allow for the contribution.
For Internal Contributors
CLNP-1132
Description Of Changes
Types Of Changes
What types of changes does your code introduce to this project?
Put an
x
in the boxes that apply_