mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 18:19:47 +00:00
Ordering of items in mobile view. Changing scrolling element.
This commit is contained in:
@@ -136,7 +136,7 @@ export default class Options extends Component<Props, State> {
|
|||||||
const EncoderOptionComponent = encoderOptionsComponentMap[encoderState.type];
|
const EncoderOptionComponent = encoderOptionsComponentMap[encoderState.type];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div class={style.optionsScroller}>
|
||||||
<Expander>
|
<Expander>
|
||||||
{encoderState.type === identity.type ? null :
|
{encoderState.type === identity.type ? null :
|
||||||
<div>
|
<div>
|
||||||
@@ -181,7 +181,6 @@ export default class Options extends Component<Props, State> {
|
|||||||
|
|
||||||
<h3 class={style.optionsTitle}>Compress</h3>
|
<h3 class={style.optionsTitle}>Compress</h3>
|
||||||
|
|
||||||
<div class={style.optionsScroller}>
|
|
||||||
<section class={`${style.optionOneCell} ${style.optionsSection}`}>
|
<section class={`${style.optionOneCell} ${style.optionsSection}`}>
|
||||||
{encoderSupportMap ?
|
{encoderSupportMap ?
|
||||||
<Select value={encoderState.type} onChange={this.onEncoderTypeChange} large>
|
<Select value={encoderState.type} onChange={this.onEncoderTypeChange} large>
|
||||||
@@ -206,7 +205,6 @@ export default class Options extends Component<Props, State> {
|
|||||||
/>
|
/>
|
||||||
: null}
|
: null}
|
||||||
</Expander>
|
</Expander>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class={style.optionsCopy}>
|
<div class={style.optionsCopy}>
|
||||||
<button onClick={this.onCopyToOtherClick} class={style.copyButton}>
|
<button onClick={this.onCopyToOtherClick} class={style.copyButton}>
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ async function processSvg(blob: Blob): Promise<HTMLImageElement> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default class Compress extends Component<Props, State> {
|
export default class Compress extends Component<Props, State> {
|
||||||
widthQuery = window.matchMedia('(max-width: 600px)');
|
widthQuery = window.matchMedia('(max-width: 599px)');
|
||||||
|
|
||||||
state: State = {
|
state: State = {
|
||||||
source: undefined,
|
source: undefined,
|
||||||
|
|||||||
@@ -36,4 +36,24 @@
|
|||||||
|
|
||||||
.multi-panel {
|
.multi-panel {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
|
||||||
|
// Reorder so headings appear after content:
|
||||||
|
& > :nth-child(1) {
|
||||||
|
order: 2;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > :nth-child(2) {
|
||||||
|
order: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > :nth-child(3) {
|
||||||
|
order: 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > :nth-child(4) {
|
||||||
|
order: 3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user