diff --git a/stylesheets/components/MediaEditor.scss b/stylesheets/components/MediaEditor.scss index f9ed8e2db9cd..2796073c8752 100644 --- a/stylesheets/components/MediaEditor.scss +++ b/stylesheets/components/MediaEditor.scss @@ -18,8 +18,8 @@ &__container { display: flex; flex: 1; - padding-block: 48px; - padding-inline: 60px; + padding-block: 64px; + padding-inline: 64px; padding-bottom: 0; overflow: hidden; } @@ -127,7 +127,7 @@ &--input { margin-inline: 24px; - min-width: 410px; + min-width: 400px; } &--buttons { @@ -163,19 +163,38 @@ display: flex; flex-grow: 1; flex-wrap: wrap; - height: 20px; + height: 28px; justify-content: center; margin-bottom: 24px; max-width: 596px; } &__tools-row-2 { + align-items: center; display: flex; flex-grow: 1; flex-wrap: wrap; - height: 36px; justify-content: center; max-width: 596px; + min-height: 36px; + } + + &__toolbar__crop { + align-items: center; + color: $color-white; + display: flex; + height: 36px; + justify-content: center; + padding-block: 14px; + padding-inline: 12px; + margin-inline: 16px; + + &__button { + @include button-reset; + display: flex; + margin-block: 0; + margin-inline: 20px; + } } &__toolbar { @@ -189,10 +208,11 @@ padding-block: 14px; padding-inline: 12px; margin-inline: 16px; + min-width: 418px; &__tool, &__tool__button { - margin-inline-end: 14px; + margin-inline-start: 14px; } &__button { @@ -324,7 +344,7 @@ &__history-buttons { inset-inline-start: 24px; position: absolute; - top: 24px; + top: 40px; } &__close { @@ -334,7 +354,7 @@ height: 20px; position: absolute; inset-inline-end: 24px; - top: 24px; + top: 40px; width: 20px; &::before { @@ -342,14 +362,7 @@ display: block; width: 100%; height: 100%; - - @include light-theme { - @include color-svg('../images/icons/v3/x/x.svg', $color-gray-75); - } - - @include dark-theme { - @include color-svg('../images/icons/v3/x/x.svg', $color-gray-15); - } + @include color-svg('../images/icons/v3/x/x.svg', $color-gray-15); } &:hover, diff --git a/ts/components/MediaEditor.tsx b/ts/components/MediaEditor.tsx index 209446368434..9d535702768e 100644 --- a/ts/components/MediaEditor.tsx +++ b/ts/components/MediaEditor.tsx @@ -953,10 +953,10 @@ export function MediaEditor({ > {i18n('icu:MediaEditor__crop--reset')} -