Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/InfiniteGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
import { setIsScrollingFast } from "./fetchEthscriptions";
import { Cell } from "./Cell";
import { useSearchParams } from "next/navigation";
import styles from "./InfiniteGrid.module.css";

export const GRID_SIZE = 201; // Maintain a fixed size
export const SCROLL_THRESHOLD = 1; // 1000 pixels per second
Expand Down Expand Up @@ -217,6 +218,7 @@ const InfiniteGrid: React.FC = () => {
onScroll={handleScroll}
onItemsRendered={handleItemsRendered}
itemData={{ originX, originY }}
className={styles.grid}
>
{Cell}
</Grid>
Expand Down
7 changes: 2 additions & 5 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
background: linear-gradient(to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
}