|
53 | 53 | <!-- Base Information -->
|
54 | 54 | <Grid RowDefinitions="24,Auto,Auto,Auto,Auto" ColumnDefinitions="96,*">
|
55 | 55 | <!-- SHA -->
|
56 | | - <TextBlock Grid.Row="0" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.SHA}" /> |
57 | | - <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal"> |
| 56 | + <TextBlock Grid.Row="0" Grid.Column="0" Classes="info_label" VerticalAlignment="Top"Margin="0,4,0,0"Text="{DynamicResource Text.CommitDetail.Info.SHA}" /> |
| 57 | + <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal"Height="24"> |
58 | 58 | <TextBlock Classes="primary"
|
59 | 59 | Text="{Binding SHA}"
|
60 | 60 | Margin="12,0,4,0"
|
|
101 | 101 | </StackPanel>
|
102 | 102 |
|
103 | 103 | <!-- PARENTS -->
|
104 | | - <TextBlock Grid.Row="1" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Parents}" IsVisible="{Binding Parents.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"/> |
105 | | - <ScrollViewer Grid.Row="1" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Hidden" AllowAutoHide="True"> |
106 | | - <ItemsControl Height="24" Margin="12,0,0,0" ItemsSource="{Binding Parents}" IsVisible="{Binding Parents.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> |
107 | | - <ItemsControl.ItemsPanel> |
108 | | - <ItemsPanelTemplate> |
109 | | - <StackPanel Orientation="Horizontal" VerticalAlignment="Center"/> |
110 | | - </ItemsPanelTemplate> |
111 | | - </ItemsControl.ItemsPanel> |
112 | | - |
113 | | - <ItemsControl.ItemTemplate> |
114 | | - <DataTemplate> |
115 | | - <TextBlock Classes="primary" |
116 | | - Text="{Binding Converter={x:Static c:StringConverters.ToShortSHA}}" |
117 | | - Foreground="DarkOrange" |
118 | | - TextDecorations="Underline" |
119 | | - Cursor="Hand" |
120 | | - Margin="0,0,16,0" |
121 | | - PointerEntered="OnSHAPointerEntered" |
122 | | - PointerPressed="OnSHAPressed"> |
123 | | - <TextBlock.Styles> |
124 | | - <Style Selector="ToolTip"> |
125 | | - <Setter Property="MaxWidth" Value="600"/> |
126 | | - </Style> |
127 | | - </TextBlock.Styles> |
128 | | - |
129 | | - <TextBlock.DataTemplates> |
130 | | - <DataTemplate DataType="m:Commit"> |
131 | | - <StackPanel MinWidth="400" Orientation="Vertical"> |
132 | | - <Grid ColumnDefinitions="Auto,*,Auto"> |
133 | | - <v:Avatar Grid.Column="0" Width="16" Height="16" VerticalAlignment="Center" IsHitTestVisible="False" User="{Binding Author}"/> |
134 | | - <TextBlock Grid.Column="1" Classes="primary" Text="{Binding Author.Name}" Margin="8,0,0,0"/> |
135 | | - <TextBlock Grid.Column="2" Classes="primary" Text="{Binding CommitterTimeStr}" Foreground="{DynamicResource Brush.FG2}" Margin="8,0,0,0"/> |
136 | | - </Grid> |
137 | | - |
138 | | - <TextBlock Classes="primary" Margin="0,8,0,0" Text="{Binding Subject}" TextWrapping="Wrap"/> |
139 | | - </StackPanel> |
140 | | - </DataTemplate> |
141 | | - </TextBlock.DataTemplates> |
142 | | - </TextBlock> |
143 | | - </DataTemplate> |
144 | | - </ItemsControl.ItemTemplate> |
145 | | - </ItemsControl> |
146 | | - </ScrollViewer> |
| 104 | + <TextBlock Grid.Row="1" Grid.Column="0" Classes="info_label" VerticalAlignment="Top" Margin="0,4,0,0" Text="{DynamicResource Text.CommitDetail.Info.Parents}" IsVisible="{Binding Parents.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"/> |
| 105 | + <ItemsControl Grid.Row="1" Grid.Column="1" Height="24" Margin="12,0,0,0" ItemsSource="{Binding Parents}" IsVisible="{Binding Parents.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> |
| 106 | + <ItemsControl.ItemsPanel> |
| 107 | + <ItemsPanelTemplate> |
| 108 | + <StackPanel Orientation="Horizontal" VerticalAlignment="Center"/> |
| 109 | + </ItemsPanelTemplate> |
| 110 | + </ItemsControl.ItemsPanel> |
| 111 | + |
| 112 | + <ItemsControl.ItemTemplate> |
| 113 | + <DataTemplate> |
| 114 | + <TextBlock Classes="primary" |
| 115 | + Text="{Binding Converter={x:Static c:StringConverters.ToShortSHA}}" |
| 116 | + Foreground="DarkOrange" |
| 117 | + TextDecorations="Underline" |
| 118 | + Cursor="Hand" |
| 119 | + Margin="0,0,16,0" |
| 120 | + PointerEntered="OnSHAPointerEntered" |
| 121 | + PointerPressed="OnSHAPressed"> |
| 122 | + <TextBlock.Styles> |
| 123 | + <Style Selector="ToolTip"> |
| 124 | + <Setter Property="MaxWidth" Value="600"/> |
| 125 | + </Style> |
| 126 | + </TextBlock.Styles> |
| 127 | + |
| 128 | + <TextBlock.DataTemplates> |
| 129 | + <DataTemplate DataType="m:Commit"> |
| 130 | + <StackPanel MinWidth="400" Orientation="Vertical"> |
| 131 | + <Grid ColumnDefinitions="Auto,*,Auto"> |
| 132 | + <v:Avatar Grid.Column="0" Width="16" Height="16" VerticalAlignment="Center" IsHitTestVisible="False" User="{Binding Author}"/> |
| 133 | + <TextBlock Grid.Column="1" Classes="primary" Text="{Binding Author.Name}" Margin="8,0,0,0"/> |
| 134 | + <TextBlock Grid.Column="2" Classes="primary" Text="{Binding CommitterTimeStr}" Foreground="{DynamicResource Brush.FG2}" Margin="8,0,0,0"/> |
| 135 | + </Grid> |
| 136 | + |
| 137 | + <TextBlock Classes="primary" Margin="0,8,0,0" Text="{Binding Subject}" TextWrapping="Wrap"/> |
| 138 | + </StackPanel> |
| 139 | + </DataTemplate> |
| 140 | + </TextBlock.DataTemplates> |
| 141 | + </TextBlock> |
| 142 | + </DataTemplate> |
| 143 | + </ItemsControl.ItemTemplate> |
| 144 | + </ItemsControl> |
147 | 145 |
|
148 | 146 | <!-- CHILDREN -->
|
149 | | - <TextBlock Grid.Row="2" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Children}" IsVisible="{Binding #ThisControl.Children.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"/> |
150 | | - <ScrollViewer Grid.Row="2" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Hidden" AllowAutoHide="True"> |
151 | | - <ItemsControl Height="24" Margin="12,0,0,0" ItemsSource="{Binding #ThisControl.Children}" IsVisible="{Binding #ThisControl.Children.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> |
152 | | - <ItemsControl.ItemsPanel> |
153 | | - <ItemsPanelTemplate> |
154 | | - <StackPanel Orientation="Horizontal" VerticalAlignment="Center"/> |
155 | | - </ItemsPanelTemplate> |
156 | | - </ItemsControl.ItemsPanel> |
157 | | - |
158 | | - <ItemsControl.ItemTemplate> |
159 | | - <DataTemplate> |
160 | | - <TextBlock Classes="primary" |
161 | | - Text="{Binding Converter={x:Static c:StringConverters.ToShortSHA}}" |
162 | | - Foreground="DarkOrange" |
163 | | - TextDecorations="Underline" |
164 | | - Cursor="Hand" |
165 | | - Margin="0,0,16,0" |
166 | | - PointerEntered="OnSHAPointerEntered" |
167 | | - PointerPressed="OnSHAPressed"> |
168 | | - <TextBlock.Styles> |
169 | | - <Style Selector="ToolTip"> |
170 | | - <Setter Property="MaxWidth" Value="600"/> |
171 | | - </Style> |
172 | | - </TextBlock.Styles> |
173 | | - |
174 | | - <TextBlock.DataTemplates> |
175 | | - <DataTemplate DataType="m:Commit"> |
176 | | - <StackPanel MinWidth="400" Orientation="Vertical"> |
177 | | - <Grid ColumnDefinitions="Auto,*,Auto"> |
178 | | - <v:Avatar Grid.Column="0" Width="16" Height="16" VerticalAlignment="Center" IsHitTestVisible="False" User="{Binding Author}"/> |
179 | | - <TextBlock Grid.Column="1" Classes="primary" Text="{Binding Author.Name}" Margin="8,0,0,0"/> |
180 | | - <TextBlock Grid.Column="2" Classes="primary" Text="{Binding CommitterTimeStr}" Foreground="{DynamicResource Brush.FG2}" Margin="8,0,0,0"/> |
181 | | - </Grid> |
182 | | - |
183 | | - <TextBlock Classes="primary" Margin="0,8,0,0" Text="{Binding Subject}" TextWrapping="Wrap"/> |
184 | | - </StackPanel> |
185 | | - </DataTemplate> |
186 | | - </TextBlock.DataTemplates> |
187 | | - </TextBlock> |
188 | | - </DataTemplate> |
189 | | - </ItemsControl.ItemTemplate> |
190 | | - </ItemsControl> |
191 | | - </ScrollViewer> |
| 147 | + <TextBlock Grid.Row="2" Grid.Column="0" Classes="info_label" VerticalAlignment="Top" Margin="0,4,0,0" Text="{DynamicResource Text.CommitDetail.Info.Children}" IsVisible="{Binding #ThisControl.Children.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"/> |
| 148 | + <ItemsControl Grid.Row="2" Grid.Column="1" Margin="12,0,0,0" ItemsSource="{Binding #ThisControl.Children}" IsVisible="{Binding #ThisControl.Children.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> |
| 149 | + <ItemsControl.ItemsPanel> |
| 150 | + <ItemsPanelTemplate> |
| 151 | + <WrapPanel Orientation="Horizontal" VerticalAlignment="Center" ItemHeight="24"/> |
| 152 | + </ItemsPanelTemplate> |
| 153 | + </ItemsControl.ItemsPanel> |
| 154 | + |
| 155 | + <ItemsControl.ItemTemplate> |
| 156 | + <DataTemplate> |
| 157 | + <TextBlock Classes="primary" |
| 158 | + Text="{Binding Converter={x:Static c:StringConverters.ToShortSHA}}" |
| 159 | + Foreground="DarkOrange" |
| 160 | + TextDecorations="Underline" |
| 161 | + Cursor="Hand" |
| 162 | + Margin="0,0,16,0" |
| 163 | + PointerEntered="OnSHAPointerEntered" |
| 164 | + PointerPressed="OnSHAPressed"> |
| 165 | + <TextBlock.Styles> |
| 166 | + <Style Selector="ToolTip"> |
| 167 | + <Setter Property="MaxWidth" Value="600"/> |
| 168 | + </Style> |
| 169 | + </TextBlock.Styles> |
| 170 | + |
| 171 | + <TextBlock.DataTemplates> |
| 172 | + <DataTemplate DataType="m:Commit"> |
| 173 | + <StackPanel MinWidth="400" Orientation="Vertical"> |
| 174 | + <Grid ColumnDefinitions="Auto,*,Auto"> |
| 175 | + <v:Avatar Grid.Column="0" Width="16" Height="16" VerticalAlignment="Center" IsHitTestVisible="False" User="{Binding Author}"/> |
| 176 | + <TextBlock Grid.Column="1" Classes="primary" Text="{Binding Author.Name}" Margin="8,0,0,0"/> |
| 177 | + <TextBlock Grid.Column="2" Classes="primary" Text="{Binding CommitterTimeStr}" Foreground="{DynamicResource Brush.FG2}" Margin="8,0,0,0"/> |
| 178 | + </Grid> |
| 179 | + |
| 180 | + <TextBlock Classes="primary" Margin="0,8,0,0" Text="{Binding Subject}" TextWrapping="Wrap"/> |
| 181 | + </StackPanel> |
| 182 | + </DataTemplate> |
| 183 | + </TextBlock.DataTemplates> |
| 184 | + </TextBlock> |
| 185 | + </DataTemplate> |
| 186 | + </ItemsControl.ItemTemplate> |
| 187 | + </ItemsControl> |
192 | 188 |
|
193 | 189 | <!-- REFS -->
|
194 | | - <TextBlock Grid.Row="3" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Refs}" IsVisible="{Binding HasDecorators}"/> |
| 190 | + <TextBlock Grid.Row="3" Grid.Column="0" Classes="info_label" VerticalAlignment="Top"Margin="0,4,0,0"Text="{DynamicResource Text.CommitDetail.Info.Refs}" IsVisible="{Binding HasDecorators}"/> |
195 | 191 | <Border Grid.Row="3" Grid.Column="1" Margin="12,0,0,0" Height="24" IsVisible="{Binding HasDecorators}">
|
196 | 192 | <v:CommitRefsPresenter TagBackground="{DynamicResource Brush.DecoratorTag}"
|
197 | 193 | Foreground="{DynamicResource Brush.FG1}"
|
|
202 | 198 | </Border>
|
203 | 199 |
|
204 | 200 | <!-- Messages -->
|
205 | | - <TextBlock Grid.Row="4" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Message}"VerticalAlignment="Top" Margin="0,4,0,0" /> |
| 201 | + <TextBlock Grid.Row="4" Grid.Column="0" Classes="info_label" VerticalAlignment="Top" Margin="0,4,0,0"Text="{DynamicResource Text.CommitDetail.Info.Message}" /> |
206 | 202 | <v:CommitMessagePresenter Grid.Row="5" Grid.Column="1"
|
207 | 203 | Margin="12,5,8,0"
|
208 | 204 | Classes="primary"
|
|
0 commit comments