File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -45,21 +45,16 @@ const BoxGrid = ({ items }: BoxGridProps) => {
45
45
return (
46
46
< div className = "my-16 grid grid-cols-1 rounded-sm lg:grid-cols-4" >
47
47
{ items . map ( ( item , idx : number ) => {
48
- let columnNumber = idx + 1
49
- if ( columnNumber > 4 ) {
50
- columnNumber = columnNumber - 3
51
- }
52
48
const colorIdx = hashCode ( item . emoji ) % colors . length
53
49
const color = colors [ colorIdx ]
54
50
const isOpen = idx === indexOpen
55
- const columnNumberClassName = `col-start-${ columnNumber } `
56
51
57
52
return (
58
53
< Flex
59
54
className = { cn (
60
55
"cursor-pointer items-center justify-between border border-body p-6 transition-transform duration-500 hover:-skew-x-6 hover:shadow-table-box-hover lg:items-stretch" ,
61
56
isOpen
62
- ? `flex-col text-gray-600 sm:flex-col lg:row-start-1 lg:row-end-3 lg:flex-col ${ color } lg: ${ columnNumberClassName } `
57
+ ? `flex-col text-gray-600 sm:flex-col lg:row-start-1 lg:row-end-3 lg:flex-col ${ color } `
63
58
: "flex-col-reverse bg-background text-body hover:bg-background-highlight sm:flex-row-reverse lg:flex-col-reverse"
64
59
) }
65
60
onClick = { ( ) => {
You can’t perform that action at this time.
0 commit comments