Repository navigation
Keep an AI account's lines in its name's column, clear of its controls - #996
Merged
Merged
Conversation
An AI accounts row put its state, its action and its menu in three fixed columns on the name's line, but ran the lines under the name across the whole row, under those columns. A description such as "Use OpenAI models with your ChatGPT plan." sat right under "Not connected" and the row's Sign in, so the columns had nothing between them, and a 24px or 28px control centred on a 20px line reached into the line below it. The row is now laid out as a table's: the lines stay in the name's column and wrap there, the columns are 16px apart, and the name's line is as tall as the controls. Where the card is narrower than 38rem, where the name's column beside the three would be too narrow to read, the state moves under the name and the lines run under the action and menu columns, which then hold only the name's line. Co-authored-by: Alex Lavaee <lavaman131@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the AI accounts page a row's lines ran under its state, action and ⋯ columns: "Use OpenAI models with your ChatGPT plan." sat right under "Not connected" and Sign in, so the columns had no separation, and a control centred on the 20px name line reached into the line below.
This follows how settings tables such as GitHub's and Vercel's lay out an item: a text column with its description, then fixed status and action columns that never share space with it.
Verification:
bun run fix,bun run ci, the AI accounts and design-audit unit tests (74 pass),e2e/ai-accounts.e2e.ts(14 pass), and the design suite's contrast, responsive, touch-target and specimen specs. Before and after screenshots of the design audit's AI accounts plate at 1280 and 760 were checked.