diff --git a/packages/theme/styles/_colors.scss b/packages/theme/styles/_colors.scss index 5003092d10..bd095464bd 100644 --- a/packages/theme/styles/_colors.scss +++ b/packages/theme/styles/_colors.scss @@ -137,6 +137,7 @@ --theme-navpanel-border: rgba(255, 255, 255, .1); --theme-navpanel-icons-color: #7F7F7F; --theme-navpanel-icons-divider: rgba(255, 255, 255, .11); + --theme-navpanel-shadow-mobile: drop-shadow(0 0 3px rgba(0, 0, 0, .5)); --theme-comp-header-color: #1F1F2C; --theme-divider-color: rgba(255, 255, 255, .06); --theme-bg-divider-color: #282834; @@ -395,6 +396,7 @@ --theme-navpanel-border: rgba(0, 0, 0, .06); --theme-navpanel-icons-color: #7F7F7F; --theme-navpanel-icons-divider: rgba(0, 0, 0, .1); + --theme-navpanel-shadow-mobile: drop-shadow(0 0 2px rgba(0, 0, 0, .2)); --theme-comp-header-color: #FBFBFC; --theme-divider-color: rgba(0, 0, 0, .06); --theme-bg-divider-color: #E3E3E5; diff --git a/packages/theme/styles/common.scss b/packages/theme/styles/common.scss index edaa02262a..25fb7f5606 100644 --- a/packages/theme/styles/common.scss +++ b/packages/theme/styles/common.scss @@ -141,14 +141,11 @@ } .antiPanel-navigator { position: relative; + min-width: 12.5rem; + max-width: 22.5rem; + width: 17.5rem; &:not(.second) { background-color: var(--theme-navpanel-color); } - &:not(.right) { - min-width: 12.5rem; - max-width: 22.5rem; - width: 17.5rem; - } - &.right { border-radius: var(--medium-BorderRadius); } &.second.float { background-color: var(--theme-navpanel-color); filter: drop-shadow(2px 0 5px rgba(0, 0, 0, .2)); @@ -174,40 +171,41 @@ &.fly:not(.second) { position: fixed; + top: calc(var(--status-bar-height) + 1px); + height: calc(100% - var(--status-bar-height) - 2px); background-color: var(--theme-navpanel-color); z-index: 450; - - &:not(.right) { - top: calc(var(--status-bar-height) + 1px); - height: calc(100% - var(--status-bar-height) - 2px); - filter: drop-shadow(2px 0 5px rgba(0, 0, 0, .2)); + filter: drop-shadow(2px 0 5px rgba(0, 0, 0, .2)); - &.portrait { left: 0; } - &.landscape { left: var(--app-panel-width); } - } - &.right { - top: var(--status-bar-height); - right: 0; - height: calc(100% - var(--status-bar-height)); - background-color: var(--theme-statusbar-color); - filter: drop-shadow(-2px 0 5px rgba(0, 0, 0, .2)); - } + &.portrait { left: 0; } + &.landscape { left: var(--app-panel-width); } } } @media (max-width: 480px) { .mobile-theme { .mobile-wrapper, - .antiPanel-navigator:not(.right) { + .antiPanel-navigator { overflow: hidden; border: 1px solid var(--theme-divider-color); border-radius: var(--medium-BorderRadius); } - .antiPanel-navigator:not(.right) { + .antiPanel-navigator { top: var(--status-bar-height); - height: calc(100% - var(--status-bar-height)); + height: calc(100% - var(--status-bar-height) - var(--app-panel-width)); .antiSeparator { display: none; } + &.fly { + width: calc(100% - 3.5rem) !important; + filter: var(--theme-navpanel-shadow-mobile); + } + &.second.float.fly { + height: calc(100% - var(--status-bar-height) - var(--app-panel-width) - 3.5rem); + } + &.fly:not(.second) { + top: var(--status-bar-height); + height: calc(100% - var(--status-bar-height) - var(--app-panel-width)); + } } } } diff --git a/packages/ui/src/components/PanelInstance.svelte b/packages/ui/src/components/PanelInstance.svelte index 1c71305e4f..329e01ea0c 100644 --- a/packages/ui/src/components/PanelInstance.svelte +++ b/packages/ui/src/components/PanelInstance.svelte @@ -93,9 +93,9 @@ top: 'var(--status-bar-height)', bottom: '4.25rem', left: '0', - right: '0', - width: '100%', - height: 'calc(100dvh - var(--status-bar-height) - 4.25rem)', + right: '3.5rem', + width: '', + height: 'calc(100dvh - var(--status-bar-height) - var(--app-panel-width))', maxWidth: '100%', maxHeight: '100%', minWidth: '0' diff --git a/packages/ui/src/components/Scroller.svelte b/packages/ui/src/components/Scroller.svelte index 571d452def..e8b03b2506 100644 --- a/packages/ui/src/components/Scroller.svelte +++ b/packages/ui/src/components/Scroller.svelte @@ -921,7 +921,6 @@ border-radius: 0.125rem; box-shadow: 0 0 1px 1px var(--theme-overlay-color); opacity: 0; - z-index: 1; cursor: pointer; &.hovered { diff --git a/packages/ui/src/components/internal/Root.svelte b/packages/ui/src/components/internal/Root.svelte index b5c7c9f6ca..c27aaf5647 100644 --- a/packages/ui/src/components/internal/Root.svelte +++ b/packages/ui/src/components/internal/Root.svelte @@ -10,10 +10,7 @@ IconArrowRight, checkMobile, deviceOptionsStore as deviceInfo, - checkAdaptiveMatching, - ButtonIcon, - IconDetailsFilled, - IconDetails + checkAdaptiveMatching } from '../../' import { desktopPlatform, getCurrentLocation, location, locationStorageKeyId, navigate } from '../../location' import uiPlugin from '../../plugin' @@ -140,8 +137,6 @@ updateDeviceSize() $: secondRow = checkAdaptiveMatching($deviceInfo.size, 'xs') - $: asideFloat = checkAdaptiveMatching($deviceInfo.size, 'sm') - $: asideOpen = $deviceInfo.aside.visible $: appsMini = $deviceInfo.isMobile && (($deviceInfo.isPortrait && $deviceInfo.docWidth <= 480) || @@ -200,20 +195,6 @@ {/if}