From 208af69ea10c493670c3fc284552754d3f6dd94f Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 14 Jul 2021 12:43:53 +0800 Subject: [PATCH] style: limit max height of error message --- src/Commands/Command.cs | 2 +- src/Views/Widgets/Exceptions.xaml | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Commands/Command.cs b/src/Commands/Command.cs index 19f72580..6e31d6e7 100644 --- a/src/Commands/Command.cs +++ b/src/Commands/Command.cs @@ -68,7 +68,7 @@ namespace SourceGit.Commands { if (!string.IsNullOrEmpty(Cwd)) start.WorkingDirectory = Cwd; - var progressFilter = new Regex(@"\d+\%"); + var progressFilter = new Regex(@"\s\d+%\s"); var errs = new List(); var proc = new Process() { StartInfo = start }; var isCancelled = false; diff --git a/src/Views/Widgets/Exceptions.xaml b/src/Views/Widgets/Exceptions.xaml index a810081f..a7f110d9 100644 --- a/src/Views/Widgets/Exceptions.xaml +++ b/src/Views/Widgets/Exceptions.xaml @@ -4,6 +4,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:controls="clr-namespace:SourceGit.Views.Controls" mc:Ignorable="d" Width="Auto" Height="Auto"> @@ -25,7 +26,16 @@ - +