mirror of
https://github.com/Xevion/100prisoners.git
synced 2025-12-16 00:11:04 -06:00
Dynamic box count with useTailwindBreakpoint hook, adjust BoxLoop padding
This commit is contained in:
@@ -39,7 +39,7 @@ const BoxLoop: FunctionComponent<BoxLoopProps> = ({count}: BoxLoopProps) => {
|
||||
return createLoop([1, 100], count)!;
|
||||
}, [count])
|
||||
|
||||
return <div className="grid gap-x-10 pb-0"
|
||||
return <div className="grid gap-x-10"
|
||||
style={{gridTemplateColumns: `repeat(${count}, minmax(0, 1fr))`}}>
|
||||
{list.map((v, index) => {
|
||||
const [sourceKey, destinationKey] = [`x-${v}`, `x-${loop[v]}`];
|
||||
|
||||
Reference in New Issue
Block a user