|
51 | 51 | <Rectangle Height=".65" Margin="8" Fill="{DynamicResource Brush.Border2}" VerticalAlignment="Center"/>
|
52 | 52 |
|
53 | 53 | <!-- Base Information -->
|
54 | | - <Grid RowDefinitions="24,Auto,Auto,Auto" ColumnDefinitions="96,*"> |
| 54 | + <Grid RowDefinitions="24,Auto,Auto,Auto,Auto" ColumnDefinitions="96,*"> |
55 | 55 | <!-- SHA -->
|
56 | 56 | <TextBlock Grid.Row="0" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.SHA}" />
|
57 | 57 | <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal">
|
|
102 | 102 |
|
103 | 103 | <!-- PARENTS -->
|
104 | 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 | | - <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> |
| 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> |
136 | 112 |
|
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> |
| 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> |
| 147 | + |
| 148 | + <!-- 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> |
145 | 192 |
|
146 | 193 | <!-- REFS -->
|
147 | | - <TextBlock Grid.Row="2" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Refs}" IsVisible="{Binding HasDecorators}"/> |
148 | | - <Border Grid.Row="2" Grid.Column="1" Margin="12,0,0,0" Height="24" IsVisible="{Binding HasDecorators}"> |
| 194 | + <TextBlock Grid.Row="3" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Refs}" IsVisible="{Binding HasDecorators}"/> |
| 195 | + <Border Grid.Row="3" Grid.Column="1" Margin="12,0,0,0" Height="24" IsVisible="{Binding HasDecorators}"> |
149 | 196 | <v:CommitRefsPresenter TagBackground="{DynamicResource Brush.DecoratorTag}"
|
150 | 197 | Foreground="{DynamicResource Brush.FG1}"
|
151 | 198 | FontFamily="{DynamicResource Fonts.Primary}"
|
|
155 | 202 | </Border>
|
156 | 203 |
|
157 | 204 | <!-- Messages -->
|
158 | | - <TextBlock Grid.Row="3" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Message}" VerticalAlignment="Top" Margin="0,4,0,0" /> |
159 | | - <v:CommitMessagePresenter Grid.Row="4" Grid.Column="1" |
| 205 | + <TextBlock Grid.Row="4" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Message}" VerticalAlignment="Top" Margin="0,4,0,0" /> |
| 206 | + <v:CommitMessagePresenter Grid.Row="5" Grid.Column="1" |
160 | 207 | Margin="12,5,8,0"
|
161 | 208 | Classes="primary"
|
162 | 209 | Message="{Binding #ThisControl.Message}"
|
|
0 commit comments