React18 #23
|
@ -120,7 +120,7 @@ export function PreviewCard(props: Immutable<Props>): JSX.Element {
|
|||
{thumbnail && stackNumber > 0 && (
|
||||
<>
|
||||
<Img
|
||||
className="opacity-30 rounded-t-md overflow-hidden absolute transition-[top_transform]
|
||||
className="opacity-30 rounded-md overflow-hidden absolute transition-[top_transform]
|
||||
-top-[var(--stacked-top)*1.5rem]
|
||||
scale-[calc(1-0.15*var(--stacked-top))]"
|
||||
image={thumbnail}
|
||||
|
@ -128,7 +128,7 @@ export function PreviewCard(props: Immutable<Props>): JSX.Element {
|
|||
/>
|
||||
|
||||
<div
|
||||
className="bg-light rounded-t-md overflow-hidden absolute transition-[top_transform]
|
||||
className="bg-light rounded-md overflow-hidden absolute transition-[top_transform]
|
||||
-top-[var(--stacked-top)*0.7rem]
|
||||
scale-[calc(1-0.06*var(--stacked-top))]"
|
||||
>
|
||||
|
|
|
@ -242,11 +242,12 @@ function getGroups(
|
|||
items.map((item) => {
|
||||
const type =
|
||||
item.attributes?.type?.data?.attributes?.titles?.[0]?.title ??
|
||||
prettySlug(item.attributes?.type?.data?.attributes?.slug);
|
||||
item.attributes?.type?.data?.attributes?.slug
|
||||
? prettySlug(item.attributes.type.data.attributes.slug)
|
||||
: langui.no_type;
|
||||
if (!group.has(type)) group.set(type, []);
|
||||
group.get(type)?.push(item);
|
||||
});
|
||||
|
||||
return group;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue