-
Notifications
You must be signed in to change notification settings - Fork 176
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
MediaViewer: iterate on design #3979
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3979 +/- ##
===========================================
+ Coverage 83.10% 83.12% +0.02%
===========================================
Files 1806 1806
Lines 45703 45841 +138
Branches 5381 5390 +9
===========================================
+ Hits 37983 38107 +124
- Misses 5832 5841 +9
- Partials 1888 1893 +5 ☔ 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.
Note: there is an overlap here, but this is a preview issue. In prod bottomPaddingInPixels
will be updated and the rendering will be OK.
b56b61d
to
89aee04
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.
Some remarks/questions
@@ -337,7 +337,9 @@ class MessagesFlowNode @AssistedInject constructor( | |||
caption = event.content.caption, | |||
mimeType = event.content.mimeType, | |||
formattedFileSize = event.content.formattedFileSize, | |||
fileExtension = event.content.fileExtension | |||
fileExtension = event.content.fileExtension, |
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 we should start extracting those methods?
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.
canShare = state.canShare, | ||
mimeType = state.mediaInfo.mimeType, | ||
caption = state.mediaInfo.caption, | ||
onHeightChanged = { bottomPaddingInPixels = it }, |
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.
why do we need this padding computation? If I understand the design, the TopBar and BottomBar are just placed above the image?
Edit : Ok I get it, it's for the VideoPlayerController?
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.
Yes
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 look weird to have the title centered and so big, have you raised the point it's not really "androidish"?
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 raised the point, design team (@americanrefugee ) is not against it. My idea is to implement what has been designed first.
|
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.
Thanks!
Content
Media Viewer: design iteration.
Show the caption and change the design according to https://www.figma.com/design/Ni6Ii8YKtmXCKYNE90cC67/Timeline-(new)?node-id=1732-79703
Motivation and context
Screenshots / GIFs
Tests
Tested devices
Checklist