mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-11-26 07:26:18 +01:00
fix: adjust app table column width to ensure names are not cut-off
This commit is contained in:
@@ -147,7 +147,6 @@
|
|||||||
|
|
||||||
<!-- TextBlock style for App Name column in apps table -->
|
<!-- TextBlock style for App Name column in apps table -->
|
||||||
<Style x:Key="AppNameTextStyle" TargetType="TextBlock">
|
<Style x:Key="AppNameTextStyle" TargetType="TextBlock">
|
||||||
<Setter Property="TextTrimming" Value="CharacterEllipsis"/>
|
|
||||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
@@ -160,7 +159,7 @@
|
|||||||
|
|
||||||
<!-- Column widths for the app table rows and header (indicator | name | description | id) -->
|
<!-- Column widths for the app table rows and header (indicator | name | description | id) -->
|
||||||
<GridLength x:Key="AppTableDotColWidth">16</GridLength>
|
<GridLength x:Key="AppTableDotColWidth">16</GridLength>
|
||||||
<GridLength x:Key="AppTableNameColWidth">180</GridLength>
|
<GridLength x:Key="AppTableNameColWidth">Auto</GridLength>
|
||||||
<GridLength x:Key="AppTableDescColWidth">1*</GridLength>
|
<GridLength x:Key="AppTableDescColWidth">1*</GridLength>
|
||||||
<GridLength x:Key="AppTableIdColWidth">261</GridLength>
|
<GridLength x:Key="AppTableIdColWidth">261</GridLength>
|
||||||
|
|
||||||
@@ -650,7 +649,7 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<!-- Apps List -->
|
<!-- Apps List -->
|
||||||
<Grid Grid.Row="0" Margin="20,0,20,10">
|
<Grid Grid.Row="0" Margin="20,0,20,10" Grid.IsSharedSizeScope="True">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="*"/>
|
<RowDefinition Height="*"/>
|
||||||
@@ -660,7 +659,7 @@
|
|||||||
<Grid Margin="42,6,23,8">
|
<Grid Margin="42,6,23,8">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="{StaticResource AppTableDotColWidth}"/>
|
<ColumnDefinition Width="{StaticResource AppTableDotColWidth}"/>
|
||||||
<ColumnDefinition Width="{StaticResource AppTableNameColWidth}"/>
|
<ColumnDefinition Width="{StaticResource AppTableNameColWidth}" SharedSizeGroup="AppTableName"/>
|
||||||
<ColumnDefinition Width="{StaticResource AppTableDescColWidth}"/>
|
<ColumnDefinition Width="{StaticResource AppTableDescColWidth}"/>
|
||||||
<ColumnDefinition Width="{StaticResource AppTableIdColWidth}"/>
|
<ColumnDefinition Width="{StaticResource AppTableIdColWidth}"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|||||||
@@ -436,6 +436,7 @@ function Add-AppsToMainWindow {
|
|||||||
$row.Style = $Window.Resources['AppTableRowStyle']
|
$row.Style = $Window.Resources['AppTableRowStyle']
|
||||||
$c0 = New-Object System.Windows.Controls.ColumnDefinition; $c0.Width = $Window.Resources['AppTableDotColWidth']
|
$c0 = New-Object System.Windows.Controls.ColumnDefinition; $c0.Width = $Window.Resources['AppTableDotColWidth']
|
||||||
$c1 = New-Object System.Windows.Controls.ColumnDefinition; $c1.Width = $Window.Resources['AppTableNameColWidth']
|
$c1 = New-Object System.Windows.Controls.ColumnDefinition; $c1.Width = $Window.Resources['AppTableNameColWidth']
|
||||||
|
$c1.SharedSizeGroup = 'AppTableName'
|
||||||
$c2 = New-Object System.Windows.Controls.ColumnDefinition; $c2.Width = $Window.Resources['AppTableDescColWidth']
|
$c2 = New-Object System.Windows.Controls.ColumnDefinition; $c2.Width = $Window.Resources['AppTableDescColWidth']
|
||||||
$c3 = New-Object System.Windows.Controls.ColumnDefinition; $c3.Width = $Window.Resources['AppTableIdColWidth']
|
$c3 = New-Object System.Windows.Controls.ColumnDefinition; $c3.Width = $Window.Resources['AppTableIdColWidth']
|
||||||
$row.ColumnDefinitions.Add($c0); $row.ColumnDefinitions.Add($c1)
|
$row.ColumnDefinitions.Add($c0); $row.ColumnDefinitions.Add($c1)
|
||||||
|
|||||||
Reference in New Issue
Block a user