Update ColumnsSample to showcase nicer data (#1295)

Also, I switched the base width of the AsciiCast back
to 82 (from 120) so newly created casts are no longer
overflowing the display with on the pages.

Re-created the Panel and BreakdownChart casts, as
they were currently overflowing due to the 120 chars
width of the cast.
This commit is contained in:
Nils Andresen
2023-09-12 12:58:18 +02:00
committed by GitHub
parent 1002c6fe27
commit a3dcb31729
8 changed files with 173 additions and 41 deletions

View File

@ -9,7 +9,7 @@ namespace Generator.Commands.Samples
{
public abstract void Run(IAnsiConsole console);
public virtual string Name() => PascalToKebab(GetType().Name.Replace("Sample",""));
public virtual (int Cols, int Rows) ConsoleSize => (120, 24);
public virtual (int Cols, int Rows) ConsoleSize => (82, 24);
public virtual IEnumerable<(string Name, Action<Capabilities> CapabilitiesAction)> GetCapabilities()
{
return new (string Name, Action<Capabilities> CapabilitiesAction)[]