React18 #23

Merged
DrMint merged 30 commits from react18 into main 2022-05-15 08:21:37 +00:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 16df351741 - Show all commits

View File

@ -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))]"
>

View File

@ -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;
}