Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,27 @@ html[data-theme="light"] [data-slot="card-header"].bg-gradient-to-br {
}

@media screen and (max-width: 1110px) {
.navbar__items{
.navbar__items {
gap: 0.1rem !important;
}
}

/* 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.

width: 150px !important;
height: 150px !important;
border-radius: 50% !important;
border: none !important;
}


.avatar.margin-bottom--sm {
width: auto !important;
height: auto !important;
border: none !important;
}


.blog-page .margin-bottom--xl {
margin-bottom: 0rem !important;
}
Loading