Skip to content

Commit 50d67ae

Browse files
authored
Merge pull request #1584 from saurabhhhcodes/fix/article-author-format-1581
fix: format blog author separators
2 parents 130b123 + 3e3c382 commit 50d67ae

4 files changed

Lines changed: 32 additions & 11 deletions

File tree

src/components/blogCarousel/blogCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const BlogCard = ({
118118
{authorProfiles.map((author, authorIndex) => (
119119
<span key={author.id} className="author-item">
120120
{authorIndex > 0 && (
121-
<span className="author-separator">&</span>
121+
<span className="author-separator">,</span>
122122
)}
123123
<Link
124124
href={author.githubUrl}

src/components/blogCarousel/blogCarousel.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,11 @@
299299
.author-name-group {
300300
display: flex;
301301
align-items: center;
302-
flex-wrap: wrap;
302+
flex-wrap: nowrap;
303303
gap: 6px;
304304
min-width: 0;
305+
overflow: hidden;
306+
white-space: nowrap;
305307
}
306308

307309
/* Stacked avatars */
@@ -366,6 +368,10 @@
366368
.author-link {
367369
display: inline-flex;
368370
align-items: center;
371+
min-width: 0;
372+
max-width: 100%;
373+
overflow: hidden;
374+
text-overflow: ellipsis;
369375
position: relative;
370376
text-decoration: none;
371377
}

src/pages/blogs/blogs-new.css

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -943,8 +943,16 @@
943943
padding: 36px;
944944
text-align: center;
945945
background:
946-
linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9)),
947-
radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.12), transparent 36%),
946+
linear-gradient(
947+
135deg,
948+
rgba(255, 255, 255, 0.95),
949+
rgba(248, 250, 252, 0.9)
950+
),
951+
radial-gradient(
952+
circle at 15% 20%,
953+
rgba(99, 102, 241, 0.12),
954+
transparent 36%
955+
),
948956
radial-gradient(circle at 85% 0%, rgba(236, 72, 153, 0.1), transparent 34%);
949957
border: 1px solid rgba(99, 102, 241, 0.12);
950958
border-radius: 24px;
@@ -956,7 +964,11 @@
956964
[data-theme="dark"] .blog-search-panel {
957965
background:
958966
linear-gradient(135deg, rgba(36, 37, 38, 0.96), rgba(26, 32, 44, 0.94)),
959-
radial-gradient(circle at 15% 20%, rgba(167, 139, 250, 0.16), transparent 36%),
967+
radial-gradient(
968+
circle at 15% 20%,
969+
rgba(167, 139, 250, 0.16),
970+
transparent 36%
971+
),
960972
radial-gradient(circle at 85% 0%, rgba(236, 72, 153, 0.1), transparent 34%);
961973
border-color: rgba(167, 139, 250, 0.2);
962974
box-shadow:
@@ -1768,7 +1780,6 @@
17681780
margin-bottom: 12px;
17691781
}
17701782

1771-
17721783
.card-title-link {
17731784
color: inherit;
17741785
text-decoration: none;
@@ -1830,9 +1841,11 @@
18301841
.author-name-group {
18311842
display: flex;
18321843
align-items: center;
1833-
flex-wrap: wrap;
1844+
flex-wrap: nowrap;
18341845
gap: 6px;
18351846
min-width: 0;
1847+
overflow: hidden;
1848+
white-space: nowrap;
18361849
}
18371850

18381851
.author-item {
@@ -1850,6 +1863,10 @@
18501863
.author-link {
18511864
display: inline-flex;
18521865
align-items: center;
1866+
min-width: 0;
1867+
max-width: 100%;
1868+
overflow: hidden;
1869+
text-overflow: ellipsis;
18531870
position: relative;
18541871
text-decoration: none;
18551872
}

src/pages/blogs/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ export default function Blogs() {
9090
<h1 className="blog-main-title">
9191
Engineering <span className="gradient-text">uptime</span>{" "}
9292
</h1>
93-
<p className="blog-main-subtitle">
94-
blog by recode community.
95-
</p>
93+
<p className="blog-main-subtitle">blog by recode community.</p>
9694
</div>
9795
</div>
9896
</section>
@@ -251,7 +249,7 @@ const BlogCard = ({ blog }: { blog: (typeof blogs)[number] }) => {
251249
{authors.map((author, authorIndex) => (
252250
<span key={author.id} className="author-item">
253251
{authorIndex > 0 && (
254-
<span className="author-separator">&</span>
252+
<span className="author-separator">,</span>
255253
)}
256254
<Link
257255
href={author.githubUrl}

0 commit comments

Comments
 (0)