Skip to content

Commit 1fec4a6

Browse files
committed
🚸 关于界面的按钮增加tooltip
1 parent 38ba599 commit 1fec4a6

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

app/src/pages/settings/about.tsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,26 @@ export default function About() {
8787
</Button>
8888
)}
8989
<div className="flex flex-wrap justify-center gap-2">
90-
<Button onClick={() => open("https://project-graph.top")}>
90+
<Button tooltip="https://project-graph.top" onClick={() => open("https://project-graph.top")}>
9191
<BookOpen />
9292
{t("links.documentation")}
9393
</Button>
94-
<Button onClick={() => open("https://github.com/LiRenTech/project-graph")}>
94+
<Button
95+
tooltip="https://github.com/LiRenTech/project-graph"
96+
onClick={() => open("https://github.com/LiRenTech/project-graph")}
97+
>
9598
<Github />
9699
{t("links.github")}
97100
</Button>
98-
<Button onClick={() => open("https://www.bilibili.com/video/BV1hmHKeDE9D")}>
101+
<Button
102+
tooltip="https://www.bilibili.com/video/BV1hmHKeDE9D"
103+
onClick={() => open("https://www.bilibili.com/video/BV1hmHKeDE9D")}
104+
>
99105
<Bilibili />
100106
{t("links.video")}
101107
</Button>
102108
<Button
109+
tooltip="1006956704"
103110
onClick={() =>
104111
open(
105112
"https://qm.qq.com/cgi-bin/qm/qr?k=1Wskf2Y2KJz3ARpCgzi04y_p95a78Wku&jump_from=webapi&authKey=EkjB+oWihwZIfyqVsIv2dGrNv7bhSGSIULM3+ZLU2R5AVxOUKaIRwi6TKOHlT04/",
@@ -109,7 +116,10 @@ export default function About() {
109116
<QQ />
110117
{t("links.qq")}
111118
</Button>
112-
<Button onClick={() => open("https://forum.d2learn.org/category/16/project-graph")}>
119+
<Button
120+
tooltip="https://forum.d2learn.org/category/16/project-graph"
121+
onClick={() => open("https://forum.d2learn.org/category/16/project-graph")}
122+
>
113123
<MessageCircleCode />
114124
{t("links.forum")}
115125
</Button>

0 commit comments

Comments
 (0)