Skip to content
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 sidebar overflow #1248

Merged
merged 1 commit into from
Mar 31, 2024
Merged

Conversation

micahmo
Copy link
Member

@micahmo micahmo commented Mar 29, 2024

Pull Request Description

This is a small PR which addresses some sidebar overflow I noticed.

Issue Being Fixed

Issue Number: N/A

Screenshots / Recordings

Before After
image image

Checklist

  • Did you update CHANGELOG.md?
  • Did you use localized strings where applicable?
  • Did you add semanticLabels where applicable for accessibility?

Copy link
Member

@hjiangsu hjiangsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just one small question.

fontWeight: FontWeight.bold,
fontSize: 16,
SizedBox(
width: MediaQuery.of(context).size.width * 0.55,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, but where does the 0.55 come from?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tweaked the percentage until it looked good. I figured since it was a percentage rather than a fixed value it should scale to other devices. What do you think?

I tried FractionallySizedBox first, since that's what the whole sidebar uses, but it didn't work.

@hjiangsu hjiangsu merged commit 8fee507 into thunder-app:develop Mar 31, 2024
1 check passed
@micahmo micahmo deleted the fix/sidebar-overflow branch March 31, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants