diff --git a/packages/theme/styles/components.scss b/packages/theme/styles/components.scss index af256ddde6..7bd43ef2a7 100644 --- a/packages/theme/styles/components.scss +++ b/packages/theme/styles/components.scss @@ -724,7 +724,7 @@ &.categoryHeader { position: sticky; top: 0; - z-index: 1; + z-index: 100; } &.selectable.large { .hulyAccordionItem-header__label-wrapper { diff --git a/packages/theme/styles/love.scss b/packages/theme/styles/love.scss index cadb7b3bbb..58b53087c4 100644 --- a/packages/theme/styles/love.scss +++ b/packages/theme/styles/love.scss @@ -175,6 +175,18 @@ & > .antiEditBox input { font-size: .7rem; } } } +@container floorGridContainer (max-width: 380px) { + .floorGrid-room::before, + .floorGrid-configureRoom::before { border-radius: 0.25rem; } + .floorGrid-room .floorGrid-room__header { + top: calc(100% / var(--huly-floor-roomHeight) / 3 * -1.6 + .125rem); + span { font-size: .5rem; } + } + .floorGrid-configureRoom .floorGrid-configureRoom__header { + top: calc(100% / var(--huly-floor-roomHeight) / 3 * -1.6 + .125rem); + & > .antiEditBox input { font-size: .5rem; } + } +} // Room @media only screen and (max-width: 1024px) { diff --git a/packages/ui/src/utils.ts b/packages/ui/src/utils.ts index f091f01a7a..a5614425f7 100644 --- a/packages/ui/src/utils.ts +++ b/packages/ui/src/utils.ts @@ -64,7 +64,7 @@ export function checkMobile (): boolean { * @public */ export function isSafari (): boolean { - return navigator.userAgent.toLowerCase().includes('safari/') + return /^((?!chrome|android).)*safari/i.test(navigator.userAgent.toLowerCase()) } /** diff --git a/plugins/love-resources/src/components/Floor.svelte b/plugins/love-resources/src/components/Floor.svelte index 72b3cf146c..8b3aeb8990 100644 --- a/plugins/love-resources/src/components/Floor.svelte +++ b/plugins/love-resources/src/components/Floor.svelte @@ -14,25 +14,15 @@ --> -{#if !useResize} +{#if mode === 'fit'} +