Skip to content

Fix profile header alignment when no extra details are shown - #446

Open
bubblegump30 wants to merge 1 commit into
NotValra:mainfrom
bubblegump30:fix/profile-header-extra-content-spacing
Open

bubblegump30 wants to merge 1 commit into
NotValra:mainfrom
bubblegump30:fix/profile-header-extra-content-spacing

Conversation

@bubblegump30

Copy link
Copy Markdown

Fixes #359.

Reproduction

Enable Site Fixes and “Keep profile usernames spaced from the top.” Open a profile whose header has no Profile Views pill or other extra details below the username. The display name and username sit above the vertical center of the avatar.

Cause and fix

The spacing rule stretched and padded the name column on every matching profile. The setting now enables a stylesheet rule that applies the existing spacing only when the column contains a Profile Views or customization pill, a ready subplace chip or row, or the RoPro reputation element. The browser updates the spacing as these elements appear or disappear.

Verification

  • Built the Chromium and Firefox extensions with npm run build.
  • Ran a headless Chromium fixture against the compiled stylesheet for plain headers, the supported additions, a pending subplace chip, and the spacing setting turned off.
  • Checked the diff for whitespace errors and compared ESLint findings against main. The change removes two dynamic-style lint findings.
  • Live Roblox profile verification is pending.

AI disclosure: Codex traced the cause, wrote the patch and browser fixture, inspected the diff, and ran the checks above.

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.

[Bug] Profile Header Details Off-Center

1 participant