mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-29 04:44:23 +01:00
better hydrating recent tanks list
This commit is contained in:
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",
|
||||
|
||||
Reference in new issue
Block a user