TUI: переработать shell и адаптацию layout
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<Rows>
|
||||
<Markup Content="@Loc.SettingsTitle" Foreground="@UiPalette.Text" Decoration="@Spectre.Console.Decoration.Bold" />
|
||||
<Markup Content="@Loc.SettingsHint" Foreground="@UiPalette.TextMuted" />
|
||||
<Markup Content=" " />
|
||||
|
||||
@if (Entries.Count == 0)
|
||||
@@ -67,7 +66,7 @@
|
||||
text = $"{indent}{checkbox} {entry.Label}{disabledSuffix}";
|
||||
}
|
||||
|
||||
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