From cdb90a4523ba79c7fae492e4a696f814e30be1ed Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Sun, 29 Mar 2020 22:57:37 +0300 Subject: [PATCH] MetaPreview background image overlay changed --- src/common/MetaPreview/MetaPreview.js | 7 +------ src/common/MetaPreview/styles.less | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/common/MetaPreview/MetaPreview.js b/src/common/MetaPreview/MetaPreview.js index 4419d232b..0fbe81419 100644 --- a/src/common/MetaPreview/MetaPreview.js +++ b/src/common/MetaPreview/MetaPreview.js @@ -68,12 +68,7 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele { typeof background === 'string' && background.length > 0 ?
- {' + {'
: null diff --git a/src/common/MetaPreview/styles.less b/src/common/MetaPreview/styles.less index 4d8c7b879..7235d9964 100644 --- a/src/common/MetaPreview/styles.less +++ b/src/common/MetaPreview/styles.less @@ -39,13 +39,25 @@ left: -10px; z-index: -1; + &::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1; + background: @color-background-dark2-60; + content: ""; + } + .background-image { display: block; width: 100%; height: 100%; object-fit: cover; - object-position: top left; - filter: blur(5px) brightness(50%); + object-position: center; + opacity: 0.9; + filter: blur(5px); } }