# Notes for agents ## UI - Avoid horizontal scrolling. A sideways trackpad swipe over content that scrolls horizontally can trigger the browser's history back/forward gesture instead, navigating away by accident. Lay content out to fit the width (wrap, stack, or switch layout at a breakpoint) rather than adding `overflow-x: auto`. - Don't join inline items with a dot connector (`a · b · c`). Separate them with spacing (`gap`), grouping with wider gaps between groups, or with structure (a second line, a smaller or muted style). The `···` that marks collapsed lines in diffs is not a separator and stays. - A control that switches between views or states (a segmented toggle, tabs) must not move when it's used: keep its position and its size the same in every state it switches between. Put it first, before anything that only exists in some of those states, and give options fixed or equal widths rather than letting their labels resize the group.