Updated DisplayOptionsModal to fix themes on mobile

• Updated:
- DisplayOptionsModal to fix themes on mobile
This commit is contained in:
mgabdev 2020-11-03 17:12:34 -06:00
parent ce703dc054
commit ebf1638145
2 changed files with 9 additions and 2 deletions

View File

@ -15,6 +15,7 @@ import Button from '../button'
import Text from '../text' import Text from '../text'
import Slider from '../slider' import Slider from '../slider'
import SettingSwitch from '../setting_switch' import SettingSwitch from '../setting_switch'
import ResponsiveClassesComponent from '../../features/ui/util/responsive_classes_component'
class DisplayOptionsModal extends ImmutablePureComponent { class DisplayOptionsModal extends ImmutablePureComponent {
@ -118,7 +119,7 @@ class DisplayOptionsModal extends ImmutablePureComponent {
<Text weight='bold' size='small' color='secondary'> <Text weight='bold' size='small' color='secondary'>
Theme Theme
</Text> </Text>
<div className={[_s.d, _s.radiusSmall, _s.flexRow, _s.mt10, _s.py10, _s.bgTertiary].join(' ')}> <div className={[_s.d, _s.radiusSmall, _s.flexRow, _s.flexWrap, _s.mt10, _s.py10, _s.bgTertiary].join(' ')}>
<ThemeBlock <ThemeBlock
title='White' title='White'
@ -199,7 +200,11 @@ class ThemeBlock extends React.PureComponent {
const id = `theme-${value}` const id = `theme-${value}`
return ( return (
<label className={[_s.d, _s.px10, _s.flexGrow1].join(' ')} htmlFor={id}> <ResponsiveClassesComponent
classNames={[_s.d, _s.px10, _s.flexGrow1].join(' ')}
classNamesXS={[_s.d, _s.px10, _s.flexGrow1, _s.w48PC, _s.mb10].join(' ')}
>
<label className={[_s.d, _s.w100PC].join(' ')} htmlFor={id}>
<div <div
className={[_s.d, _s.borderBottom6PX, _s.aiCenter, _s.flexRow, _s.py10, _s.px15, _s.radiusSmall].join(' ')} className={[_s.d, _s.borderBottom6PX, _s.aiCenter, _s.flexRow, _s.py10, _s.px15, _s.radiusSmall].join(' ')}
style={style} style={style}
@ -223,6 +228,7 @@ class ThemeBlock extends React.PureComponent {
</Text> </Text>
</div> </div>
</label> </label>
</ResponsiveClassesComponent>
) )
} }

View File

@ -561,6 +561,7 @@ pre {
.w100PC { width: 100%; } .w100PC { width: 100%; }
.w50PC { width: 50%; } .w50PC { width: 50%; }
.w48PC { width: 48%; }
.w25PC { width: 25%; } .w25PC { width: 25%; }
.w1255PX { width: 1255px; } .w1255PX { width: 1255px; }
.w1015PX { width: 1015px; } .w1015PX { width: 1015px; }