@@ -16,6 +16,7 @@ import { ErrorBoundary } from '../../components/ErrorBoundary'
1616import Box from '@mui/material/Box'
1717import { NoMatchingDataMaybeClearFilters , TableSearchBar } from '../../components/Search/TableSearchBar'
1818import { CardEmptyState } from '../../components/CardEmptyState'
19+ import { useScreenSize } from '../../hooks/useScreensize'
1920
2021type ProposalVotesProps = {
2122 isLoading : boolean
@@ -115,21 +116,31 @@ export const ProposalVotesView: FC = () => {
115116
116117export const ProposalVotesCard : FC = ( ) => {
117118 const { t } = useTranslation ( )
119+ const { isMobile, isTablet } = useScreenSize ( )
118120
119121 const { wantedType, setWantedType, wantedNameInput, setWantedNameInput, nameError } = useVoteFiltering ( )
120122
121123 return (
122124 < SubPageCard >
123125 < CardHeaderWithResponsiveActions
124126 action = {
125- < Box sx = { { display : 'inline-flex' , gap : 5 } } >
127+ < Box
128+ sx = { {
129+ display : 'flex' ,
130+ justifyContent : 'space-between' ,
131+ flexWrap : isTablet ? 'wrap' : 'nowrap' ,
132+ gap : 4 ,
133+ paddingRight : isMobile ? 4 : 0 ,
134+ } }
135+ >
136+ < VoteTypeFilter onSelect = { setWantedType } value = { wantedType } />
126137 < TableSearchBar
127138 value = { wantedNameInput }
128139 onChange = { setWantedNameInput }
129140 placeholder = { t ( 'networkProposal.searchForVoter' ) }
130141 warning = { nameError }
142+ fullWidth = { isTablet }
131143 />
132- < VoteTypeFilter onSelect = { setWantedType } value = { wantedType } />
133144 </ Box >
134145 }
135146 disableTypography
0 commit comments