Skip to content

Commit fdce49e

Browse files
committed
fix: 悬浮球显示'交流群'文字
1 parent 2f79d78 commit fdce49e

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/components/WechatFloat.css

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
}
77

88
.wechat-icon {
9-
width: 50px;
10-
height: 50px;
9+
width: 56px;
10+
height: 56px;
1111
background: #07c160;
1212
border-radius: 50%;
1313
display: flex;
1414
align-items: center;
1515
justify-content: center;
16-
font-size: 24px;
1716
cursor: pointer;
1817
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
1918
transition: transform 0.2s, box-shadow 0.2s;
@@ -24,6 +23,14 @@
2423
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
2524
}
2625

26+
.wechat-icon-text {
27+
color: white;
28+
font-size: 12px;
29+
font-weight: bold;
30+
text-align: center;
31+
line-height: 1.2;
32+
}
33+
2734
.wechat-popup {
2835
position: absolute;
2936
bottom: 60px;

src/components/WechatFloat.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ export default function WechatFloat() {
1111
onMouseLeave={() => setIsHovered(false)}
1212
>
1313
<div className="wechat-icon">
14-
<svg viewBox="0 0 24 24" width="28" height="28" fill="white">
15-
<path d="M8.5 11.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm-6.5 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM9 3C4.58 3 1 6.13 1 10c0 2.17 1.16 4.1 3 5.38V19l3.5-2.1c.5.07 1 .1 1.5.1 4.42 0 8-3.13 8-7s-3.58-7-8-7zm6.5 16.5l2.5 1.5v-2.62c1.84-1.28 3-3.21 3-5.38 0-2.17-1.16-4.1-3-5.38V5c2.76 1.5 4.5 4.5 4.5 8 0 5-4.03 9-9 9-.5 0-1-.03-1.5-.1l3-1.9z"/>
16-
</svg>
14+
<span className="wechat-icon-text">交流群</span>
1715
</div>
1816
{isHovered && (
1917
<div className="wechat-popup">

0 commit comments

Comments
 (0)