Skip to content

Conversation

@Savvythelegend
Copy link
Member

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

  • Bug fix (non-breaking change that fixes an issue)
  • UI/UX improvement (design, layout, or styling updates)

Changes Made

  • Reapplied missing CSS rules for author profile layout.
  • Adjusted margins and positioning to prevent overlap with name and bio text.
  • Resolved CSS conflicts with the blog page components.
  • Verified consistency across different author pages and blog entries.

Dependencies

No new dependencies added or modified.


Checklist

  • My code follows the style guidelines of this project.
  • I have tested my changes across major browsers and devices.
  • My changes do not generate new console warnings or errors.
  • I ran npm run build and attached screenshots in this PR.
  • This is already an assigned issue to me, not an unassigned issue.

@vercel
Copy link
Contributor

vercel bot commented Oct 28, 2025

@Savvythelegend is attempting to deploy a commit to the recode Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

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 👇🏻

  1. Get free Consultation use code recode50 to get free: Mentorship for free.

  2. Get the Ebook for free use code recode at checkout: Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@github-actions github-actions bot added hacktoberfest-accepted recode this is label for leaderboard level 1 10 points labels Oct 28, 2025
@github-actions github-actions bot added this to the recode:launch 3.0 milestone Oct 28, 2025
@github-actions
Copy link

✅ Synchronized metadata from Issue #1054:

  • Labels: level 1, recode, hacktoberfest-accepted
  • Milestone: recode:launch 3.0

}

/* Fix for author page avatar overlap - working solution */
.avatar.margin-bottom--sm.author-as-h1_iMAg {
Copy link
Contributor

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.

@vercel
Copy link
Contributor

vercel bot commented Oct 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
recode-website Ready Ready Preview Comment Oct 28, 2025 0:14am

@sanjay-kv sanjay-kv merged commit 5defeef into recodehive:main Oct 28, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted level 1 10 points recode this is label for leaderboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞[Bug]: Author Profile UI Overlap and Messed-Up Structure on Blog/Author Page

2 participants