add key to react list and let selector container wrap
parent
a10e71edcf
commit
24cf3d5f05
|
@ -50,8 +50,9 @@ limitations under the License.
|
|||
> .mx_ThemeSelectors {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
|
||||
margin-top: 23px;
|
||||
margin-top: 13px;
|
||||
|
||||
> .mx_RadioButton {
|
||||
padding: $font-16px;
|
||||
|
@ -61,6 +62,7 @@ limitations under the License.
|
|||
flex-shrink: 1;
|
||||
flex-grow: 0;
|
||||
margin-right: 15px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
> .mx_RadioButton:not([disabled]) {
|
||||
|
|
|
@ -255,6 +255,7 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
|
|||
<div className="mx_ThemeSelectors" onChange={this.onThemeChange}>
|
||||
{orderedThemes.map(theme => {
|
||||
return <StyledRadioButton
|
||||
key={theme.id}
|
||||
value={theme.id}
|
||||
name={"theme"}
|
||||
disabled={this.state.useSystemTheme}
|
||||
|
|
Loading…
Reference in New Issue