-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix: Reduce logo size and ensure it resizes dynamically and fits all screen sizes #8710
base: main
Are you sure you want to change the base?
Conversation
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.
@SttApollo This implementation reduces the logo size across all screen sizes, which diverges from the original design intention of making it prominent. To fix this, I suggest two changes:
- Slighlty reduce the logo size from its original values to have more room in general.
- Only use the shrinking logic when a certain maxWidth threshold is reached.
(Optional) Given the impracticality of fitting all page elements on every screen size, especially very small phones and in landscape mode, I think it would be more effective to use a scroll indicator in these cases.
Hii @wmontwe - thank you for your patience. I slightly reduced the logo size and added a custom scroll indicator ( I couldn't find it in the project files and wasn't sure if I could add additional libraries). Below are additional notes, brief screen recordings and screenshots to explain this implementation. Please let me know your thoughts and I'll adjust accordingly again, as needed.
|
…icator appears correctly in WelcomeContent.kt
be236de
to
0910586
Compare
Hi @wmontwe! I was trying to make sure the commit passes detekt, so I moved the scroll indicator function to a different file and shortened the welcome content. Do you want me to keep working on these changes or revert to the last commit state? |
@SttApollo I rebased the pull-request on the latest version of main. I tried the solution, but I see some performance issues with the scroll indicator that causes compose to redraw a lot. I checked if there is another solution available, but not really. Worst case without the indicator, but I would like to look into it a bit. |
Sounds good - I'll hold until further. Perhaps, I can look at other bugs I can be assigned to. |
Fixes #8458
Description
This PR addresses #8458 where the logo on the onboarding screen flattened the text below. The
WelcomeLogo
composable has been updated to ensure dynamic resizing usingBoxWithConstraints
ensuring that the logo scales proportionally based on screen dimensions and fits properly without overlapping or pushing other components off-screen.Changes Made
WelcomeLogo
to useBoxWithConstraints
for adaptive sizing.LazyColumnWithHeaderFooter
components are unaffected by the logo's size.Testing
Visual Example