---
title: "A grid you can drag into any shape"
description: "Design notes on the resizable terminal grid in PaneScale 0.2 — seams, crossings, snapping and why the shape is saved per workspace."
url: "https://panescale.com/blog/a-grid-you-can-drag"
published: "2026-10-10"
updated: "2026-10-29"
category: "Product"
---

# A grid you can drag into any shape

Design notes on the resizable terminal grid in PaneScale 0.2 — seams, crossings, snapping and why the shape is saved per workspace.

The first versions of PaneScale had fixed layouts: one, two, four, six, nine, twelve or sixteen equal panes. Equal is a good default and a poor reality. One agent is doing the main work and deserves half the screen; two others are running tests and only need a strip; the docs pane can be tiny.

Version 0.2 made every part of the grid draggable. Here is how it behaves, and why. (The layout menu has grown since: today it offers 1, 2, 4, 6, 9, 12, 16, 20, 25 or 30 panes.)

## Seams and crossings

Every line between two columns or rows is a **seam** you can drag. Where a vertical and a horizontal seam meet is a **crossing** — drag it and both move at once, which is how you usually want to resize a corner pane. The dock next to the grid has a seam of its own.

Crossings exist because of how people actually resize. You rarely want “this column wider” on its own; you want “this pane bigger”, which means a column and a row together. A crossing turns two drags into one, and a large, easy-to-hit target makes it fast — the same reasoning behind Fitts’s law, which says the time to reach a target grows with its distance and shrinks with its size.

## Snapping, but gently

While you drag, seams snap to even positions: halves, thirds, quarters. Snapping makes it easy to get back to a tidy layout and hard to end up with a column that is three pixels narrower than its neighbor for no reason. When you want a seam somewhere snapping wouldn’t put it, hold `Alt` while dragging and place it freely.

## Getting back to equal

Two ways, because you will need it more often than you think:

- **Double-click** a seam.
- Focus a seam and press `Home`.

Both distribute the space evenly along that axis again. **Distribute evenly** in the layout menu resets the whole layout at once.

## Keyboard first

Seams are focusable. With one focused, the arrow keys move it in steps of 24 pixels, and with `Shift` in steps of 4. This makes the grid usable without a mouse, and it makes fine adjustments easier than dragging.

The pattern is a familiar one: accessibility guidelines describe a resizable divider between two panes as a *window splitter*, a focusable element that arrow keys move and `Home` resets. Following an established pattern means people who navigate by keyboard or screen reader find the behaviour they expect.

## Limits that keep panes useful

A pane can be dragged small, but not useless. Columns never get narrower than 160 pixels and rows never lower than 96, so a header and a few lines of output always stay visible. The limit is about the status: even a tiny pane has to tell you whether its agent is working, done or waiting for you.

## Saved where it belongs

The shape of a grid is saved **per project and per layout**. Your six-pane arrangement for the web app doesn’t change the six-pane arrangement for the API, and switching from six to four panes and back restores the six-pane shape you had.

We considered one global shape. It lasted about a day — different projects really do want different arrangements.

## Panes move up, never away

When you switch to a smaller layout, panes that no longer fit move up into free cells. Nothing is closed without asking. When you switch back, the grid fills up again.

## Rearranging without resizing

Resizing is half of arranging. The other half is moving panes around:

- **Swap** two panes by dragging one pane’s header onto another cell.
- **Maximize** a pane with the button in its header; it fills the whole grid until you click again, and the other panes keep running.
- **Switch to the chat view** of an agent pane from its header — the same session, as a readable chat — and back.

Together these cover the moments when one pane suddenly matters more than the rest: a long diff to read, a question to answer, a failing test to watch.

## Shapes that work

A few arrangements come up again and again:

| Shape | Good for |
| --- | --- |
| One large pane, two narrow ones beside it | One agent doing the main work, two others running tests or answering questions |
| Two wide panes on top, three short ones below | Two agents on related tasks, plus shells for builds, logs and the dev server |
| Four equal panes | Four independent tasks of similar size, each in its own lane |
| Nine or more small panes | Many short, checkable tasks — with the dashboard telling you which one needs you |

None of these is a template you have to choose; they are just where people end up after a few days of dragging.

## Small details

- Terminals resize continuously while you drag, without flicker, because rendering is batched once per frame.
- Pane headers truncate gracefully: the agent name and status always stay visible; the lane name gives way first.
- Ready sessions follow the grid: free cells keep a session waiting, so a newly freed cell becomes useful immediately.

## Many panes, still smooth

A grid of sixteen busy terminals is a lot of text arriving at once. Two decisions keep it smooth. All terminal output travels through a single channel and is drawn once per frame, no matter how many panes are busy. And not every terminal is drawn the same way: the focused terminal and terminals with a lot of output use the GPU, while quiet panes use a lighter renderer, so many panes stay cheap.

The grid is the part of PaneScale you look at most. It should feel like yours.

## Sources

- [Window splitter pattern](https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/) — W3C’s ARIA Authoring Practices for focusable, keyboard-movable dividers
- [Fitts’s law and its applications in UX](https://www.nngroup.com/articles/fitts-law/) — Nielsen Norman Group on target size and distance
- [CSS grid layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout) — MDN’s guide to two-dimensional layouts on the web
- [requestAnimationFrame](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame) — drawing once per frame in the browser
