pharos icon indicating copy to clipboard operation
pharos copied to clipboard

Layout: gutter sizes are prohibitive and cause overflow

Open daneah opened this issue 4 years ago • 3 comments

Expected behavior

The layout grid is fluid and adjusts well to all screen sizes

Actual behavior

At particular screen sizes, and partially dependent on the content of a given column, the layout overflows the screen.

Steps to reproduce the issue

  1. Visit the layout story
  2. Place the Actions panel on the right
  3. Drag the panel to be wider, narrowing the area with the layout
  4. Observe the layout eventually stops shrinking and overflows its portion of the screen

Screenshots or code

Screen Shot 2021-11-11 at 8 52 39 AM

Pharos version

11.0.0

Your environment

  • OS: macOS
  • Browser: Chrome, Firefox, likely all
  • Version: Likely all

Additional information

We likely want to use either smaller or fluid gutter sizes on smaller screens. Because real estate becomes precious, even a 20px gutter in a 4-column layout on a 360px screen will steal (20px * 3) / (360px) = 1/6th of the screen.

daneah avatar Nov 11 '21 13:11 daneah

Some inspiration from Brad Frost.

daneah avatar Dec 21 '22 13:12 daneah

We likely need to revisit this and re-develop a holistic point of view on how we handle layout systemically on the platform.

daneah avatar Jul 07 '23 19:07 daneah

Design (product & labs) have investigated the referenced gridless design systems recommended by Brad Frost. We agree that this approach would eliminate the current issues we are experiencing with grids.

Design will need to create a new series of objects for the UI toolkit that will replace the current grid system. We are observing that Figma's new capabilities (e.g. setting min/max of frames; and wrapping of items within a frame) will support this work.

elisa-vargas avatar Aug 04 '23 18:08 elisa-vargas