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