TUI: переработать shell и адаптацию layout
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
<Rows>
|
||||
<Markup Content="@Loc.LogsTitle" Foreground="@UiPalette.Text" Decoration="@Spectre.Console.Decoration.Bold" />
|
||||
<Markup Content="@Loc.LogsHint" Foreground="@UiPalette.TextMuted" />
|
||||
<Markup Content=" " />
|
||||
|
||||
<Columns>
|
||||
@@ -87,7 +86,7 @@
|
||||
? selected.Message
|
||||
: $"{selected.Message} | {selected.Exception}";
|
||||
|
||||
return Fit(details, Math.Max(Console.WindowWidth - 12, 32));
|
||||
return Fit(details, Math.Max(UiMetrics.ConsoleWidth - 12, 32));
|
||||
}
|
||||
|
||||
private string FormatEntry(int index)
|
||||
@@ -104,7 +103,7 @@
|
||||
};
|
||||
|
||||
var text = $"{entry.Timestamp:HH:mm:ss} {level,-3} {entry.ShortCategory,-18} {entry.Message}";
|
||||
return Fit(text, Math.Max(Console.WindowWidth - 12, 32));
|
||||
return Fit(text, Math.Max(UiMetrics.ConsoleWidth - 12, 32));
|
||||
}
|
||||
|
||||
private static string Fit(string text, int width)
|
||||
|
||||
Reference in New Issue
Block a user