Skip to content

Commit 533dbcd

Browse files
committed
Fix linkedin link for mobile
1 parent 9d12af9 commit 533dbcd

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/app/styles/contact-card.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@
2525
text-decoration: underline;
2626
color: red;
2727
}
28+
29+
@media (max-width: 500px) {
30+
.linkHead {
31+
display: none;
32+
}
33+
}

src/components/articles/contact-card.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ export default function ContactCard(): ReactNode {
3737
href="https://www.linkedin.com/in/liqiangsprofile/"
3838
rel="noreferrer"
3939
>
40-
<span>https://www.linkedin.com/in/liqiangsprofile/</span>
40+
<span className={styles.linkHead}>https://www.linkedin.com/in/</span>
41+
<span>liqiangsprofile</span>
4142
<i
4243
className="fas fa-external-link-alt"
4344
style={{ fontSize: '0.8em' }}

0 commit comments

Comments
 (0)