Skip to content

Commit e18b4ed

Browse files
committed
docs: sponsor done
1 parent 163d474 commit e18b4ed

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

packages/sponsor/src/banner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ export class Banner extends HTMLElement {
3636
if (lang === 'zh-Hans') {
3737
return `
3838
<div class="sponsor-message">
39-
如果这个项目对你 <span>有帮助</span>,您可以 <button class="sponsor-btn">赞助</button> 我们来帮助项目更好地发展!
39+
如果这个项目对你 <span>有帮助</span>,您可以 <button class="sponsor-btn">赞助</button> 我们来帮助项目更好地发展!感谢你的支持 ❤️
4040
</div>
4141
`
4242
}
4343
return `
4444
<div class="sponsor-message">
45-
If this project helps you <span>in any way</span>, you can <button class="sponsor-btn">sponsor</button> us to help the project grow better!
45+
If this project <span>helps you in any way</span>, you can <button class="sponsor-btn">Sponsor</button> us to help the project grow better! Thanks for your support! ❤️
4646
</div>
4747
`
4848
}

packages/sponsor/src/styles/app.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
align-items: center;
88
width: 100%;
99
/* 改用 100% 替代 100vw */
10-
height: 72px;
10+
min-height: 72px;
1111
background: #0f172a;
1212
padding: 20px 28px;
1313
box-sizing: border-box;
1414
justify-content: space-between;
1515
gap: 5px;
16-
position: relative;
16+
position: fixed;
17+
overflow-x: hidden;
1718
z-index: 1000;
1819
pointer-events: auto;
1920
/* 确保元素可以响应点击事件 */
@@ -72,17 +73,17 @@
7273
/* mobile */
7374
@media (max-width: 768px) {
7475
.sponsor-message {
75-
line-height: 1;
76+
line-height: 1.6;
7677
font-weight: 600;
7778
}
7879

7980
.vhp-widget-sponsor-thumbnail {
8081
width: 100%;
8182
display: flex;
8283
justify-content: flex-start;
83-
display: -webkit-box;
84-
-webkit-line-clamp: 2;
85-
-webkit-box-orient: vertical;
84+
/* display: -webkit-box; */
85+
/* -webkit-line-clamp: 2;
86+
-webkit-box-orient: vertical; */
8687
overflow: hidden;
8788
text-overflow: ellipsis;
8889
white-space: normal;

0 commit comments

Comments
 (0)