This commit is contained in:
2025-09-09 09:34:35 +03:00
parent 6a1d81bfa8
commit 3612ada03a
22 changed files with 285 additions and 54 deletions

View File

@@ -116,7 +116,7 @@ export function HomeLoggedInHeader() {
<></>
)}
</span>
<span className="text-base font-mono text-subtext0 mt-1">
<span className="text-base font-super-mono text-subtext0 mt-1">
{isLoaded ? (
<>
@{profile.name}

View File

@@ -7,6 +7,7 @@ import LazyLoadedImage from "../util/LazyLoadedImage";
import { StupidHoverThing } from "../util/MiscStuff";
import { loadThumbnails } from "@/lib/thumbnailLoader";
import { useCurrentAccount } from "@/hooks/roblox/useCurrentAccount";
import { useEffect } from "react";
type OutfitSelectorProps = {
setVisible: (visible: boolean) => void;
@@ -23,6 +24,18 @@ export function OutfitSelector({
const outfits = useAvatarOutfits();
const acc = useCurrentAccount();
useEffect(() => {
if (!outfits) return;
loadThumbnails(
outfits.map((a) => ({
type: "Outfit",
targetId: a.id,
format: "webp",
size: "420x420"
}))
).catch(() => {});
}, [acc, outfits]);
if (!outfits || !acc) return null;
return (
@@ -35,22 +48,22 @@ export function OutfitSelector({
/>
<div className="z-20 grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4 p-8 bg-crust/90 rounded-xl">
{(outfits || []).map((outfit: { id: number; name: string }) => (
<button
key={outfit.id}
className="hover:bg-base/50 rounded-lg"
onClick={async () => {
updateOutfit(outfit, acc);
setVisible(false);
}}
>
<StupidHoverThing delayDuration={0} text={outfit.name}>
<StupidHoverThing key={outfit.id} delayDuration={0} text={outfit.name}>
<button
key={outfit.id}
className="hover:bg-base/50 rounded-lg"
onClick={async () => {
updateOutfit(outfit, acc);
setVisible(false);
}}
>
<LazyLoadedImage
imgId={`Outfit_${outfit.id}`}
alt={outfit.name}
className="w-32 h-32 rounded-md"
/>
</StupidHoverThing>
</button>
</button>
</StupidHoverThing>
))}
</div>
</div>

View File

@@ -112,7 +112,7 @@ export const QuickTopUI = React.memo(function () {
) : (
<></>
)}
<div className="z-50 absolute top-4 right-4 p-4 flex gap-2 items-center text-blue/75">
<div className="z-50 fixed top-4 right-4 p-4 flex gap-2 items-center text-blue/75">
<StupidHoverThing text="Change Outfit">
<button
className="rounded-full bg-crust/50 flex items-center p-2"