diff --git a/src/GitHub.InlineReviews/GitHub.InlineReviews.csproj b/src/GitHub.InlineReviews/GitHub.InlineReviews.csproj index 2d79586035..7a9333ef0a 100644 --- a/src/GitHub.InlineReviews/GitHub.InlineReviews.csproj +++ b/src/GitHub.InlineReviews/GitHub.InlineReviews.csproj @@ -102,12 +102,6 @@ - - ShowInlineAnnotationGlyph.xaml - - - ShowInlineCommentAnnotationGlyph.xaml - @@ -414,14 +408,6 @@ Designer true - - MSBuild:Compile - Designer - - - MSBuild:Compile - Designer - Designer MSBuild:Compile diff --git a/src/GitHub.InlineReviews/Tags/InlineCommentGlyphFactory.cs b/src/GitHub.InlineReviews/Tags/InlineCommentGlyphFactory.cs index 936b2b7258..f43c3265ea 100644 --- a/src/GitHub.InlineReviews/Tags/InlineCommentGlyphFactory.cs +++ b/src/GitHub.InlineReviews/Tags/InlineCommentGlyphFactory.cs @@ -59,25 +59,7 @@ static UserControl CreateGlyph(InlineCommentTag tag) if (showTag != null) { - if (showTag.Thread != null && showTag.Annotations != null) - { - return new ShowInlineCommentAnnotationGlyph(); - } - - if (showTag.Thread != null) - { - return new ShowInlineCommentGlyph - { - Opacity = showTag.Thread.IsStale ? 0.5 : 1, - }; - } - - if (showTag.Annotations != null) - { - return new ShowInlineAnnotationGlyph(); - } - - throw new ArgumentException($"{nameof(showTag)} does not have a thread or annotations"); + return new ShowInlineCommentGlyph(); } throw new ArgumentException($"Unknown 'InlineCommentTag' type '{tag}'"); diff --git a/src/GitHub.InlineReviews/Tags/ShowInlineAnnotationGlyph.xaml b/src/GitHub.InlineReviews/Tags/ShowInlineAnnotationGlyph.xaml deleted file mode 100644 index d08e47e304..0000000000 --- a/src/GitHub.InlineReviews/Tags/ShowInlineAnnotationGlyph.xaml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/src/GitHub.InlineReviews/Tags/ShowInlineAnnotationGlyph.xaml.cs b/src/GitHub.InlineReviews/Tags/ShowInlineAnnotationGlyph.xaml.cs deleted file mode 100644 index e8f3bdf22e..0000000000 --- a/src/GitHub.InlineReviews/Tags/ShowInlineAnnotationGlyph.xaml.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Windows.Controls; - -namespace GitHub.InlineReviews.Tags -{ - public partial class ShowInlineAnnotationGlyph : UserControl - { - public ShowInlineAnnotationGlyph() - { - InitializeComponent(); - } - - } -} diff --git a/src/GitHub.InlineReviews/Tags/ShowInlineCommentAnnotationGlyph.xaml b/src/GitHub.InlineReviews/Tags/ShowInlineCommentAnnotationGlyph.xaml deleted file mode 100644 index 1242685460..0000000000 --- a/src/GitHub.InlineReviews/Tags/ShowInlineCommentAnnotationGlyph.xaml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/src/GitHub.InlineReviews/Tags/ShowInlineCommentAnnotationGlyph.xaml.cs b/src/GitHub.InlineReviews/Tags/ShowInlineCommentAnnotationGlyph.xaml.cs deleted file mode 100644 index c5ca1e9298..0000000000 --- a/src/GitHub.InlineReviews/Tags/ShowInlineCommentAnnotationGlyph.xaml.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Windows.Controls; - -namespace GitHub.InlineReviews.Tags -{ - public partial class ShowInlineCommentAnnotationGlyph : UserControl - { - public ShowInlineCommentAnnotationGlyph() - { - InitializeComponent(); - } - - } -} diff --git a/src/GitHub.InlineReviews/Tags/ShowInlineCommentGlyph.xaml b/src/GitHub.InlineReviews/Tags/ShowInlineCommentGlyph.xaml index 77e7386777..1e0add5448 100644 --- a/src/GitHub.InlineReviews/Tags/ShowInlineCommentGlyph.xaml +++ b/src/GitHub.InlineReviews/Tags/ShowInlineCommentGlyph.xaml @@ -9,16 +9,25 @@ - - - + + + + + + + diff --git a/src/GitHub.VisualStudio.UI/Views/CommentView.xaml b/src/GitHub.VisualStudio.UI/Views/CommentView.xaml index df4826c72b..4a997d1223 100644 --- a/src/GitHub.VisualStudio.UI/Views/CommentView.xaml +++ b/src/GitHub.VisualStudio.UI/Views/CommentView.xaml @@ -166,7 +166,7 @@ AcceptsReturn="True" AcceptsTab="True" IsReadOnly="{Binding IsReadOnly}" - Margin="4 0" + Margin="4 0 4 4" Text="{Binding Body, UpdateSourceTrigger=PropertyChanged}" TextWrapping="Wrap" VerticalAlignment="Center"