Skip to content

feat(ui): full-width API Key table on settings page - #36

Merged
argszero merged 1 commit into
mainfrom
feat/ui-api-key-fullwidth
Aug 17, 2026
Merged

argszero merged 1 commit into
mainfrom
feat/ui-api-key-fullwidth

Conversation

@argszero

Copy link
Copy Markdown
Owner

Summary

Give the Settings page's API Key table its own full-width row instead of sharing narrow card-grid columns with Account / Notifications / Preferences (which squeezed the table columns together).

Rant reference

Host instruction (rant 2026-08-17T11:01:02, 设置页 API Key 独占整行(全宽)):

宿主指出:设置页 API Key 区太窄(与账户/通知/偏好挤在 card-grid 多列里),表格字段挤到一起。需让 API Key 表格独占整行(全宽布局)。

Changes

  • ui/index.html: the API Key card moved out of card-grid settings-grid into its own div.card.api-key-card placed above the grid; Account / Notifications / Preferences remain in the multi-column grid
  • ui/css/style.css: new .api-key-card (width 100%, margin-top 16px) + .api-key-card .table th/td { white-space: nowrap } with horizontal scroll via the existing table-wrap; mobile media query margin tweak
  • ui/README.md: settings section notes the full-width API Key table
  • Functionality untouched (search / generate / rename / delete / copy all unchanged)

Verification

  • index.html: API Key card is div.card.api-key-card outside the grid; settings-grid still wraps Account / Notifications / Preferences
  • node --check ui/js/app.js passes (no JS changed)
  • cargo test passes (1 passed)
  • cargo fmt --check passes

The API Key card shared narrow card-grid columns with Account /
Notifications / Preferences, squeezing the table columns. Move the API
Key card out of the settings grid into its own full-width container
(.api-key-card, width 100%) above the remaining cards; add
white-space: nowrap on its table cells with horizontal scroll
(table-wrap) so columns keep readable width. Account / Notifications /
Preferences stay in the multi-column grid. Functionality (search /
generate / rename / delete / copy) unchanged.

Refs: rant 2026-08-17T11:01:02 (设置页 API Key 独占整行(全宽))
@argszero
argszero merged commit 99fc522 into main Aug 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant