mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-18 13:57:52 -04:00
* fix: multiple mobile and responsiveness issues fix(mobile): scroll reset on snapshot selection fix(mobile): layout improvements refactor(volume-details): improve layout refactor: better card breakpoints layouts in backps list fix(ui): keep sidebar in the state it was before reloading refactor(ui): keep the same grid size in all breakpoints refactor: manual hotkey devpanel to tanstack hotkeys * chore: pr feedback
25 lines
761 B
TypeScript
25 lines
761 B
TypeScript
import type { ReactNode } from "react";
|
|
import { cn } from "~/client/lib/utils";
|
|
|
|
interface GridBackgroundProps {
|
|
children: ReactNode;
|
|
className?: string;
|
|
containerClassName?: string;
|
|
}
|
|
|
|
export function GridBackground({ children, className, containerClassName }: GridBackgroundProps) {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
"relative min-h-full w-full",
|
|
"bg-size-[40px_40px]",
|
|
"bg-[linear-gradient(to_right,#e4e4e7_1px,transparent_1px),linear-gradient(to_bottom,#e4e4e7_1px,transparent_1px)]",
|
|
"dark:bg-[linear-gradient(to_right,#262626_1px,transparent_1px),linear-gradient(to_bottom,#262626_1px,transparent_1px)]",
|
|
containerClassName,
|
|
)}
|
|
>
|
|
<div className={cn("relative container m-auto", className)}>{children}</div>
|
|
</div>
|
|
);
|
|
}
|