Add styles to save-import buttons

This commit is contained in:
robo-mop
2023-04-12 13:19:45 +05:30
parent 2000e16ba2
commit edf9cb755e
2 changed files with 11 additions and 0 deletions

View File

@@ -197,6 +197,12 @@ export default class Options extends Component<Props, State> {
}
title="Import saved side settings"
onClick={this.onImportSideSettingsClick}
disabled={
// Disabled if this side's settings haven't been saved
(!this.state.leftSideSettings &&
this.props.index === 0) ||
(!this.state.rightSideSettings && this.props.index === 1)
}
>
<ImportIcon />
</button>

View File

@@ -142,6 +142,11 @@
svg {
stroke: var(--header-text-color);
}
&:focus {
outline: var(--header-text-color) solid 2px;
outline-offset: 0.25em;
}
}
.button-opacity {