Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Fix avatar in inline comments. #1609

Merged
merged 1 commit into from
Apr 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Don't use default button width for avatar.
The default button width is 76; don't use this for the button in the avatar as it will likely be much smaller.
  • Loading branch information
grokys committed Apr 17, 2018
commit f8f6541432372f460cf4880e751e13b63186ee68
5 changes: 3 additions & 2 deletions src/GitHub.VisualStudio.UI/UI/Controls/AccountAvatar.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
xmlns:local="clr-namespace:GitHub.VisualStudio.UI.Controls"
Name="root"
MinWidth="16" MinHeight="16">
<Button Name="btn" Command="{Binding Command, ElementName=root}"
<Button Command="{Binding Command, ElementName=root}"
CommandParameter="{Binding CommandParameter, ElementName=root}"
CommandTarget="{Binding CommandTarget, ElementName=root}">
CommandTarget="{Binding CommandTarget, ElementName=root}"
MinWidth="0">
<Button.Template>
<ControlTemplate TargetType="Button">
<ContentPresenter/>
Expand Down