Mobile UI fixes (#7109)

Signed-off-by: Alexander Platov <alexander.platov@hardcoreeng.com>
This commit is contained in:
Alexander Platov
2024-11-06 13:25:17 +07:00
committed by GitHub
parent 448371159a
commit dc82933644
24 changed files with 137 additions and 48 deletions
@@ -15,7 +15,7 @@
<script lang="ts">
import core, { getCurrentAccount, type Ref } from '@hcengineering/core'
import { createQuery } from '@hcengineering/presentation'
import { Scroller } from '@hcengineering/ui'
import { Scroller, resizeObserver } from '@hcengineering/ui'
import { NavLink } from '@hcengineering/view-resources'
import type { Application } from '@hcengineering/workbench'
import workbench from '@hcengineering/workbench'
@@ -55,6 +55,7 @@
gap={direction === 'horizontal' ? 'gap-1' : 'gapV-1'}
horizontal={direction === 'horizontal'}
contentDirection={direction}
align={direction === 'horizontal' ? 'center' : 'start'}
buttons={'union'}
>
{#each topApps as app}
@@ -1055,7 +1055,11 @@
border-radius: var(--medium-BorderRadius);
pointer-events: none;
}
.antiPanel-application {
.antiPanel-application.horizontal {
border-radius: 0 0 var(--medium-BorderRadius) var(--medium-BorderRadius);
border-top: none;
}
.antiPanel-application:not(.horizontal) {
border-radius: var(--medium-BorderRadius) 0 0 var(--medium-BorderRadius);
border-right: none;
}
@@ -76,9 +76,10 @@
<style lang="scss">
.sidebar-container {
overflow: hidden;
flex-direction: row;
min-width: 25rem;
border-radius: 0 var(--medium-BorderRadius) var(--medium-BorderRadius) 0;
border-radius: var(--medium-BorderRadius);
&.mini:not(.float) {
width: 3.5rem !important;