Skip to content

Commit 1c54f80

Browse files
authored
Merge pull request #1665 from recodehive/copilot/fix-author-post-changes
Fix author card styling: solid background, full-width bio text, proportional avatar, and verified badge
2 parents 011a16f + 3188419 commit 1c54f80

2 files changed

Lines changed: 21 additions & 20 deletions

File tree

src/theme/BlogPostItem/Footer/index.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,15 @@ export default function BlogPostItemFooterWrapper(props: Props): JSX.Element {
116116
</div>
117117
)}
118118
<span className={styles.verifiedBadge} aria-hidden="true">
119-
119+
<svg viewBox="0 0 12 12" width="11" height="11" fill="none" focusable="false">
120+
<path
121+
d="M2 6l3 3 5-5"
122+
stroke="currentColor"
123+
strokeWidth="1.8"
124+
strokeLinecap="round"
125+
strokeLinejoin="round"
126+
/>
127+
</svg>
120128
</span>
121129
</div>
122130
<div className={styles.authorIdentity}>

src/theme/BlogPostItem/Footer/styles.module.css

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
padding: 1.5rem;
55
border: 1px solid var(--ifm-color-emphasis-300);
66
border-radius: 16px;
7-
background: linear-gradient(
8-
90deg,
9-
color-mix(in srgb, var(--ifm-color-emphasis-100) 80%, transparent),
10-
color-mix(in srgb, var(--ifm-color-emphasis-200) 45%, transparent)
11-
);
7+
background: var(--ifm-color-emphasis-100);
128
box-sizing: border-box;
139
}
1410

@@ -25,25 +21,23 @@
2521

2622
.verifiedBadge {
2723
position: absolute;
28-
right: -1px;
29-
bottom: -1px;
30-
width: 18px;
31-
height: 18px;
24+
right: -2px;
25+
bottom: -2px;
26+
width: 20px;
27+
height: 20px;
3228
border-radius: 999px;
3329
border: 2px solid var(--ifm-background-color);
34-
background: var(--ifm-color-success);
35-
color: var(--ifm-color-white);
36-
display: grid;
37-
place-items: center;
38-
font-size: 11px;
39-
line-height: 1;
40-
font-weight: 700;
30+
background: #34D399;
31+
color: #fff;
32+
display: flex;
33+
align-items: center;
34+
justify-content: center;
4135
}
4236

4337
.authorAvatar,
4438
.authorAvatarFallback {
45-
width: 84px;
46-
height: 84px;
39+
width: 64px;
40+
height: 64px;
4741
border-radius: 50%;
4842
}
4943

@@ -99,7 +93,6 @@
9993
color: var(--ifm-color-emphasis-800);
10094
font-size: 1.1rem;
10195
line-height: 1.4;
102-
max-width: 68ch;
10396
}
10497

10598
.githubButton {

0 commit comments

Comments
 (0)