ux: alignment for commit changes in CommitDetail page

This commit is contained in:
leo 2024-05-29 14:25:43 +08:00
parent 179887339e
commit 012e28ec8d

View file

@ -25,20 +25,29 @@
<Rectangle Grid.Row="1" Height=".65" Margin="8" Fill="{DynamicResource Brush.Border2}" VerticalAlignment="Center"/> <Rectangle Grid.Row="1" Height=".65" Margin="8" Fill="{DynamicResource Brush.Border2}" VerticalAlignment="Center"/>
<!-- Change List --> <!-- Change List -->
<v:ChangeCollectionView Grid.Row="2" <Grid Grid.Row="2" ColumnDefinitions="96,*" Margin="0,0,8,0">
Margin="72,0,8,0" <TextBlock Grid.Column="0"
IsWorkingCopy="False" Classes="group_header_label"
ViewMode="List" Margin="0"
Changes="{Binding Changes}" HorizontalAlignment="Right"
SelectedChanges="{Binding SelectedChanges, Mode=TwoWay}" VerticalAlignment="Top"
ContextRequested="OnChangeListContextRequested" Text="{DynamicResource Text.CommitDetail.Changes}"/>
ChangeDoubleTapped="OnChangeDoubleTapped">
<v:ChangeCollectionView.Styles> <v:ChangeCollectionView Grid.Column="1"
<Style Selector="TreeDataGrid"> IsWorkingCopy="False"
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/> Margin="8,0,0,0"
</Style> ViewMode="List"
</v:ChangeCollectionView.Styles> Changes="{Binding Changes}"
</v:ChangeCollectionView> SelectedChanges="{Binding SelectedChanges, Mode=TwoWay}"
ContextRequested="OnChangeListContextRequested"
ChangeDoubleTapped="OnChangeDoubleTapped">
<v:ChangeCollectionView.Styles>
<Style Selector="TreeDataGrid">
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
</Style>
</v:ChangeCollectionView.Styles>
</v:ChangeCollectionView>
</Grid>
</Grid> </Grid>
</TabItem> </TabItem>