Skip to content

Commit f1eb10c

Browse files
authored
Fixed an issue where the text would sometimes get cut off on the drive widget (#2397)
1 parent ae12dea commit f1eb10c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Files/UserControls/Widgets/DrivesWidget.xaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
ItemsSource="{x:Bind local:DrivesWidget.ItemsAdded}">
3030
<muxc:ItemsRepeater.Layout>
3131
<muxc:UniformGridLayout
32-
ItemsStretch="Fill"
32+
ItemsStretch="None"
3333
MaximumRowsOrColumns="4"
3434
MinColumnSpacing="8"
3535
MinItemHeight="90"
36-
MinItemWidth="160"
3736
MinRowSpacing="8"
3837
Orientation="Horizontal" />
3938
</muxc:ItemsRepeater.Layout>
4039
<muxc:ItemsRepeater.ItemTemplate>
4140
<DataTemplate x:DataType="local2:DriveItem">
4241
<Grid
42+
Width="270"
4343
extensions:VisualExtensions.CenterPoint="80,45,0"
4444
PointerEntered="GridScaleUp"
4545
PointerExited="GridScaleNormal">
@@ -138,7 +138,10 @@
138138
Text="{x:Bind Text, Mode=OneWay}"
139139
TextWrapping="NoWrap" />
140140
<muxc:ProgressBar Maximum="{x:Bind MaxSpace.GigaBytes, Mode=OneWay}" Value="{x:Bind SpaceUsed.GigaBytes, Mode=OneWay}" />
141-
<TextBlock Text="{x:Bind SpaceText, Mode=OneWay}" ToolTipService.ToolTip="{x:Bind SpaceText, Mode=OneWay}" />
141+
<TextBlock
142+
Text="{x:Bind SpaceText, Mode=OneWay}"
143+
TextWrapping="Wrap"
144+
ToolTipService.ToolTip="{x:Bind SpaceText, Mode=OneWay}" />
142145
</StackPanel>
143146
</Grid>
144147
</Button>

0 commit comments

Comments
 (0)