mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-11 16:26:20 +00:00
Copy setting button - still not happy with this
This commit is contained in:
@@ -213,15 +213,13 @@ export default class Options extends Component<Props, State> {
|
||||
</Expander>
|
||||
</div>
|
||||
|
||||
{/*
|
||||
<div class={style.optionsTitle}>
|
||||
<button onClick={this.onCopyToOtherClick} class={style.button}>
|
||||
<div class={style.optionsCopy}>
|
||||
<button onClick={this.onCopyToOtherClick} class={style.copyButton}>
|
||||
{imageIndex === 1 && '← '}
|
||||
Copy settings to other side
|
||||
Copy settings across
|
||||
{imageIndex === 0 && ' →'}
|
||||
</button>
|
||||
</div>
|
||||
*/}
|
||||
|
||||
<div class={style.results}>
|
||||
<div class={style.resultData}>
|
||||
|
||||
@@ -66,13 +66,6 @@ $horizontalPadding: 15px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.button {
|
||||
composes: unbutton from '../../lib/util.scss';
|
||||
background: #151515;
|
||||
border-radius: 4px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.results {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
@@ -121,3 +114,18 @@ $horizontalPadding: 15px;
|
||||
.size-decrease {
|
||||
color: #50e3c2;
|
||||
}
|
||||
|
||||
.options-copy {
|
||||
display: grid;
|
||||
background: rgba(0, 0, 0, 0.9);
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.copy-button {
|
||||
composes: unbutton from '../../lib/util.scss';
|
||||
background: #484848;
|
||||
border-radius: 4px;
|
||||
color: #fff;
|
||||
text-align: left;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user