@@ -46,9 +46,9 @@ export default function BlockSpawner() {
4646 'px-4 py-3 rounded-md font-semibold text-sm text-center animate-slideIn transition-all duration-300 bg-linear-to-br'
4747
4848 return (
49- < div className = "w-full p-6 max-md:p-0 max-sm: flex-1 max- sm:flex max- sm:flex-col max-sm:min-h-0 " >
49+ < div className = "w-full flex-1 flex flex-col min-h-0 sm:block sm:flex-none md:p-6 " >
5050 { /* Controls */ }
51- < div className = "flex items-center gap-4 mb-8 p-4 bg-[#1a1a2e] rounded-lg flex-wrap max-md:p-3 max- md:gap-3 max- md:mb-2 max-sm:shrink-0 " >
51+ < div className = "flex items-center gap-3 mb-2 p-3 bg-[#1a1a2e] rounded-lg flex-wrap shrink-0 md:gap-4 md:mb-8 md:p-4 " >
5252 < label htmlFor = "speed" className = "text-[#a0a0b0] font-medium" >
5353 Speed:
5454 </ label >
@@ -66,20 +66,20 @@ export default function BlockSpawner() {
6666 < button
6767 type = "button"
6868 onClick = { spawnBlock }
69- className = "ml-auto px-6 py-3 bg-linear-to-br from-indigo-500 to-violet-500 text-white border-none rounded-md font-semibold cursor-pointer transition-all duration-150 hover:-translate-y-0.5 hover:shadow-lg hover:shadow-indigo-500/40 active:translate-y-0 max- sm:w-full max- sm:ml-0 max- sm:mt-2 max- sm:px-4 max- sm:py-2 "
69+ className = "w-full mt-2 px-4 py-2 bg-linear-to-br from-indigo-500 to-violet-500 text-white border-none rounded-md font-semibold cursor-pointer transition-all duration-150 hover:-translate-y-0.5 hover:shadow-lg hover:shadow-indigo-500/40 active:translate-y-0 sm:ml-auto sm:w-auto sm:mt-0 sm:px-6 sm:py-3 "
7070 >
7171 Spawn Block
7272 </ button >
7373 </ div >
7474
7575 { /* Lanes */ }
76- < div className = "grid grid-cols-4 gap-4 max- sm:grid-cols-2 max- sm:grid-rows-[1fr_1fr] max- sm:flex-1 max-sm:min-h-0 max- md:gap-2 " >
76+ < div className = "grid grid-cols-2 grid-rows-[1fr_1fr] flex-1 min-h-0 gap-2 sm:grid-cols-4 sm:grid-rows-none sm:flex-none md:gap-4 " >
7777 { /* Proposed Lane */ }
78- < div className = "bg-[#16162a] rounded-lg p-4 min-h-75 max-md:min-h-0 max-md: flex max-md: flex-col max- md:overflow-hidden max- md:p-3 " >
79- < h3 className = "m-0 mb-4 pb-3 border-b-2 border-[#2a2a4a] text-sm font-medium uppercase tracking-wide text-[#8888a0] max- md:pb-2 max-sm:shrink-0 " >
78+ < div className = "bg-[#16162a] rounded-lg p-3 min-h-0 flex flex-col overflow-hidden md:p-4 md:min-h-75 md:block md:overflow-visible " >
79+ < h3 className = "m-0 mb-4 pb-2 shrink-0 border-b-2 border-[#2a2a4a] text-sm font-medium uppercase tracking-wide text-[#8888a0] md:pb-3 " >
8080 Proposed
8181 </ h3 >
82- < div className = "flex flex-col gap-2 max-md: overflow-auto max-md: flex-1 max-md: min-h-0" >
82+ < div className = "flex flex-col gap-2 overflow-auto flex-1 min-h-0 md:overflow-visible md:flex-none " >
8383 { proposedBlocks . map ( ( block ) => (
8484 < div
8585 key = { block . id }
@@ -92,11 +92,11 @@ export default function BlockSpawner() {
9292 </ div >
9393
9494 { /* Voted Lane */ }
95- < div className = "bg-[#16162a] rounded-lg p-4 min-h-75 max-md:min-h-0 max-md: flex max-md: flex-col max- md:overflow-hidden max- md:p-3 " >
96- < h3 className = "m-0 mb-4 pb-3 border-b-2 border-[#2a2a4a] text-sm font-medium uppercase tracking-wide text-[#8888a0] max- md:pb-2 max-sm:shrink-0 " >
95+ < div className = "bg-[#16162a] rounded-lg p-3 min-h-0 flex flex-col overflow-hidden md:p-4 md:min-h-75 md:block md:overflow-visible " >
96+ < h3 className = "m-0 mb-4 pb-2 shrink-0 border-b-2 border-[#2a2a4a] text-sm font-medium uppercase tracking-wide text-[#8888a0] md:pb-3 " >
9797 Voted
9898 </ h3 >
99- < div className = "flex flex-col gap-2 max-md: overflow-auto max-md: flex-1 max-md: min-h-0" >
99+ < div className = "flex flex-col gap-2 overflow-auto flex-1 min-h-0 md:overflow-visible md:flex-none " >
100100 { votedBlocks . map ( ( block ) => (
101101 < div
102102 key = { block . id }
@@ -109,11 +109,11 @@ export default function BlockSpawner() {
109109 </ div >
110110
111111 { /* Finalized Lane */ }
112- < div className = "bg-[#16162a] rounded-lg p-4 min-h-75 max-md:min-h-0 max-md: flex max-md: flex-col max- md:overflow-hidden max- md:p-3 " >
113- < h3 className = "m-0 mb-4 pb-3 border-b-2 border-[#2a2a4a] text-sm font-medium uppercase tracking-wide text-[#8888a0] max- md:pb-2 max-sm:shrink-0 " >
112+ < div className = "bg-[#16162a] rounded-lg p-3 min-h-0 flex flex-col overflow-hidden md:p-4 md:min-h-75 md:block md:overflow-visible " >
113+ < h3 className = "m-0 mb-4 pb-2 shrink-0 border-b-2 border-[#2a2a4a] text-sm font-medium uppercase tracking-wide text-[#8888a0] md:pb-3 " >
114114 Finalized
115115 </ h3 >
116- < div className = "flex flex-col gap-2 max-md: overflow-auto max-md: flex-1 max-md: min-h-0" >
116+ < div className = "flex flex-col gap-2 overflow-auto flex-1 min-h-0 md:overflow-visible md:flex-none " >
117117 { finalizedBlocks . map ( ( block ) => (
118118 < div
119119 key = { block . id }
@@ -126,11 +126,11 @@ export default function BlockSpawner() {
126126 </ div >
127127
128128 { /* Verified Lane */ }
129- < div className = "bg-[#16162a] rounded-lg p-4 min-h-75 max-md:min-h-0 max-md: flex max-md: flex-col max- md:overflow-hidden max- md:p-3 " >
130- < h3 className = "m-0 mb-4 pb-3 border-b-2 border-[#2a2a4a] text-sm font-medium uppercase tracking-wide text-[#8888a0] max- md:pb-2 max-sm:shrink-0 " >
129+ < div className = "bg-[#16162a] rounded-lg p-3 min-h-0 flex flex-col overflow-hidden md:p-4 md:min-h-75 md:block md:overflow-visible " >
130+ < h3 className = "m-0 mb-4 pb-2 shrink-0 border-b-2 border-[#2a2a4a] text-sm font-medium uppercase tracking-wide text-[#8888a0] md:pb-3 " >
131131 Verified
132132 </ h3 >
133- < div className = "flex flex-col gap-2 max-md: overflow-auto max-md: flex-1 max-md: min-h-0" >
133+ < div className = "flex flex-col gap-2 overflow-auto flex-1 min-h-0 md:overflow-visible md:flex-none " >
134134 { verifiedBlocks . map ( ( block ) => (
135135 < div
136136 key = { block . id }
0 commit comments