diff --git a/src/components/compress/index.tsx b/src/components/compress/index.tsx index 56c8e5b1..700c244e 100644 --- a/src/components/compress/index.tsx +++ b/src/components/compress/index.tsx @@ -400,7 +400,7 @@ export default class Compress extends Component { const [leftImageData, rightImageData] = images.map(i => i.data); return ( -
+
{ leftImgContain={leftImage.preprocessorState.resize.fitMethod === 'cover'} rightImgContain={rightImage.preprocessorState.resize.fitMethod === 'cover'} /> -
- {images.map((image, index) => ( - - ))} -
+ {images.map((image, index) => ( + + ))}
); } diff --git a/src/components/compress/style.scss b/src/components/compress/style.scss index 29fefe9f..b7deed1e 100644 --- a/src/components/compress/style.scss +++ b/src/components/compress/style.scss @@ -1,19 +1,15 @@ .compress { - height: 100%; -} - -.option-pair { - display: flex; width: 100%; height: 100%; + contain: strict; + display: grid; &.horizontal { - justify-content: space-between; - align-items: flex-end; + grid-template-columns: 1fr auto; + align-items: end; } &.vertical { - flex-direction: column; - justify-content: flex-end; + // TODO } }