foundry-vtt-tidy-5e-sheets icon indicating copy to clipboard operation
foundry-vtt-tidy-5e-sheets copied to clipboard

Item Tables Overhaul

Open kgar opened this issue 2 years ago • 3 comments

Item tables are currently implemented with flexbox, and when the header row becomes too crowded, it becomes off-centered from its table contents. Consider this spellbook section:

image

  • Rebuild list views so that becoming off-balance is impossible.
  • Overflow should be handled in a more controlled and predictable way.
    • Current idea 💡 specifically for Spellbook:
      • Offload the primary column title (e.g., "Pact Magic 1st Level 🟠 1/1 ✏") to a standalone header row, where this content can expand out comfortably. In place of this text, the primary column should have the column title "Spell".
    • For all sheets, the "Name" column, like the item name itself, should truncate with ellipses "..." when compressed.
    • If there are too many columns and the sheet is not wide enough to accommodate them, a dedicated horizontal scrollbar should be provided for that tab (or list?)

Consider switching to CSS Grid for building these tables. In the re-design, build with column selection possibilities in mind (#60).

kgar avatar Nov 01 '23 17:11 kgar

Whatever the implementation, it should support #11, if already implemented.

kgar avatar Nov 01 '23 17:11 kgar

Gonna chuck this in here as a discussion point since it's relevant to header clutter. It would be kickass if the solution implemented here were designed in such a way that it could work in an environment where item list columns are customizable.

Very recently I was talking with my group about which things they did and didn't like about how the base dnd5e sheet displays items, and it became apparent to me that folks have different preferences for what information is easily visible. For instance, I don't need to have spell school or range listed as columns on the spellbook tab, and I would disable those if I could. Allowing people this flexibility might be a cool future feature.

crash1115 avatar Nov 20 '23 22:11 crash1115

Two complaints I've often seen in the wild:

  • Tidy has too many tabs
  • Tidy's tables are too crowded

With the way things are going, column selection is a very compelling feature add.

The way I see it, module developers will eventually be able to register columns and append content to existing columns. So, with our tables already feeling kind of crowded in their current state, providing extensibility like actor column selection will keep things sane.

And, column selection will synergize with the work currently being done on #58

kgar avatar Nov 21 '23 18:11 kgar