Skip to content

Tile active-state edge cue assumes inspector lives on the right #648

@srid

Description

@srid

The active canvas tile brightens its right border to full accent — a visual cue that points at the right-panel inspector. See packages/client/src/canvas/CanvasTile.tsx:73-79 (the tiledStyle() accessor sets border-right-color: var(--color-accent) when props.active).

This works today because the inspector is always docked or overlaid on the right edge. The cue would silently lie if the panel ever moves to the left, bottom, or floats as a modal.

Fix when the layout invariant is broken. The clean shape is to thread an `inspectorSide: 'right' | 'left' | 'top' | 'bottom' | 'floating' | null` value through to `CanvasTile` and pick the border-direction property from a small lookup. `TerminalCanvas` (or whatever owns the layout decision) is the natural source — the tile shouldn't infer it.

Introduced in #TBD (the right-panel/canvas-consistency PR). Both /hickey and /lowy flagged it as a deferrable layout assumption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions