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: cutted text with content only long text #1009

Closed

Conversation

Arieldelossantos
Copy link
Contributor

GitHub Issue (If applicable): #

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

with content only tabBar item, if the text is too long, it is cutted off.

What is the new behavior?

support larger text with may tabs created.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

https://github.com/unoplatform/uno.chefs/issues/937

@Arieldelossantos Arieldelossantos self-assigned this Jan 19, 2024
@@ -989,7 +991,7 @@
<VisualState x:Name="ContentOnly">
<VisualState.Setters>
<Setter Target="IconBox.Visibility" Value="Collapsed" />
<Setter Target="ContentPresenter.Margin" Value="12,0" />
<Setter Target="ContentPresenter.Margin" Value="{ThemeResource TopTabBarItemContentOnlyMargin}" />
Copy link
Contributor

Choose a reason for hiding this comment

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

I like that we are moving this to a resource but it won't cover all cases. If you have a large enough string, it'll still clip. So we should probably add a TextTrimming="CharacterEllipsis" or something to the contentpresenter, if that's available

@Arieldelossantos Arieldelossantos deleted the dev/arde/fix-tabbar-content-cutted-text branch January 29, 2024 14:53
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.

3 participants