Fix announcement marker rounding for short cards

This commit is contained in:
Meik
2026-03-05 12:34:54 +01:00
parent 095c31feec
commit 57094a3036

View File

@@ -24,27 +24,33 @@
ClipToBounds="True" ClipToBounds="True"
MouseEnter="OnAnnMouseEnter" MouseEnter="OnAnnMouseEnter"
MouseLeave="OnAnnMouseLeave"> MouseLeave="OnAnnMouseLeave">
<Grid Background="Transparent" <Grid Background="Transparent">
Height="auto">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="6"/> <ColumnDefinition Width="6" />
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*" />
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Grid.RowDefinitions> <Border Grid.Column="0"
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<Border Grid.RowSpan="3"
Grid.Column="0"
x:Name="annColor" x:Name="annColor"
Background="{Binding Path=PrioColor}" Background="{Binding Path=PrioColor}"
CornerRadius="12,0,0,12" CornerRadius="12,0,0,12"
Margin="0" /> Margin="0"
<DockPanel Grid.Column="1" > VerticalAlignment="Stretch" />
<Grid Grid.Column="1"
Background="Transparent">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<DockPanel Grid.Row="0"
Grid.Column="0">
<Image Source="pack://application:,,,/Resources/StateOverlays/OverlayNewContentButton.png" <Image Source="pack://application:,,,/Resources/StateOverlays/OverlayNewContentButton.png"
Panel.ZIndex="18" Panel.ZIndex="18"
Stretch="None" Stretch="None"
@@ -63,10 +69,23 @@
ScaleY="0.8" /> ScaleY="0.8" />
</Image.RenderTransform> </Image.RenderTransform>
</Image> </Image>
<TextBlock x:Name="txtDate" Grid.Row="0" Margin="10,0,5,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontStyle="Italic" Foreground="{DynamicResource subtleTextColor}" Text="{Binding Path=CreatedDate,StringFormat={}{0:dd.MM.yyyy},FallbackValue='01.01.2021'}"></TextBlock> <TextBlock x:Name="txtDate"
Margin="10,0,5,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
FontStyle="Italic"
Foreground="{DynamicResource subtleTextColor}"
Text="{Binding Path=CreatedDate,StringFormat={}{0:dd.MM.yyyy},FallbackValue='01.01.2021'}" />
</DockPanel> </DockPanel>
<Image x:Name="imgOpen" Grid.Row="0" Grid.Column="2" Source="{DynamicResource appbar_new_window}" Width="20" Margin="0,2,8,0" ToolTip="{x:Static resx:Resources.CallAnnonceDetails}" Cursor="Hand"/> <Image x:Name="imgOpen"
Grid.Row="0"
Grid.Column="1"
Source="{DynamicResource appbar_new_window}"
Width="20"
Margin="0,2,8,0"
ToolTip="{x:Static resx:Resources.CallAnnonceDetails}"
Cursor="Hand" />
<TextBlock x:Name="txtSubject" <TextBlock x:Name="txtSubject"
Grid.Row="1" Grid.Row="1"
Grid.ColumnSpan="2" Grid.ColumnSpan="2"
@@ -76,7 +95,7 @@
VerticalAlignment="Center" VerticalAlignment="Center"
FontWeight="Bold" FontWeight="Bold"
Foreground="{DynamicResource sectionTitleColor}" Foreground="{DynamicResource sectionTitleColor}"
ClipToBounds="True"/> ClipToBounds="True" />
<TextBlock x:Name="txtContent" <TextBlock x:Name="txtContent"
Grid.Row="2" Grid.Row="2"
Grid.ColumnSpan="2" Grid.ColumnSpan="2"
@@ -105,5 +124,6 @@
LineHeight="18" LineHeight="18"
Height="40" /> Height="40" />
</Grid> </Grid>
</Grid>
</Border> </Border>
</UserControl> </UserControl>