Let read-only detail values wrap instead of ellipsising

In a 250-390 px panel the label column leaves little room, so operator, depot and
author names lost their ends to the ellipsis.
This commit is contained in:
maj00r
2026-09-04 22:48:43 +02:00
parent b9f455e33d
commit 027dff17d9

View File

@@ -232,6 +232,14 @@
<Setter Property="MinWidth" Value="26" /> <Setter Property="MinWidth" Value="26" />
<Setter Property="Margin" Value="6,0,0,0" /> <Setter Property="Margin" Value="6,0,0,0" />
</Style> </Style>
<!-- A read-only row has no widget, so its value owns the rest of the line and
can wrap onto a second one. Ellipsis is right for a reading that shares the
row with a control, but here it hides the end of names that are the whole
point of the panel - an operator, a depot, a texture author. -->
<Style Selector="ctl|SettingRow.Compact:no-content /template/ TextBlock#PART_Value">
<Setter Property="TextWrapping" Value="Wrap" />
<Setter Property="TextTrimming" Value="None" />
</Style>
<Style Selector="ctl|SettingRow.Compact /template/ TextBlock#PART_Description"> <Style Selector="ctl|SettingRow.Compact /template/ TextBlock#PART_Description">
<Setter Property="Margin" Value="0,2,0,0" /> <Setter Property="Margin" Value="0,2,0,0" />
</Style> </Style>