chore: optimize player style

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-08-06 12:12:55 +08:00
parent 3d2bf6207d
commit a4853959b0
2 changed files with 5 additions and 4 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" d="M14 5a2 2 0 1 1 4 0v14a2 2 0 1 1-4 0zM6 5a2 2 0 1 1 4 0v14a2 2 0 1 1-4 0z"/></svg>

After

Width:  |  Height:  |  Size: 237 B

@@ -108,7 +108,7 @@ const CornerPlayerImpl = () => {
return (
<>
<div className="relative flex border-y bg-theme-modal-background backdrop-blur transition-all duration-200 ease-in-out">
<div className="relative flex border-y bg-white transition-all duration-200 ease-in-out dark:bg-neutral-800">
{/* play cover */}
<div className="relative h-full">
<FeedIcon
@@ -125,10 +125,10 @@ const CornerPlayerImpl = () => {
>
<i
className={cn("size-6", {
"i-mingcute-pause-fill": playerValue.status === "playing",
"i-mingcute-loading-fill animate-spin":
"i-mgc-pause-cute-fi": playerValue.status === "playing",
"i-mgc-loading-3-cute-re animate-spin":
playerValue.status === "loading",
"i-mingcute-play-fill": playerValue.status === "paused",
"i-mgc-play-cute-fi": playerValue.status === "paused",
})}
/>
</button>