grain.social is a photo sharing platform built on atproto.

fix: gallery favorite button styles returned after fav were incorrect

Changed files
+2 -2
src
+1 -1
src/components/FavoriteButton.tsx
··· 16 16 }>) { 17 17 const variantClass = variant === "icon-button" 18 18 ? "flex w-fit items-center gap-2 m-0 p-0 mt-2" 19 - : undefined; 19 + : "flex-1"; 20 20 const galleryRkey = new AtUri(gallery.uri).rkey; 21 21 const favRrkey = gallery.viewer?.fav 22 22 ? new AtUri(gallery.viewer.fav).rkey
+1 -1
src/components/GalleryPage.tsx
··· 42 42 {!isCreator 43 43 ? ( 44 44 <div class="flex self-start gap-2 flex-row w-full sm:w-fit"> 45 - <FavoriteButton class="flex-1" gallery={gallery} /> 45 + <FavoriteButton gallery={gallery} /> 46 46 <CommentsButton class="flex-1" gallery={gallery} /> 47 47 <ShareGalleryDialogButton class="flex-1" gallery={gallery} /> 48 48 </div>