spectre.console icon indicating copy to clipboard operation
spectre.console copied to clipboard

Add table overflow strategies

Open patriksvensson opened this issue 5 years ago • 0 comments

There should be an option to specify overflow strategies for tables when one or more columns can't be displayed.

  • If the table can't be displayed at all (requested max-width <= 0), show an ellipsis.
  • Truncate table if it exceeds the requested max-width.

Default

Do nothing to prevent bad rendering.

Yolo

Do nothing to prevent bad rendering. Do not truncate the table or show ellipsis.

image

Drop

Start dropping columns until content fit.

image

Ellipsis

Display columns that won't fit with an ellipsis.

image

Column splitting

Split columns in half until all columns fit.

image

Row splitting

Split rows so all columns are grouped together even if not all fit.

image

patriksvensson avatar Oct 18 '20 05:10 patriksvensson