Compare commits

...

2 Commits

Author SHA1 Message Date
Jake Archibald
dc809dde30 1.2.1 2018-11-30 11:44:33 +00:00
Jake Archibald
80dfa03b94 Avoid wrapping a single button (#357)
* Avoid wrapping a single button

* Making the zoom controls appear on the bottom, when the controls are positioned on the bottom
2018-11-30 11:44:15 +00:00
4 changed files with 27 additions and 15 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "squoosh", "name": "squoosh",
"version": "1.2.0", "version": "1.2.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,7 +1,7 @@
{ {
"private": true, "private": true,
"name": "squoosh", "name": "squoosh",
"version": "1.2.0", "version": "1.2.1",
"license": "apache-2.0", "license": "apache-2.0",
"scripts": { "scripts": {
"start": "webpack-dev-server --host 0.0.0.0 --hot", "start": "webpack-dev-server --host 0.0.0.0 --hot",

View File

@@ -336,6 +336,7 @@ export default class Output extends Component<Props, State> {
<AddIcon /> <AddIcon />
</button> </button>
</div> </div>
<div class={style.buttonsNoWrap}>
<button class={style.button} onClick={this.onRotateClick} title="Rotate image"> <button class={style.button} onClick={this.onRotateClick} title="Rotate image">
<RotateIcon /> <RotateIcon />
</button> </button>
@@ -351,6 +352,7 @@ export default class Output extends Component<Props, State> {
</button> </button>
</div> </div>
</div> </div>
</div>
); );
} }
} }

View File

@@ -62,6 +62,7 @@
left: 320px; left: 320px;
right: 320px; right: 320px;
bottom: 0; bottom: 0;
flex-wrap: wrap-reverse;
} }
} }
@@ -152,3 +153,12 @@
left: 0; left: 0;
padding: 9px; padding: 9px;
} }
.buttons-no-wrap {
display: flex;
pointer-events: none;
& > * {
pointer-events: auto;
}
}