Skip to content

Commit f8b5866

Browse files
committed
fix: swipe media navigation button color style
- Enhanced button styles in SwipeMedia component to use bg-material-medium and border for better visual consistency. - Updated icon classes to use MingCute's left and right line icons for improved clarity. Signed-off-by: Innei <tukon479@gmail.com>
1 parent 8a450c5 commit f8b5866

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/desktop/layer/renderer/src/components/ui/media/SwipeMedia.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,21 @@ export function SwipeMedia({
100100
{emblaApi?.canScrollPrev() && (
101101
<button
102102
type="button"
103-
className="center absolute left-2 top-1/2 size-6 -translate-y-1/2 rounded-full bg-gray-800 text-white opacity-0 duration-200 group-hover:opacity-100"
103+
className="center bg-material-medium border-border backdrop-blur-background absolute left-2 top-1/2 size-8 -translate-y-1/2 rounded-full border text-white opacity-0 duration-200 group-hover:opacity-100"
104104
onClick={scrollPrev}
105105
onDoubleClick={stopPropagation}
106106
>
107-
<i className="i-mingcute-arrow-left-line" />
107+
<i className="i-mingcute-left-line" />
108108
</button>
109109
)}
110110
{emblaApi?.canScrollNext() && (
111111
<button
112112
type="button"
113-
className="center absolute right-2 top-1/2 size-6 -translate-y-1/2 rounded-full bg-gray-800 text-white opacity-0 duration-200 group-hover:opacity-100"
113+
className="center bg-material-medium border-border backdrop-blur-background absolute right-2 top-1/2 size-8 -translate-y-1/2 rounded-full border text-white opacity-0 duration-200 group-hover:opacity-100"
114114
onClick={scrollNext}
115115
onDoubleClick={stopPropagation}
116116
>
117-
<i className="i-mingcute-arrow-right-line" />
117+
<i className="i-mingcute-right-line" />
118118
</button>
119119
)}
120120
</div>

0 commit comments

Comments
 (0)