Skip to content

Commit 237a016

Browse files
committed
Fix icons color
1 parent 7bac416 commit 237a016

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

web/src/components/TemplateList.astro

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
const { name } = Astro.props;
33
4-
const lists: Record<string, { id: number; label: string }[]> = {
4+
const lists: Record<string, { id: number | string; label: string }[]> = {
55
"message-types": [
66
{ id: 0, label: "normal message" },
77
{ id: 1, label: "action message (/me)" },
@@ -46,12 +46,10 @@ const icon = icons[name] || "○";
4646
}
4747

4848
:root[data-theme="light"] .template-list li::before {
49-
filter: sepia(1) hue-rotate(-50deg) saturate(5) brightness(1.1)
50-
drop-shadow(0 0 1px black);
49+
filter: brightness(1.1) drop-shadow(0 0 1px black);
5150
}
5251

5352
:root[data-theme="dark"] .template-list li::before {
54-
filter: sepia(1) hue-rotate(-50deg) saturate(5) brightness(0.8)
55-
drop-shadow(0 0 1px white);
53+
filter: brightness(0.8) drop-shadow(0 0 1px white);
5654
}
5755
</style>

0 commit comments

Comments
 (0)