-
Notifications
You must be signed in to change notification settings - Fork 201
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
Enable to view conference day tab even if font size is large #741
Enable to view conference day tab even if font size is large #741
Conversation
// calculate width from sp | ||
// NOTE: 6 is a magic number here | ||
((16.sp * 6) * fontScale).toDp() | ||
} |
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.
TabRow
try to use max width as much as possible, so we need to specify fixed width.
For this, calculating the width (dp
) from sp
using density
.
text = text, | ||
fontWeight = FontWeight.W400, | ||
style = MaterialTheme.typography.titleMedium, |
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.
attached font that is used for text components.
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.
Looks great! Thank you for your contribution!
Issue
Overview (Required)
Links
Screenshot (Optional if screenshot test is present or unrelated to UI)