Skip to content

Commit f56d290

Browse files
committed
OpenConceptLab/ocl_issues#2323 | moving display toggle to right
1 parent 3066f17 commit f56d290

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/search/DisplayMenu.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const DisplayMenu = ({onSelect, selected, disabled, sx}) => {
1313
<ButtonGroup color='info.dark' variant='outlined' size='small' disabled={disabled} sx={sx}>
1414
<Tooltip title={t('search.list_view')}>
1515
<Button onClick={() => onSelect('card')} color={selected === 'card' ? 'primary' : 'info.dark'}>
16-
<CardIcon color='info.dark' />
16+
<CardIcon color='info.dark' sx={{fontSize: '1.25rem'}} />
1717
</Button>
1818
</Tooltip>
1919
<Tooltip title={t('search.table_view')}>

src/components/search/SearchControls.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ const SearchControls = ({ disabled, onDisplayChange, display, order, orderBy, on
5757
<>
5858
<div className='col-xs-12 padding-0' style={{float: 'left', textAlign: 'right', display: 'inline-flex', alignItems: 'center', justifyContent: 'space-between'}}>
5959
<span style={{display: 'flex', alignItems: 'center'}}>
60-
{getControls()}
60+
{getControls(true)}
6161
</span>
6262
{
6363
rightControl &&
64-
<span style={{display: 'flex'}}>
65-
{false && getDisplayControl({marginRight: '8px'})}
64+
<span style={{display: 'flex', alignItems: 'center'}}>
6665
{rightControl}
66+
{getDisplayControl({marginRight: '8px'})}
6767
</span>
6868
}
6969
</div>

0 commit comments

Comments
 (0)