better hydrating recent tanks list

This commit is contained in:
tresabhi committed 2026-11-21 20:24:47 -06:00
1 parent 16ff393ea0
commit 8dd412ed32
5 files changed
+63 -14

No files matched your search

@@ -1,4 +1,6 @@
.wrapper {
min-width: var(--min-tank-card-size);
--image-height: 6rem;
&[data-compact="true"] {
@@ -6,9 +6,14 @@ import styles from "./index.module.css";
type TankCardProps = {
compact?: boolean;
onIntersection?: () => void;
className?: string;
};
export const TankCardSkeleton = ({ compact, onIntersection }: TankCardProps) => {
export const TankCardSkeleton = ({
compact,
onIntersection,
className,
}: TankCardProps) => {
const wrapper = useRef<HTMLDivElement>(null);
useEffect(() => {
@@ -26,7 +31,7 @@ export const TankCardSkeleton = ({ compact, onIntersection }: TankCardProps) =>
return (
<div
ref={wrapper}
className={styles.wrapper}
className={`${styles.wrapper} ${className ?? ""}`}
data-compact={compact}
style={{
display: "flex",