Repository navigation
feat(ui): full-width API Key table on settings page - #36
Merged
Merged
Conversation
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 独占整行(全宽))
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.
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 独占整行(全宽)):Changes
ui/index.html: the API Key card moved out ofcard-grid settings-gridinto its owndiv.card.api-key-cardplaced above the grid; Account / Notifications / Preferences remain in the multi-column gridui/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 existingtable-wrap; mobile media query margin tweakui/README.md: settings section notes the full-width API Key tableVerification
div.card.api-key-cardoutside the grid;settings-gridstill wraps Account / Notifications / Preferencesnode --check ui/js/app.jspasses (no JS changed)cargo testpasses (1 passed)cargo fmt --checkpasses