diff --git a/src/Console/Interactive.cs b/src/Console/Interactive.cs index 5d57a92..1c37f84 100644 --- a/src/Console/Interactive.cs +++ b/src/Console/Interactive.cs @@ -187,8 +187,9 @@ async Task RenderAsync(string json) AnsiConsole.Write(new Panel(Markup.FromInterpolated($":robot: {text}")) { Border = BoxBorder.None, - Width = Math.Min(100, AnsiConsole.Profile.Width), - Padding = new(0, 0, 0, 0) + Expand = false, + Padding = new(0, 0, 0, 0), + Width = Math.Min(80, AnsiConsole.Profile.Width), }); if (message is Client.InteractiveMessage interactive && interactive.Interactive.Action is { } node) { diff --git a/src/Console/Program.cs b/src/Console/Program.cs index edc153b..b9f4e1b 100644 --- a/src/Console/Program.cs +++ b/src/Console/Program.cs @@ -4,6 +4,7 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; // Some users reported not getting emoji on Windows, so we force UTF-8 encoding. // This not great, but I couldn't find a better way to do it. @@ -21,6 +22,7 @@ } var host = Host.CreateApplicationBuilder(args); +host.Logging.ClearProviders(); host.Configuration.AddInMemoryCollection(new Dictionary() {