Repository navigation
Fix profile header alignment when no extra details are shown - #446
Open
bubblegump30 wants to merge 1 commit into
Open
bubblegump30 wants to merge 1 commit into
bubblegump30 wants to merge 1 commit into
Conversation
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.
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
npm run build.main. The change removes two dynamic-style lint findings.AI disclosure: Codex traced the cause, wrote the patch and browser fixture, inspected the diff, and ran the checks above.