mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
💩 调整背景,对闲云名片打补丁
This commit is contained in:
@@ -128,8 +128,14 @@ function parseNamecard(desc: string): string {
|
|||||||
function parseDesc(desc: string, inQuote: boolean = false): string[] {
|
function parseDesc(desc: string, inQuote: boolean = false): string[] {
|
||||||
let res = desc.replace(/。/g, "。\n");
|
let res = desc.replace(/。/g, "。\n");
|
||||||
res = res.replace(/;/g, ";\n");
|
res = res.replace(/;/g, ";\n");
|
||||||
res = res.replace(/:/g, ":\n");
|
// todo 正则优化
|
||||||
res = res.replace(/?/g, "?\n");
|
if (props?.data?.index !== 187) {
|
||||||
|
res = res.replace(/:/g, ":\n");
|
||||||
|
res = res.replace(/?/g, "?\n");
|
||||||
|
} else {
|
||||||
|
res = res.replace("时候,", "时候,\n");
|
||||||
|
res = res.replace("。\n」", "。」");
|
||||||
|
}
|
||||||
if (!desc.includes("!」")) {
|
if (!desc.includes("!」")) {
|
||||||
res = res.replace(/!/g, "!\n");
|
res = res.replace(/!/g, "!\n");
|
||||||
}
|
}
|
||||||
@@ -187,7 +193,6 @@ async function shareNamecard(): Promise<void> {
|
|||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
border: 1px solid var(--tgc-white-1);
|
border: 1px solid var(--tgc-white-1);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
backdrop-filter: blur(20px);
|
|
||||||
color: var(--tgc-white-1);
|
color: var(--tgc-white-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -202,10 +207,15 @@ async function shareNamecard(): Promise<void> {
|
|||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background: var(--common-shadow-t-1);
|
backdrop-filter: blur(5px);
|
||||||
|
background: rgb(0 0 0 / 25%);
|
||||||
color: var(--tgc-white-1);
|
color: var(--tgc-white-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dark .ton-content {
|
||||||
|
background: rgb(0 0 0/ 50%);
|
||||||
|
}
|
||||||
|
|
||||||
.ton-content :first-child {
|
.ton-content :first-child {
|
||||||
font-family: var(--font-title);
|
font-family: var(--font-title);
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
@@ -229,7 +239,6 @@ async function shareNamecard(): Promise<void> {
|
|||||||
bottom: 10px;
|
bottom: 10px;
|
||||||
border: 1px solid var(--tgc-white-1);
|
border: 1px solid var(--tgc-white-1);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
backdrop-filter: blur(5px);
|
|
||||||
color: var(--tgc-white-1);
|
color: var(--tgc-white-1);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user