|
20 | 20 | <Binding> |
21 | 21 | <Binding.Source> |
22 | 22 | <ghfvs:PullRequestDetailViewModelDesigner SourceBranchDisplayName="shana/error-handling-a-ridiculously-long-branch-name-because-why-not" |
23 | | - TargetBranchDisplayName="master-is-always-stable" |
24 | | - CommentCount="10"> |
| 23 | + TargetBranchDisplayName="master-is-always-stable" |
| 24 | + CommentCount="10"> |
25 | 25 | <ghfvs:PullRequestDetailViewModelDesigner.UpdateState> |
26 | 26 | <ghfvs:PullRequestUpdateStateDesigner CommitsAhead="0" CommitsBehind="0" UpToDate="True"/> |
27 | 27 | </ghfvs:PullRequestDetailViewModelDesigner.UpdateState> |
|
78 | 78 | <CommandBinding Command="{x:Static markdig:Commands.Hyperlink}" Executed="OpenHyperlink" /> |
79 | 79 | </FrameworkElement.CommandBindings> |
80 | 80 |
|
81 | | - <DockPanel Grid.IsSharedSizeScope="True" Margin="8 0"> |
82 | | - <Grid DockPanel.Dock="Top"> |
83 | | - <Grid.ColumnDefinitions> |
84 | | - <ColumnDefinition Width="*" /> |
85 | | - <ColumnDefinition Width="Auto" /> |
86 | | - </Grid.ColumnDefinitions> |
87 | | - |
88 | | - <Grid.RowDefinitions> |
89 | | - <RowDefinition Height="*" /> |
90 | | - <RowDefinition Height="Auto" /> |
91 | | - </Grid.RowDefinitions> |
92 | | - |
93 | | - <TextBlock Grid.Column="0" |
94 | | - Style="{DynamicResource {x:Static vsui:VsResourceKeys.TextBlockEnvironment122PercentFontSizeStyleKey}}" |
| 81 | + <DockPanel Grid.IsSharedSizeScope="True"> |
| 82 | + <StackPanel DockPanel.Dock="Top" |
| 83 | + Orientation="Vertical" |
| 84 | + Margin="8 0 0 0"> |
| 85 | + |
| 86 | + <!-- Title --> |
| 87 | + <TextBlock Style="{DynamicResource {x:Static vsui:VsResourceKeys.TextBlockEnvironment122PercentFontSizeStyleKey}}" |
95 | 88 | TextWrapping="Wrap" |
96 | 89 | Margin="0 0 5 3" |
97 | 90 | Text="{Binding Model.Title}"/> |
98 | 91 |
|
99 | | - <StackPanel Grid.Column="0" |
100 | | - Grid.Row="1" |
101 | | - Orientation="Horizontal"> |
102 | | - |
| 92 | + <!-- State and branches --> |
| 93 | + <StackPanel Orientation="Horizontal"> |
103 | 94 | <TextBlock FontWeight="Bold" |
104 | | - Margin="0 0 4 0" |
105 | 95 | VerticalAlignment="Center" |
106 | 96 | Text="{Binding Model.State, Converter={StaticResource AllCaps}}" |
107 | 97 | Style="{StaticResource StateIndicator}"/> |
108 | 98 |
|
109 | | - <Rectangle Grid.Column="1" Margin="5 0 10 0" Width="1" Height="12" VerticalAlignment="Center" Style="{DynamicResource Separator}" /> |
| 99 | + <Rectangle Margin="9 0" Width="1" Height="12" VerticalAlignment="Center" Style="{DynamicResource Separator}" /> |
110 | 100 |
|
111 | | - <!-- source and target branches --> |
112 | | - <Grid Margin="0 -3" HorizontalAlignment="Left"> |
113 | | - <Grid.ColumnDefinitions> |
114 | | - <ColumnDefinition Width="Auto"/> |
115 | | - <ColumnDefinition Width="*"/> |
116 | | - <ColumnDefinition Width="Auto"/> |
117 | | - <ColumnDefinition Width="*"/> |
118 | | - </Grid.ColumnDefinitions> |
| 101 | + <Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" CornerRadius="2" Padding="5 1" Background="{DynamicResource GitHubBranchNameBackgroundBrush}"> |
| 102 | + <TextBlock FontFamily="Consolas" TextTrimming="CharacterEllipsis" ToolTip="{Binding TargetBranchDisplayName, Mode=OneWay}" Text="{Binding TargetBranchDisplayName, Mode=OneWay}" /> |
| 103 | + </Border> |
119 | 104 |
|
120 | | - <Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" CornerRadius="2" Padding="5 1" Background="{DynamicResource GitHubBranchNameBackgroundBrush}"> |
121 | | - <TextBlock FontFamily="Consolas" TextTrimming="CharacterEllipsis" ToolTip="{Binding TargetBranchDisplayName, Mode=OneWay}" Text="{Binding TargetBranchDisplayName, Mode=OneWay}" /> |
122 | | - </Border> |
| 105 | + <ghfvs:OcticonImage Grid.Column="2" VerticalAlignment="Center" Margin="5 3" Icon="arrow_left" /> |
123 | 106 |
|
124 | | - <ghfvs:OcticonImage Grid.Column="2" VerticalAlignment="Center" Margin="5" Icon="arrow_left" /> |
| 107 | + <Border Grid.Column="3" HorizontalAlignment="Left" VerticalAlignment="Center" CornerRadius="2" Padding="5 1" Background="{DynamicResource GitHubBranchNameBackgroundBrush}"> |
| 108 | + <TextBlock FontFamily="Consolas" TextTrimming="CharacterEllipsis" ToolTip="{Binding SourceBranchDisplayName, Mode=OneWay}" Text="{Binding SourceBranchDisplayName, Mode=OneWay}" /> |
| 109 | + </Border> |
125 | 110 |
|
126 | | - <Border Grid.Column="3" HorizontalAlignment="Left" VerticalAlignment="Center" CornerRadius="2" Padding="5 1" Background="{DynamicResource GitHubBranchNameBackgroundBrush}"> |
127 | | - <TextBlock FontFamily="Consolas" TextTrimming="CharacterEllipsis" ToolTip="{Binding SourceBranchDisplayName, Mode=OneWay}" Text="{Binding SourceBranchDisplayName, Mode=OneWay}" /> |
128 | | - </Border> |
129 | | - </Grid> |
130 | 111 | </StackPanel> |
131 | | - </Grid> |
132 | 112 |
|
133 | | - <!-- Avatar, PR Title, Open/Merged/Closed state and actions area --> |
134 | | - <Grid DockPanel.Dock="Top"> |
135 | | - <Grid.ColumnDefinitions> |
136 | | - <ColumnDefinition Width="Auto"/> |
137 | | - <ColumnDefinition Width="1*"/> |
138 | | - <ColumnDefinition Width="Auto"/> |
139 | | - </Grid.ColumnDefinitions> |
140 | | - |
141 | | - <Grid.RowDefinitions> |
142 | | - <RowDefinition Height="Auto"/> |
143 | | - <RowDefinition Height="Auto"/> |
144 | | - <RowDefinition Height="Auto"/> |
145 | | - </Grid.RowDefinitions> |
146 | | - |
147 | | - <StackPanel Grid.Column="1" Margin="0 0 6 0" Orientation="Vertical"> |
148 | | - <TextBlock Grid.Column="0" Opacity="0.5" VerticalAlignment="Center" |
149 | | - Text="{Binding Model.UpdatedAt, StringFormat={x:Static prop:Resources.UpdatedFormat}, Converter={ghfvs:DurationToStringConverter}, Mode=OneWay}"/> |
150 | | - </StackPanel> |
| 113 | + <!-- Updated at --> |
| 114 | + <TextBlock Opacity="0.5" |
| 115 | + Text="{Binding Model.UpdatedAt, StringFormat={x:Static prop:Resources.UpdatedFormat}, Converter={ghfvs:DurationToStringConverter}, Mode=OneWay}"/> |
151 | 116 |
|
152 | 117 | <!-- Git operation error message --> |
153 | | - <TextBox Grid.Column="0" |
154 | | - Grid.ColumnSpan="3" |
155 | | - Grid.Row="2" |
156 | | - Foreground="Red" |
157 | | - Margin="0 2 0 0" |
| 118 | + <TextBox Foreground="Red" |
| 119 | + Margin="-2 4" |
158 | 120 | Text="{Binding OperationError, Mode=OneWay}" |
159 | | - VerticalAlignment="Center" |
160 | | - TextWrapping="Wrap" |
161 | 121 | Style="{StaticResource FlatReadOnlyTextBox}" |
162 | 122 | Visibility="{Binding OperationError, Converter={ghfvs:NullToVisibilityConverter}}"/> |
163 | | - </Grid> |
| 123 | + </StackPanel> |
164 | 124 |
|
165 | | - <Rectangle DockPanel.Dock="Top" Style="{StaticResource Separator}" Height="2" Margin="-8,5,-8,0"/> |
| 125 | + <Rectangle DockPanel.Dock="Top" Style="{StaticResource Separator}" Height="2" Margin="0,5,0,0"/> |
166 | 126 |
|
167 | 127 | <ScrollViewer CanContentScroll="True" |
168 | | - Margin="0,0,-8,0" |
| 128 | + Padding="8 0 0 0" |
169 | 129 | HorizontalScrollBarVisibility="Auto" |
170 | 130 | VerticalScrollBarVisibility="Auto"> |
171 | 131 | <ghfvs:ScrollingVerticalStackPanel> |
|
0 commit comments