You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-14 19:02:33 +03:00
add key to react list and let selector container wrap
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user