Skip to content

Center Copilot access messages in Settings - #23205

Merged
sergiou87 merged 1 commit into
developmentfrom
center-copilot-access
Nov 19, 2026
Merged

sergiou87 merged 1 commit into
developmentfrom
center-copilot-access

Conversation

@sergiou87

@sergiou87 sergiou87 commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

No linked issue.

Description

  • The layout refactor in Add Copilot usage info #22557 moved padding into a scroll container that the Copilot access screen does not use, leaving its message and button flush against the top-left edge.
  • Give the access screen its own padded layout. Center the message and action, and keep the content scrollable when space is limited. Model and account settings are unchanged.
  • To reproduce, sign in with a Copilot license but disable Copilot in GitHub Desktop, then open Settings → Copilot.
  • npm test -- app/test/unit/ui/copilot-preferences-test.tsx (48 passed) and tsc --noEmit -p tsconfig.json (passed) on 3bff961dd9. The earlier full unit run had five failures in Git tests outside the changed UI; four reproduced in a focused rerun.

Screenshots

Captured in an isolated macOS Electron window with DevTools closed and a simulated Copilot-disabled account. The after image applies the markup and stylesheet changes in 3bff961dd9 to the same renderer.

Before

Copilot access message and button flush against the top-left of the Settings pane

After

Copilot access message and button centered in the Settings pane

Release notes

Notes: [Fixed] Center access messages and buttons in Copilot settings.

Team-authored review

Evidence: Screenshots and validation under Description.

Review path: Lightweight review. Layout only; no changes to access checks or account behavior.

The July settings layout refactor moved padding into a scroll container the access states do not use. Give those states a dedicated padded, scrollable layout so their message and action sit in the center of the pane.
Copilot AI balanced review requested due to automatic review settings November 19, 2026 09:17
@sergiou87
sergiou87 marked this pull request as ready for review November 19, 2026 09:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified in the Copilot access-screen layout changes.

No open issues 🎉

What changed in this PR

Restores spacing for Copilot access messages after the layout refactor in #22557, without changing access checks, model settings, or account behavior.

Changes:

  • Gives the access screen a dedicated layout with padding and centered content.
  • Keeps access messages and actions scrollable when space is limited.
File Description
app/​styles/​ui/​_copilot-preferences.scss Adds padding, centering, and vertical scrolling for the access screen.
app/​src/​ui/​preferences/​copilot.tsx Applies the dedicated access-state class to the message container.

Review effort: Balanced

@sergiou87
sergiou87 requested a review from a team as a code owner November 19, 2026 09:18
@sergiou87
sergiou87 requested a review from BagToad November 19, 2026 09:18
@sergiou87
sergiou87 enabled auto-merge November 19, 2026 09:19
@sergiou87
sergiou87 requested review from niik and tidy-dev November 19, 2026 09:19
@sergiou87
sergiou87 merged commit 4879c62 into development Nov 19, 2026
32 checks passed
@sergiou87
sergiou87 deleted the center-copilot-access branch November 19, 2026 10:24
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.

4 participants