Skip to content

Commit

Permalink
fix: clicking a media should mark the social media item as read (#2297)
Browse files Browse the repository at this point in the history
  • Loading branch information
GetToSet authored Dec 23, 2024
1 parent c5d4e72 commit 1b0f62f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,7 @@ const SocialMediaGallery = ({ media }: { media: MediaModel[] }) => {
className="size-28 shrink-0 data-[state=loading]:!bg-theme-placeholder-image"
loading="lazy"
proxy={proxySize}
onClick={(e) => {
e.stopPropagation()
onClick={() => {
previewMedia(
mediaList.map((m) => ({
url: m.url,
Expand Down Expand Up @@ -337,8 +336,7 @@ const SocialMediaGallery = ({ media }: { media: MediaModel[] }) => {
className="aspect-square w-full rounded object-cover"
loading="lazy"
proxy={proxySize}
onClick={(e) => {
e.stopPropagation()
onClick={() => {
previewMedia(
media.map((m) => ({
url: m.url,
Expand Down

0 comments on commit 1b0f62f

Please sign in to comment.