- 
                Notifications
    
You must be signed in to change notification settings  - Fork 132
 
fix(ui): reapply author profile CSS patches and resolve blog page overlap conflicts #1102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ui): reapply author profile CSS patches and resolve blog page overlap conflicts #1102
Conversation
| 
           @Savvythelegend is attempting to deploy a commit to the recode Team on Vercel. A member of the Team first needs to authorize it.  | 
    
| 
           Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs. In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊 Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv. We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰 🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨ 📚Your perks for contribution to this community 👇🏻 
 If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊  | 
    
| 
           ✅ Synchronized metadata from Issue #1054: 
  | 
    
| } | ||
| 
               | 
          ||
| /* Fix for author page avatar overlap - working solution */ | ||
| .avatar.margin-bottom--sm.author-as-h1_iMAg { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CSS class selector .avatar.margin-bottom--sm.author-as-h1_iMAg appears nowhere in the codebase and will never match any HTML elements, making this fix ineffective.
View Details
📝 Patch Details
diff --git a/src/css/custom.css b/src/css/custom.css
index 52d8109..03a8931 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -1774,8 +1774,8 @@ html[data-theme="light"] [data-slot="card-header"].bg-gradient-to-br {
   }
 }
 
-/* Fix for author page avatar overlap - working solution */
-.avatar.margin-bottom--sm.author-as-h1_iMAg {
+/* Fix for author page avatar overlap */
+.avatar.margin-bottom--sm {
   width: 150px !important;
   height: 150px !important;
   border-radius: 50% !important;
@@ -1783,13 +1783,6 @@ html[data-theme="light"] [data-slot="card-header"].bg-gradient-to-br {
 }
 
 
-.avatar.margin-bottom--sm {
-  width: auto !important;
-  height: auto !important;
-  border: none !important;
-}
-
-
 .blog-page .margin-bottom--xl {
   margin-bottom: 0rem !important;
 }
\ No newline at end of file
Analysis
Ineffective CSS selector using non-existent class author-as-h1_iMAg
What fails: CSS rule .avatar.margin-bottom--sm.author-as-h1_iMAg on line 1778 of src/css/custom.css never matches any DOM elements because the class author-as-h1_iMAg does not exist in the rendered HTML
How to reproduce:
# Build the Docusaurus site and inspect author avatar elements
npm install && npm run build
# Check rendered HTML in build/blog/git-coding-agent/index.html
# Author avatar only has classes: "avatar margin-bottom--sm" (without author-as-h1_iMAg)Result: CSS styling for author avatars (150px sizing, border-radius) is never applied, leaving the original overlap issue unresolved
Expected: CSS selectors should match actual HTML structure. Docusaurus generates <div class="avatar margin-bottom--sm"> for blog author avatars, not author-as-h1_iMAg
Fix removes the non-existent class from the selector so the CSS rule actually applies to the intended elements.
| 
           The latest updates on your projects. Learn more about Vercel for GitHub. 
  | 
    
This PR reintroduces the previous CSS patches for the author profile section that were accidentally overridden by subsequent PRs.
The issue caused overlapping of the author image, name, and bio on blog and author pages.
The layout has been adjusted to restore proper alignment and prevent CSS conflicts with blog templates.
Fixes #1054
Type of Change
Changes Made
Dependencies
No new dependencies added or modified.
Checklist
npm run buildand attached screenshots in this PR.