From 16b59651fc76afe9c3f86322b3b64489c01fe5f6 Mon Sep 17 00:00:00 2001 From: Jake Archibald Date: Thu, 18 Oct 2018 17:59:07 +0100 Subject: [PATCH] Large compress select --- src/components/Options/index.tsx | 14 ++++++++++---- src/components/select/index.tsx | 8 ++++++-- src/components/select/style.scss | 9 +++++++++ 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/components/Options/index.tsx b/src/components/Options/index.tsx index 56070888..9ee218fa 100644 --- a/src/components/Options/index.tsx +++ b/src/components/Options/index.tsx @@ -40,6 +40,7 @@ import { DownloadIcon } from '../../lib/icons'; import { SourceImage } from '../App'; import Checkbox from '../checkbox'; import Expander from '../expander'; +import Select from '../select'; const encoderOptionsComponentMap = { [identity.type]: undefined, @@ -177,18 +178,23 @@ export default class Options extends Component { : null} - {/*
+

Compress

+ +
{encoderSupportMap ? - {encoders.filter(encoder => encoderSupportMap[encoder.type]).map(encoder => ( ))} - + : - + }
+ + {/* + {EncoderOptionComponent && { render(props: Props) { + const { large, ...otherProps } = props; + return (
-
); diff --git a/src/components/select/style.scss b/src/components/select/style.scss index 1f14154f..b13ea914 100644 --- a/src/components/select/style.scss +++ b/src/components/select/style.scss @@ -22,3 +22,12 @@ fill: #fff; width: 10px; } + +.large { + padding: 10px 35px 10px 10px; + background: #151515; + + & .arrow { + right: 13px; + } +}