pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

use random group icon for collection group

Pas 2ad6b8b9 abd661e8

+10 -1
+10 -1
src/components/overlays/detailsModal/components/overlays/CollectionOverlay.tsx
··· 6 6 import { IconPatch } from "@/components/buttons/IconPatch"; 7 7 import { Icon, Icons } from "@/components/Icon"; 8 8 import { MediaCard } from "@/components/media/MediaCard"; 9 + import { UserIcons } from "@/components/UserIcon"; 9 10 import { Flare } from "@/components/utils/Flare"; 10 11 import { useIsMobile } from "@/hooks/useIsMobile"; 11 12 import { CarouselNavButtons } from "@/pages/discover/components/CarouselNavButtons"; ··· 168 169 const handleBookmarkCollection = () => { 169 170 if (!collection?.parts) return; 170 171 172 + // Get all available user icons and select one randomly 173 + const userIconList = Object.values(UserIcons); 174 + const randomIcon = 175 + userIconList[Math.floor(Math.random() * userIconList.length)]; 176 + 177 + // Format the group name with the random icon 178 + const groupName = `[${randomIcon}]${collectionName}`; 179 + 171 180 collection.parts.forEach((movie) => { 172 181 const year = movie.release_date 173 182 ? new Date(movie.release_date).getFullYear() ··· 184 193 poster: getMediaPoster(movie.poster_path) || "/placeholder.png", 185 194 }; 186 195 187 - addBookmarkWithGroups(meta, [collectionName]); 196 + addBookmarkWithGroups(meta, [groupName]); 188 197 }); 189 198 }; 190 199