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(Card): large title truncating word in the middle #936

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Page x:Class="Uno.Gallery.Views.SamplePages.CardSamplePage"
<Page x:Class="Uno.Gallery.Views.SamplePages.CardSamplePage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Uno.Gallery"
Expand Down Expand Up @@ -298,15 +298,14 @@
AvatarContent="ms-appx:///Assets/Avatar.png"
SupportingContent="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor."
MediaContent="ms-appx:///Assets/LargeMedia.png"
Style="{StaticResource AvatarElevatedCardStyle}"
Style="{StaticResource AvatarOutlinedCardStyle}"
AutomationProperties.AutomationId="Disabled_Outlined_Card"
IsEnabled="False">

<utu:Card.HeaderContentTemplate>
<DataTemplate>
<TextBlock Text="{Binding}"
MaxLines="1"
Margin="16,14,16,0"
Margin="12,14,0,0"
Style="{ThemeResource TitleLarge}" />
</DataTemplate>
</utu:Card.HeaderContentTemplate>
Expand All @@ -315,7 +314,7 @@
<DataTemplate>
<TextBlock Text="{Binding}"
MaxLines="2"
Margin="16,0,16,14"
Margin="12,0,16,14"
Style="{ThemeResource BodySmall}" />
</DataTemplate>
</utu:Card.SubHeaderContentTemplate>
Expand Down Expand Up @@ -347,8 +346,8 @@
<utu:Card.IconsContentTemplate>
<DataTemplate>
<Button Content="{Binding}"
Margin="6"
Padding="8,12"
Margin="0,6,4,6"
Padding="6,12"
HorizontalContentAlignment="Center"
Style="{StaticResource TextButtonStyle}">
<Button.ContentTemplate>
Expand Down