1- import { Box , Progress , useBreakpointValue } from '@chakra-ui/react'
1+ import { Box , Flex , Progress , useBreakpointValue } from '@chakra-ui/react'
22import { ConnectButton } from '@rainbow-me/rainbowkit'
33import {
44 ElectionQuestions ,
@@ -17,7 +17,7 @@ import BlindCSPConnect from '~components/Process/BlindCSPConnect'
1717import { ConfirmVoteModal } from '~components/Process/ConfirmVoteModal'
1818import { MultiElectionSuccessVoteModal , SuccessVoteModal } from '~components/Process/SuccessVoteModal'
1919import VotingVoteModal , { MultiElectionVotingVoteModal } from '~components/Process/VotingVoteModal'
20- import { ChainedProvider , useChainedProcesses } from '~components/Process /ChainedContext'
20+ import { ChainedProvider , useChainedProcesses } from '. /ChainedContext'
2121
2222type ChainedProcessesInnerProps = {
2323 connected : boolean
@@ -33,14 +33,14 @@ const VoteButtonContainer = ({ children }: PropsWithChildren) => {
3333 left = { 0 }
3434 bgColor = 'process.aside.aside_footer_mbl_border'
3535 pt = { 1 }
36- display = { { base : 'block' , lg2 : 'none' } }
36+ display = { isBreakPoint ? 'block' : 'none' }
3737 >
3838 { children }
3939 </ Box >
4040 )
4141 }
4242 return (
43- < Box position = 'sticky' bottom = { 0 } left = { 0 } pb = { 1 } pt = { 1 } display = { { base : 'none' , lg2 : 'block' } } >
43+ < Box position = 'sticky' bottom = { 0 } left = { 0 } pb = { 1 } pt = { 1 } display = { isBreakPoint ? 'none' : 'block' } >
4444 { children }
4545 </ Box >
4646 )
@@ -195,8 +195,10 @@ const ChainedProcessesWrapper = () => {
195195 </ ElectionProvider >
196196 ) }
197197 < VoteButtonContainer >
198- { ! connected && election . get ( 'census.type' ) === 'spreadsheet' && < SpreadsheetAccess /> }
199- { isBlindCsp && ! connected && < BlindCSPConnect /> }
198+ < Flex justifyContent = 'center' alignItems = 'center' direction = { 'column' } py = { 3 } px = { { base : 3 , lg2 : 0 } } >
199+ { ! connected && election . get ( 'census.type' ) === 'spreadsheet' && < SpreadsheetAccess /> }
200+ { isBlindCsp && ! connected && < BlindCSPConnect /> }
201+ </ Flex >
200202 </ VoteButtonContainer >
201203 </ Box >
202204 )
0 commit comments