chore: change owned feed icon

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-08-06 12:00:01 +08:00
parent d9235f4e68
commit 3d2bf6207d
4 changed files with 5 additions and 12 deletions
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="#fff" fill-opacity=".01" d="M24 0v24H0V0z"/><path fill="#10161F" fill-rule="evenodd" d="M20.355 3.82c.442.868-.213 1.685-.701 2.356l-1.99 2.736c-.423.582-.424.593 0 1.176l1.99 2.736c.488.672 1.143 1.488.7 2.357-.442.87-1.484.82-2.318.82H6v5a1 1 0 0 1-2 0V9.928c0-1.354 0-2.47.119-3.354.125-.928.396-1.747 1.053-2.403.656-.656 1.475-.928 2.403-1.053C8.459 3 9.575 3 10.929 3h7.107c.834 0 1.876-.05 2.319.82" clip-rule="evenodd"/></svg>

After

Width:  |  Height:  |  Size: 521 B

@@ -1,7 +0,0 @@
import type { SVGProps } from "react"
export function PhCrown(props: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 256 256" {...props}><path fill="currentColor" d="M248 80a28 28 0 1 0-51.12 15.77l-26.79 33L146 73.4a28 28 0 1 0-36.06 0l-24.03 55.34l-26.79-33a28 28 0 1 0-26.6 12L47 194.63A16 16 0 0 0 62.78 208h130.44A16 16 0 0 0 209 194.63l14.47-86.85A28 28 0 0 0 248 80M128 40a12 12 0 1 1-12 12a12 12 0 0 1 12-12M24 80a12 12 0 1 1 12 12a12 12 0 0 1-12-12m169.22 112H62.78l-13.92-83.48L81.79 149a8 8 0 0 0 6.21 3a8 8 0 0 0 1.08-.07a8 8 0 0 0 6.26-4.74l29.3-67.4a27 27 0 0 0 6.72 0l29.3 67.4a8 8 0 0 0 6.26 4.74a8 8 0 0 0 1.08.07a8 8 0 0 0 6.21-3l32.93-40.52ZM220 92a12 12 0 1 1 12-12a12 12 0 0 1-12 12" /></svg>
)
}
@@ -71,10 +71,10 @@
}
.highlighted {
@apply bg-accent/20;
@apply bg-theme-accent/20;
&::before {
@apply bg-accent;
@apply bg-theme-accent;
}
}
}
@@ -1,7 +1,6 @@
import { getMainContainerElement } from "@renderer/atoms/dom"
import { useMe } from "@renderer/atoms/user"
import { FeedIcon } from "@renderer/components/feed-icon"
import { PhCrown } from "@renderer/components/icons/crown"
import {
Tooltip,
TooltipContent,
@@ -128,8 +127,8 @@ const FeedItemImpl = ({
</div>
{isOwned && (
<Tooltip delayDuration={300}>
<TooltipTrigger>
<PhCrown className="ml-1 shrink-0 text-base" />
<TooltipTrigger asChild>
<i className="i-mgc-flag-1-cute-fi ml-1 shrink-0 text-base text-theme-accent" />
</TooltipTrigger>
<TooltipPortal>