Skip to content

Commit

Permalink
fix: image error ui (#2124)
Browse files Browse the repository at this point in the history
Co-authored-by: Innei <i@innei.in>
  • Loading branch information
xiangzy1 and Innei authored Dec 12, 2024
1 parent a10b78a commit 008cc98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/renderer/src/components/ui/media/SwipeMedia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ export function SwipeMedia({
)}
>
{uniqMedia?.length ? (
<div ref={emblaRef} className="w-full overflow-hidden">
<div className="flex">
<div ref={emblaRef} className="size-full overflow-hidden">
<div className="flex size-full">
{uniqMedia?.slice(0, 5).map((med, i) => (
<div className="mr-2 w-full flex-none" key={med.url}>
<div className="mr-2 size-full flex-none" key={med.url}>
<Media
className={cn(imgClassName, "size-full rounded-none")}
alt="cover"
Expand Down
2 changes: 1 addition & 1 deletion apps/renderer/src/components/ui/media/preview-media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ const FallbackableImage: FC<
)}
{isAllError && (
<div
className="center pointer-events-none absolute inset-0 flex-col gap-6 text-white/80"
className="center pointer-events-none absolute inset-0 flex-col gap-6"
onClick={stopPropagation}
tabIndex={-1}
>
Expand Down

0 comments on commit 008cc98

Please sign in to comment.