Raft Design System

Patterns

Responsive layout

The breakpoints, what each width shows, how short windows shrink and what they show with the on-screen keyboard up, the conversation's row and the Tasks page's row, why a layout switches on the width of its own region, how a row gives way when it runs out of room, why the first frame is already the settled one, what replaces hover on a touch screen, and how phone layouts hold at 320px.

Below 768px Raft is a phone layout: top-level pages with the tab bar, everything else pushed. From 768px the desktop layout begins, with the web top bar and the rail, and side panels sit beside the main area once there is room for both. Where there isn't room, a panel covers the main area rather than squeezing it below the widths in the table, except in a conversation's row, whose columns narrow, clip and become tabs, and whose thread folds over the conversation (The channel's side columns), and in the Tasks page's row, which works the same way (The Tasks page's row). Task details in their dialog don't change with the width beyond going full screen on a phone (Tasks).

When it applies

Every screen. The regions themselves are in Page structure; the widths of regions are in Spacing. A product can add its own conditions, such as the widths of Raft Chat's Search and Activity columns (Raft Chat).

Structure

WidthLayout
Below 768pxPhone: top-level pages with the tab bar, every other page pushed. No web top bar and no rail. A thread is a pushed page; a profile covers the page like one, with Back
768px to 1023pxWeb top bar, rail, sidebar and main area. A profile covers the main area, except in a conversation's row, where it is one of the row's columns (The channel's side columns)
1024px and upA profile or a task side panel (400px, resizable from 160px, its content clipped under 320px, until the main area is down to its 360px) sits beside the main area when the area it opens in is at least 720px wide, the main area's 360px plus the panel's 360px; otherwise it covers it. In a conversation's row a profile is one of the row's columns instead and never covers the conversation, and on the Tasks page the task is one of the page row's columns (The Tasks page's row)
A thread, at any desktop widthIn a column of its own beside the conversation while the two together have at least 720px and no other column has to clip; otherwise it folds over the conversation, in the conversation's column, with Back (The channel's side columns). On a touch tablet (pointer: coarse) held in portrait and under 1280px wide, such as an iPad mini, it stays folded over the conversation whatever the room
The columns of a conversation's rowThe conversation, then the thread, Tasks, Files, the Artifact, a profile and the channel details in columns right of it, each column a stack the person arranges (Drag and drop). Every column stands full height in the row at a width the row gives it from its saved width, down to 160px, its content clipped under its own minimum; nothing floats over the row. Past 160px the rightmost columns become tabs in their left neighbour's head (The channel's side columns)
Desktop window shorter than 600pxHeaders shrink from 44px to 40px with a mouse (from 56px to 48px on a touch screen). The rail is already 49px wide with 36px items with a mouse; on a touch screen it shrinks to that from 57px and 40px. The web top bar keeps 44px. Where the rail's places still don't fit, the last ones go into its More item, in order (AppRail); the rail never scrolls

The mobile apps switch by the window's width too, at their own breakpoint: from 744dp, with the app's desktop mode on, they show the rail and two panes instead of the tab bar, in landscape and on tablets alike, and a thread sits beside the conversation from 1200dp. The rail is drawn as the AppRail and keeps the phone's destinations in the phone's order, except the server tab: there the server is the workspace tile in the rail's header, the one way to switch servers, as the web has one. The server's pages that the phone reaches from the server tab have their own ways in (Navigation; Raft Chat's are in Raft Chat). 744dp is an iPad mini's width in portrait, so it gets two panes; it was 840dp, Android's expanded class, until artin moved it on 2026-10-30, and the apps read it from one value (RaftScale.WideMinWidth). Keep each platform's breakpoint (768px on the web, 744dp in the apps) rather than forcing one: a breakpoint is how a layout is built, while the navigation's structure, which is the same everywhere, is in Navigation.

The layout switches by width alone, in a short window too. A phone held in landscape that is wide enough for the apps' desktop mode, such as 914×411dp, keeps the wide layout, with the rail, the top bar and the panes; its height never switches it back to the phone layout. Material's window size classes and an iPhone Max's split views in landscape do the same. The smaller headers and rail of a window shorter than 600px still apply, as in the table above (Kirby, 2026-11-24, #proj-mobile:#338, asked by sindresorhus).

With the on-screen keyboard up, the room above it is for typing. Where there is room, the top bar hides first, as a phone's tab bar does, then the conversation's header; the messages and the composer keep the rest. Where even a header, the composer and a few lines of messages don't fit above the keyboard (914×411dp leaves about 160dp), only the composer shows there, full width, over the rail, the top bar and the header; its placeholder already names the conversation. The rail isn't scrolled or moved: it is only covered while the person types. Everything comes back at once, without animation, when the keyboard goes down. The composer is never shorter than 160dp: where less is left, it still keeps 160dp and covers what is above it (mobile #5630) (Kirby, 2026-11-24, #proj-mobile:#338).

A foldable phone's outer screen keeps the phone layout, with the system's column at its side; its inner screen is the desktop mode (Page structure).

app-shell/compositions/responsive

The channel's side columns

A conversation's row is one row of columns: the conversation first, then the columns right of it. The thread, Tasks, Files, the Artifact, a profile and the channel details are sections the person places in those columns, each column a stack of them, in up to four side columns besides a column of the thread's own: the cap the side layout has had since its columns could be arranged (task #165), which the prototype kept. Before anyone moves them, the thread has a column of its own (400px), Tasks stacks over Files right of it (360px), then the Artifact (480px), then the profile (400px) with the channel details under it, sharing its column and its width; the conversation takes what they leave, at least 400px, until a seam beside it is first dragged. Each column is full height in the row with a line-seam edge on its left, flat, with no shadow. Nothing floats over the row: every column, the conversation's included, stands in it, and only the thread folds over the conversation, as a layer of it. Stacked sections share the column's height, each at least 160px; in a column too short for two, one shows at a time under a row of tabs. The rules are stdrc's (2026-11-03 and 2026-11-04, #proj-raft-ui:#189).

  • Every seam trades width between its two neighbours. Dragging it widens the column on one side by what it takes from the column on the other. When that column is down to 160px, the drag carries on into the next column further out on the same side, and so on to the row's end (the cascade). Every seam does this, the conversation's included. What a release shows is what is saved: nothing springs back. A seam dragged while a column is expanded first keeps the row as it shows and ends the expand.
  • Columns go down to 160px; their content keeps its minimum. The content's minimum is 360px for the conversation and the thread, 280px for Tasks and Files, 480px for the Artifact and 320px for a profile and for the channel details; a stack's is its widest section's. A column narrower than that keeps its content at the minimum against its start edge and clips the rest, with no scrollbar, and the content's end fades out over fade-edge into the column's own color, so the cut reads as content going on; a web view or a preview that fills the section (an Artifact, an App, a file preview, an image or a video on its own) is cut on a hard line instead, and so is the last column's content where the screen's end edge cuts it (Edges fade). The head is never clipped: it fits the column (Panel).
  • The row never rewrites a saved width. A column's saved width is the one the person left it at: it changes when they let go of a seam or move a section, and the conversation's and the thread's when the thread unfolds (below). The window, the sidebar, the thread folding, a column opening or closing and Expand change only what the row shows, so the row comes back as the person left it when the room does. With room to spare, every column grows in proportion to its saved width, so the row is always filled.
  • The sidebar's toggle is a change of the window. The sidebar is not one of the row's columns: it keeps its width, so it doesn't jump when the thread opens or folds. The row's room is the window less the rail and the sidebar, so collapsing or opening the sidebar gives the row or takes from it the sidebar's width, as a window that much wider or narrower would. The row lays itself out again by the order below, the saved widths unchanged and an expanded column still expanded.

When the row has less room than its saved widths, it gives way in this order, and widening goes back through the same steps the other way:

  1. Every column gives up, in proportion, what it has above its content's minimum. Nothing new clips yet: only a column whose saved width is already under its content's minimum, which is clipped from the start.
  2. The thread folds over the conversation, where the conversation and the thread together have less than 720px or where keeping them side by side would make another column clip: folding always comes before clipping. A thread the person drags narrower than 360px in a wide row stays a column of its own, clipped.
  3. The conversation's column, with the thread folded over it, gives way down to 360px.
  4. Every column shrinks in proportion, clipping, down to 160px.
  5. Where the row can't give every column 160px, the rightmost column becomes a tab in its left neighbour's head, in place of that head's title, then the next one, and so on. The picked tab shows its column in that place; which one is picked is not saved. The tabs take the head's whole title room and scroll sideways under the tab row's edge fade when they don't fit; a tab is never as wide as the whole row of tabs, so the next one peeks past it (Tabs).

The thread is a layer of the conversation, so it folds before anything else has to give way:

  • Folded, the thread lies over the chat in the conversation's column, and the two share that column's width. Its head starts with Back, which closes the thread and shows the chat under it, and has no × (Navigation). The conversation stays underneath, out of reach (no focus, no pointer, nothing read out), with its scroll position and draft, and comes back as it was. A thread stacked with sections leaves their column when it folds, and they stay there.
  • It stands in its own column again as soon as the room allows, with no margin to cross first. Coming back, the two share their width so that neither starts under 360px.
  • A seam dragged on the folded column changes the pair's width, shared between the conversation and the thread by their saved widths.
  • On a touch tablet (pointer: coarse) held in portrait under 1280px wide, the thread stays folded over the conversation whatever the room. A fine pointer, at any width, follows the order above.

Every column's head has Expand, right before Close, the conversation's included, except the channel details' (Panel). Expanded, the column fills the row and every other column stays at 160px, clipped, so the rest of the row is still in view as narrow strips. Expand again, or Escape, puts the row back as it was, to the pixel. One column is expanded at a time, and the thread stays folded or beside the conversation as it was when the column was expanded. In a column that stacks several regions, the one expanded also fills the column's height and the others show their heads alone, in their order, with no fold chevron and no split while it lasts; restoring puts every height and fold back as it was (stdrc, 2026-11-04, #proj-raft-ui:aedc53e1). Each of the others keeps its own Expand: pressed, it moves the expansion there in one press, and the column still fills the row. A head alone at the column's bottom edge, under a region that shows its body, draws no line along that edge; where every region in the column shows its head alone, each keeps its line (stdrc, 2026-11-04). A column opening while another is expanded puts the row back first, so the new column takes its place by the order above. Escape restores the row before it reaches anything in the column (a thread's own Escape), but a menu or a dialog that is open takes it first.

The thread, Tasks, Files, the Artifact, a profile and the channel details are moved by their grip (Drag and drop) or with Move left and Move right in the head's ⋯ (Drag and drop). The conversation doesn't move: a section dropped on it makes a new column right after the thread. A section moved out of its column alone keeps that column's width; one moved out of a stack takes its default width; the column it joins keeps its own. A new column always stands in the row, clipped or as a tab if that is what the room gives it, so no new column is refused for want of room. Nothing moves while a column is expanded, and a folded thread isn't moved: it is the conversation's layer, not a column.

On a phone the thread is a pushed page and the sections cover the conversation under its header, one at a time under the tabs, with Back. The channel details are a pushed page of their own, as the thread is (Channel). The switches are instant, not animated (Motion).

The Tasks page's row

The Tasks page lays out as a conversation's row with two columns: the list stands as the conversation and an open task as a column right of it, the way a thread stands beside a conversation (stdrc, 2026-11-10, #wg-task-v2:8a7ae237: the page's main part is like chat's, and the task works like the thread, with the same minimum width under which it stops laying itself out again). Its widths, clipping and Expand follow The channel's side columns, with these values and differences:

  • The list's content keeps 360px, a conversation's, and clips under it; its column goes down to 160px, so a drag or an expanded task leaves it in view as a strip.
  • The task's column opens at 400px and goes down to 160px, its content kept at 320px and clipped under it, a profile's values (COLUMN_BOUNDS.detail in slock). It grows until the list is at 160px, and shares its width with the profile panel (Spacing).
  • Both heads have Expand; Esc restores an expanded row before it closes the task (The open task).
  • The task never folds over the list, as a thread folds over a conversation: it is a column of the row, not a layer of the list.
  • On a phone the task is a pushed page, with Back, and the tab bar hides under it.

Rules

Switch on the region's width

Switch a layout on the width of the region it sits in, not on the window's. The same component sits in a 320px panel on a 1440px window and fills a 390px phone: the window's width says nothing about its room. A profile panel, a thread beside a conversation, a dialog and the Activity list are each narrower than the window, and a layout that asks the window still lays itself out for a screen it doesn't have: a two-column list squeezing its values into a 360px panel, a step row that wraps where it should stack.

  • Content in a panel, column or card uses a container query on that region: @container on the region, @sm:, @max-[…]: and the like on what it holds. A component that switches its own layout makes itself the container, so it works wherever it is put; it then fills its row's width, since a container can't take its width from what it holds. So give it a parent with a definite width: a block, a stretched flex or grid item, or anything with a width set. In a parent that shrinks to fit its content (inline-block, w-fit or fit-content, an absolutely positioned box or a floating layer with no width, a flex item with flex-basis: auto and no width) it collapses to no width at all, its text one word to a line. The components that make themselves containers say so on their pages.
  • Only what the window itself sizes reads the window: the page shell and its breakpoints (the table above), dialogs, sheets, toasts, the notification center, and a panel header's phone padding (on a phone the panel is the page).
  • Mouse or touch is read with pointer and hover, never with the width (Touch screens): a tablet is touch at 1024px, and a narrow desktop window still has a mouse.
  • Anything measured in script keeps measuring. Observe the element mounted now (a callback ref, not a ref read once in an effect) and measure again when it resizes and when its content changes (a ResizeObserver on it, and a MutationObserver or a layout effect for content: a ResizeObserver doesn't report text changing inside an inline element). A measurement taken once is wrong as soon as content arrives late, a font loads or the element is swapped.
  • Measure only what is laid out in the row: a script that decides a row's layout (fit, wrap, stack, icons only) reads the boxes of the row's own items, found by a selector or by leaving out anything hidden, of no size or out of flow (position: fixed or absolute), and looks through display: contents. Never every child, the first or last child, a count of children, or a Range over the contents. An open Menu or Popover puts focus guards beside its trigger, and a Select or Combobox always adds a hidden input there, each a 1px box fixed at the window's corner. Counted, they made the Tasks filters collapse to icons whenever one filter was open (stdrc, 2026-11-10, #proj-raft-ui:f9756e85). In raft-ui code, take a row's items from laidOutChildren (laid-out-children.ts), as FitToolbar, the dialog footers and BannerAction do.
  • Prefer a layout that needs no switch. A row that wraps, a grid with auto-fill, a width as min(360px, 100%) rather than 100vw less a guess at the chrome: these fit any region without asking its width.

Three causes account for the layouts that broke in narrow regions in the 2026-10 audit: a switch on the window's width, a measurement taken once, and a row with no way to give way. This section is the first two; the next is the third.

When a row runs out of room

Every row needs a way to give way. A toolbar, a header, a filter row or a list row has to fit at the narrowest width its region can take (the Activity results list goes down to 320px), in the longest translation and with the longest value it can hold (an email address has no space to break at). When it doesn't, its parts give way in a fixed order, so the person still sees every control:

  1. A secondary text button shows only its icon, with its label kept as the accessible name and the tooltip. Mark all read becomes the check-check icon button.
  2. Only then, the main control shows only its icons: a segmented control's segments, a tab's label. A segmented control does this itself with iconsOnlyBelow="auto", exactly when its labels don't fit the room it is given: each segment becomes a 32px square with its icon, its label kept as the accessible name and the tooltip (SegmentedControl).
  3. A row of controls that still doesn't fit wraps onto a second line, the controls kept whole; a segmented control that can't show its icons only scrolls sideways inside its own track rather than spilling onto its neighbor (SegmentedControl). A toolbar wraps only between its groups, a fixed gap apart, never spreading them across the line, and the page says which groups stay on the first line (FitToolbar). The toolbar over a list takes at most two lines, in its own order (The toolbar over a list). A toolbar that floats over content never wraps, because a second line would cover the content it floats over: its last step is moving actions into More instead (SelectionToolbar).
  4. Text truncates last, and only in a name or a value (a channel, a person, an email, a time), never in a control's label.
  • Never let parts overlap, and never let a control shrink below its own content: wrapping a control in min-w-0 lets its frame shrink while its content spills onto its neighbor.
  • Give every part that can give way the means to: min-w-0 and truncate on the text that may be cut, flex-wrap on a row of controls, iconsOnlyBelow="auto" on a segmented control in a row that may narrow. A part that can neither shrink, wrap nor truncate is the one that overflows.
  • Decide the switch with a container query on the row (@container, @max-[…]:), not the window width (Switch on the region's width). Where the switch is whether a part's content fits, measure the content rather than guess a width, as iconsOnlyBelow="auto" and FitToolbar do, and as a horizontal DescriptionList does when it puts its labels above their values: a width picked for one language or one count is wrong for another, and a width picked for the longest label stacks short ones that fit.
  • Don't shrink text or a control's height to make a row fit: a label too small to read, or a target too small to hit, is worse than an icon with a tooltip.

The toolbar over a list

The toolbar over a list (on a page of a list, Page structure) gives way by one rule: every line has exactly one thing that fills the rest of its width, the search field or, on a line of filters, the scrolling filter strip, and the fixed controls hang at its ends. It takes at most two lines (stdrc asked Jasper to decide from research, #proj-raft-ui:f9756e85, 2026-11-10).

  • When it fits, it is one line: the scope, the search field filling, the filters; at its end the sort, the grouping, the view switch and the add actions, the primary action last.
  • As its region narrows, its parts give way in this order, measured on the toolbar, never the window (FitToolbar):
    1. The sort, the grouping and the view switch show only their icons.
    2. A filter that shows its values as tags (TagFilter) keeps its first tag and folds the rest into +N, all the filters of the group at once. Then the filters show only their icons, also all at once, their names kept as their accessible names and tooltips. A filter's tags give way before its name, because the name says what the filter is and +N still says that more is chosen. The toolbar's items never shrink: a tag or a name is cut only within the filter's own 320px cap, the tag first.
    3. The filters move to a second line and get their labels back. That line scrolls sideways at every width, on a desktop too: the applied filters first, and Clear all, as ×, the only thing pinned at its end.
    4. A secondary action beside the primary one (Members' Invite before Create agent) shows only its icon, its name kept as its accessible name and its tooltip; then the primary action becomes +. The action people use less gives way first, as a head folds its secondary actions before its primary one (sindresorhus and Jasper, 2026-11-10, slock #14149).
    5. The scope's SegmentedControl becomes a Select whose trigger shows the current scope's name alone, the counts in its menu. The head already counts the list the scope shows (A page of a list), so a count on the trigger would say it twice (sindresorhus, Tasks on a 375px phone came 7px short with it, 2026-11-10).
    6. The search field keeps at least the room its icon and its whole placeholder take, measured in its own font, and at most 120px of it, the room of its icon and "Search…": "Search tasks" needs about 142px and is cut at 120px with an ellipsis, so the field stays in view. Measure that content, don't guess a width: a fixed 160px collapsed the Tasks search at 375px while its placeholder still fit (Jasper, 2026-11-10, #1159). The cap keeps a long placeholder, or a wide scope beside it, from costing the field: at 375px Members' "Agents" scope left the search 150px, which a 160px cap turned into an icon, and a placeholder is only a hint that goes as soon as people type (Jasper, 2026-11-10, slock #14149 and #14159). Below that, the sort, the grouping, the view switch and any secondary action move into More (⋯), the view switch as a choice of one in its menu. These are the choices of how to show the list, which people set once and keep, so they give their room to the search first; Linear keeps all of them in one Display options menu. Left on the line, the view switch held the search to 130px on Tasks at 420px and 78px on a phone (sindresorhus, 2026-11-10).
    7. Last, a search field still narrower than that becomes a search icon button at the start of the line, which opens the field in the scope's place, with More and the primary action kept at its end, until it is cleared or loses focus, as a compact iPhone toolbar does (Apple HIG, Search fields). A search that has text keeps its field.
  • Keep the first line the search field filling, with a few buttons at its end. Never leave a line of buttons at the end with nothing at its start, and never add a third line.
  • Give a toolbar with no search field (Activity, the filters of the ⌘K search) one line: the filter strip fills it and scrolls, and the sort, or an action such as Activity's Mark all read, is pinned at its end.

Why:

  • A line with nothing at its start leaves the buttons at its end hanging with nothing to follow. stdrc, 2026-11-10: sort buttons stuck to the right with nothing on the left look odd, because the filter strip spans the full width. A line that one thing fills has no empty start.
  • Shopify Polaris lays out its IndexFilters the same way: the search fills the first row, with Sort at its right, and the filters are a second row that wraps at medium widths and scrolls sideways below them, Add filter pinned at its end. GitHub Primer's filter pattern: "Put filters at the top of the content they govern and let the input use the full width available." Gmail, and Material's Android chips, put the chips in one row under the search, a single-line chip group in a horizontal scroll.
  • Two lines at most. Fluent's Toolbar "will never wrap onto a second line", and Primer's ActionBar moves what doesn't fit into an overflow menu. The toolbar over a list allows one more line, so its filters stay in sight, and stops there, because a third line pushes the list down.
  • The filters' line scrolls rather than wraps, at every width: a row of filters that wraps pushes the list down, while one that scrolls keeps every filter one swipe away (stdrc, 2026-11-10, #proj-raft-ui:f9756e85), and a narrow desktop column is no different from a phone.
  • The primary action keeps its words until the filters have their own line, because + is the least clear form of the action people came for (FitToolbar).

The first frame is the settled one

Draw the first frame the way it will stay. A frame drawn from a "not known yet" default and corrected a moment later is a flash: a row that grows and shrinks back, a panel that opens at one width and snaps to another, a card that pops in and pushes the page down. For that moment people see a layout that was never meant, and controls move under the pointer.

  • Read what decides a layout before the first paint. A remembered width, a collapsed section and a view mode go into the initial state from storage; so do the viewport, the pointer and the platform. Don't read them in an effect after mount: an effect runs after the browser has painted.
  • Measure in a layout effect and decide there, not in the next animation frame: a state set in a layout effect renders again before the browser paints. Wait for a frame only for later measurements, on a resize.
  • Keep a part's presence and size while its data reloads. When a list reloads for a new filter, keep the counts, and the controls that show only when there is a count, at their last values until the new answer arrives. Don't drop them to an empty default and bring them back. A control that goes away for that moment gives its room to its neighbors, and they lay themselves out again: a segmented control with iconsOnlyBelow="auto" shows its labels and then goes back to icons.
  • A placeholder takes the size and place of what it stands for. The fallback of a panel whose code loads lazily is that panel's own box at its remembered width, not the rest of the row. A skeleton is the size of its content (Feedback).
  • Change once, when the real answer arrives: from the old value straight to the new one, never through an empty one.

Touch screens

A touch screen has no hover, so anything that only appears on hover is out of reach there. Decide by the input, not the width: use the pointer: coarse media query, because a tablet held sideways is touch and a narrow desktop window still has a mouse.

  • With a mouse, keep a row's actions hover-only: show them while the row is hovered, holds keyboard focus or has a menu open from it, and hide them at rest. A list where every row shows its button reads as a wall of buttons and pulls the eye from the content, and the row itself is what a mouse goes for. Hidden actions stay in the tab order.
  • Show a row's hover action at rest on a touch screen when it is the row's main action: a 44px target at the end of the row, with its icon. The rest of the row makes room for it instead of sitting under it (InboxItem).
  • On a touch screen, at any width, Raft Chat makes one exception, for Mark as Done on an Activity row (Raft Chat).
  • Put every hover action in the row's press-and-hold menu as well, the same menu right-click opens on desktop, so an action is in one place on every device (Conversation).
  • A swipe may add a shortcut to the row's actions (swipe left to uncover them as buttons, with an Undo toast), but never be the only way to reach them: the press-and-hold menu has the same actions (Accessibility). A message has no swipe: in a conversation a drag left reveals the times (below).
  • Start a row's swipe only when the finger moves clearly sideways: more than twice as far across as up or down, and past the platform's touch slop. A drag that turns vertical once started goes back to scrolling the list. Otherwise people scrolling a list swipe its rows by accident.
  • Judge that past the platform's touch slop, or 10px on the web, which has none. The swipe claims the drag only at twice the slop, as the App does (2 × slop), so on the web the "twice as far" rule is read once the finger has gone 20px sideways. Leave a swipe that starts within 24px of the screen's left or right edge to the browser and the system, whose back and app-switch gestures start there.
  • Swipe left to uncover the row's actions as buttons at its end, then tap one, as in iOS Mail (stdrc, 2026-10-23). Released past half the buttons' width, or flicked left past the slop, the row stays open on them; short of that, or flicked back, it springs back. Only distance applies Done, never a flick, so a fast swipe can't finish a row by accident. Pulled past 60% of the row's width, the release applies the first action, Done, at once: the most common action stays one gesture. One row is open at a time: tapping anywhere else, scrolling the list, swiping the row back or opening another row closes it. A tap in the list while a row is open only closes it, as in iOS Mail; a tap outside the list (a toast's Undo, the tab bar) closes it and does what it does.
  • Draw the buttons at the row's end, the main action at the outer edge: Done, then the row's other actions inward (Unfollow, Mute), each 72px wide and the row's height, its 18px icon over its word in text-caption at weight 600: one short word on a colored fill has to be read at a glance. Done is solid success with ink; the others are fill-muted with foreground, so one action stands out and the rest stay quiet. Past the 60% point the Done button grows across the whole uncovered width over the others, and on Android the phone ticks once (a 10ms vibration, where the browser supports it; Haptics); back short of it, the buttons return. A pull to refresh shows armed and disarmed the same way, tick included (Navigation): the finger has to know before it lets go. The word is the action's shortest name ("Done", "Unfollow", "Mute"), since the buttons are small; the menu item keeps the full name ("Mark as Done"). The icon is the one the action has in the row's menu (check for Done, UnfollowThreadIcon for Unfollow (Icons), bell-off for Mute), so two buttons never look like one action and the menu teaches the swipe.
  • When an action takes the row out of the list (Done, Unfollow), take it out at once and give the toast an Undo, which keeps it for 8 seconds (Toast). An action with an exact opposite applies at once and Undo applies the opposite (Mute and Unmute), as the row's menu does. An action with none waits for the toast: it applies when the toast closes, when another row's action is applied (its toast replaces this one), or when the list is left or the page hidden. Undo puts the row back where it was, as it was. How Activity's Done, Unfollow and Mute behave is in Raft Chat.
  • Swipe left for the actions that deal with the row (above), all on one side: three of them don't split well over two directions (stdrc, 2026-10-23). A row whose only such action is Done shows that one button. Swipe right for the one action that only changes how the row reads, as in iOS Mail: Mark as read on an unread row, Mark as unread on a read one (artin and stdrc, 2026-10-24). It is one button at the row's start, with the menu item's icon (message-square-check, message-square-dot) over its shortest word ("Read", "Unread"), in fill-muted with foreground, and it follows the left swipe's distances: open past half its width, applied by a pull past 60%. The row stays where it is, so there is no toast and no Undo: swiping again switches it back. The 24px at the screen's left edge stays the system's back gesture. Past the 60% point its icon and word ride the row's edge, as in iOS Mail, so the finger knows the release will apply it; Android ticks as for Done. A row whose read state the swipe can't change on screen has no right swipe: a swipe there would show nothing, or could not be swiped back. Its menu keeps what it has. Which of Activity's rows these are, and how a filter keeps a row just marked read, is in Raft Chat.
  • Over swipeable rows, a sideways drag is the row's in both directions, so the list's tabs or filters don't also switch by swiping sideways there: tap them instead (artin, 2026-10-26). Two gestures on one drag would make each swipe a guess.
  • In a conversation, a sideways drag to the left is the list's: it reveals every message's time (Conversation; artin, 2026-11-04, #triage:530f8c36). It is claimed like a row's swipe: more than twice as far across as down, judged once the finger has gone 20px, and never from within 24px of either screen edge. A drag to the right does nothing there. The rows follow the finger from where it went down, so they never lag it or jump, and spring back on release. With reduced motion nothing slides: each merged message's time fades in in its empty left gutter instead, and nothing is drawn over text (a time faded in at the row's end landed on the header's time and on the text). The distances and timings are in Motion.
  • Turn the reveal off in a conversation whose tabs switch with a sideways swipe (the app's conversations that still have Chat, Tasks and Files tabs, on a server without task v2 conversations), so the two drags don't compete. Everywhere else it is on: task v2 conversations, message lists, task discussions, the assistant panel. On the web no conversation's tabs switch by swiping (they switch by tap), so it is on in every conversation.
  • Leave that drag to what it starts in: a code block, a wide table, display math, a Mermaid diagram, a field, a slider, media, and anything else that scrolls sideways and has something to scroll. A drag that starts inside a wide table stays the table's even once the table has reached its end, so a drag never turns from scrolling the table into sliding the list. A drag doesn't start the reveal while a popup is open, or once press and hold has opened the message's menu.
  • A drag the conversation claims is not a tap: it doesn't open the thread, count toward a double tap or open the menu (Taps on a touch screen).
  • Keep pinch zoom over the conversation: its rows keep touch-action: manipulation (so a double tap doesn't zoom), and the drag listens without holding up the scroll, rather than taking touch-action: pan-y, which on iOS Safari turns pinch zoom off too, since it has no pan-y pinch-zoom. The cost is that a diagonal drag may also scroll the list a little.
  • Keep secondary hover actions out of the row on a touch screen; they live in the menu, so a list stays calm.

Phone

  • Design for 390px wide, and make everything fit at 320px, the narrowest phone still in use.
  • Truncate long names. What a long value does in a form field, and what wraps instead, is in Forms.
  • Let buttons wrap to a new line. Don't shrink their text: a label too small to read is worse than a taller button.
  • Use at most 4 segments in a segmented control. When they don't fit, show only their icons, with the label kept as the accessible name (iconsOnlyBelow="auto").
  • Scroll tabs horizontally when they don't fit (Tabs).
  • The composer and the message actions on a touch screen are in Conversation.