mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
ux: disable WordWrap in side-by-side diff because it may lead to alignment issue between two sides
This commit is contained in:
parent
ace6eccfd3
commit
15e7df6085
1 changed files with 7 additions and 1 deletions
|
@ -66,8 +66,14 @@
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
Padding="9,6"
|
Padding="9,6"
|
||||||
IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=EnableDiffViewWordWrap, Mode=TwoWay}"
|
IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=EnableDiffViewWordWrap, Mode=TwoWay}"
|
||||||
IsVisible="{Binding IsTextDiff}"
|
|
||||||
ToolTip.Tip="{DynamicResource Text.Diff.ToggleWordWrap}">
|
ToolTip.Tip="{DynamicResource Text.Diff.ToggleWordWrap}">
|
||||||
|
<ToggleButton.IsVisible>
|
||||||
|
<MultiBinding Converter="{x:Static BoolConverters.And}">
|
||||||
|
<Binding Path="IsTextDiff"/>
|
||||||
|
<Binding Source="{x:Static vm:Preference.Instance}" Path="UseSideBySideDiff" Mode="OneWay" Converter="{x:Static BoolConverters.Not}"/>
|
||||||
|
</MultiBinding>
|
||||||
|
</ToggleButton.IsVisible>
|
||||||
|
|
||||||
<Path Width="12" Height="12" Data="{StaticResource Icons.WordWrap}" Margin="0,2,0,0"/>
|
<Path Width="12" Height="12" Data="{StaticResource Icons.WordWrap}" Margin="0,2,0,0"/>
|
||||||
</ToggleButton>
|
</ToggleButton>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue