diff --git a/src/client/components/url-preview-popup.vue b/src/client/components/url-preview-popup.vue index 52731296cb392c2a2014e0c62b5ee4d27dd2e470..6d00d186073d1401a64d0c14772e7023d7764b9a 100644 --- a/src/client/components/url-preview-popup.vue +++ b/src/client/components/url-preview-popup.vue @@ -1,5 +1,5 @@ <template> -<div class="fgmtyycl _panel" :style="{ top: top + 'px', left: left + 'px' }"> +<div class="fgmtyycl _panel _shadow" :style="{ top: top + 'px', left: left + 'px' }"> <mk-url-preview :url="url"/> </div> </template> diff --git a/src/client/components/user-preview.vue b/src/client/components/user-preview.vue index 8c8eee2a3458b93be05bd95a39df1694cc57751b..410de6b4885758c9080a854d65292ddd9ed34edb 100644 --- a/src/client/components/user-preview.vue +++ b/src/client/components/user-preview.vue @@ -1,6 +1,6 @@ <template> <transition name="popup" appear @after-leave="() => { $emit('closed'); destroyDom(); }"> - <div v-if="show" class="fxxzrfni _panel" ref="content" :style="{ top: top + 'px', left: left + 'px' }" @mouseover="() => { $emit('mouseover'); }" @mouseleave="() => { $emit('mouseleave'); }"> + <div v-if="show" class="fxxzrfni _panel _shadow" ref="content" :style="{ top: top + 'px', left: left + 'px' }" @mouseover="() => { $emit('mouseover'); }" @mouseleave="() => { $emit('mouseleave'); }"> <div class="banner" :style="u.bannerUrl ? `background-image: url(${u.bannerUrl})` : ''"></div> <mk-avatar class="avatar" :user="u" :disable-preview="true"/> <div class="title"> diff --git a/src/client/style.scss b/src/client/style.scss index 1a3eb09f4b90e807d32904d88b7ef89c2b2775c1..972c38338c65f5c3a14647eee8ce33822c6edb10 100644 --- a/src/client/style.scss +++ b/src/client/style.scss @@ -207,6 +207,10 @@ hr { backdrop-filter: var(--modalBgFilter); } +._shadow { + box-shadow: 0px 4px 32px var(--shadow) !important; +} + ._button { appearance: none; padding: 0; diff --git a/src/client/themes/_dark.json5 b/src/client/themes/_dark.json5 index 09c1b888f8c6351bbcf6bf52795a4d237d9bfbe7..35d79421c4652a646848d078d9a9b850cce5ceda 100644 --- a/src/client/themes/_dark.json5 +++ b/src/client/themes/_dark.json5 @@ -23,7 +23,7 @@ panelHeaderFg: '@fg', panelHeaderDivider: 'rgba(0, 0, 0, 0)', panelBorder: 'rgba(0, 0, 0, 0)', - shadow: 'rgba(0, 0, 0, 0.1)', + shadow: 'rgba(0, 0, 0, 0.3)', header: ':alpha<0.7<@bg', navBg: '@bg', navFg: '@fg', diff --git a/src/client/themes/black.json5 b/src/client/themes/black.json5 index 06374284763156fe88acada88d23ba9a1829f8e0..579738f725d3c474a41ef4386d23ce5182666293 100644 --- a/src/client/themes/black.json5 +++ b/src/client/themes/black.json5 @@ -12,6 +12,7 @@ panelHeaderBg: '@panel', panelHeaderDivider: '@divider', panelBorder: '@divider', + shadow: 'rgba(255, 255, 255, 0.05)', modalBg: 'rgba(255, 255, 255, 0.1)', messageBg: '#1d1d1d', deckColumnBorder: '@divider',