Merge branch '312-fix-room-switch' into 'dev'

Room info bottom sheet improvements

Closes #312

See merge request keanuapp/keanuapp-weblite!102
This commit is contained in:
N Pex 2022-07-01 08:13:50 +00:00
commit 766dce0f09
2 changed files with 18 additions and 0 deletions

View file

@ -17,6 +17,16 @@
ref="pan" ref="pan"
:style="{ top: `${isMove ? y : calcY()}px` }" :style="{ top: `${isMove ? y : calcY()}px` }"
> >
<v-btn
fab
x-small
elevation="0"
color="black"
@click.stop="onBackgroundClick"
class="bottom-sheet-close"
>
<v-icon color="white" >cancel</v-icon>
</v-btn>
<div class="bottom-sheet-handle"><div class="bottom-sheet-handle-decoration" /></div> <div class="bottom-sheet-handle"><div class="bottom-sheet-handle-decoration" /></div>
<div ref="sheetContent" class="sheetContent"> <div ref="sheetContent" class="sheetContent">
<slot></slot> <slot></slot>
@ -203,6 +213,13 @@ export default {
background-color: white; background-color: white;
overflow: hidden; overflow: hidden;
.bottom-sheet-close {
position: absolute;
right: 0;
top: 0;
z-index: 1;
}
@media #{map-get($display-breakpoints, 'lg-and-up')} { @media #{map-get($display-breakpoints, 'lg-and-up')} {
margin: 0 auto; margin: 0 auto;
width: $dialog-desktop-width; width: $dialog-desktop-width;

View file

@ -1,6 +1,7 @@
<template> <template>
<BottomSheet <BottomSheet
class="room-info-bottom-sheet" class="room-info-bottom-sheet"
:halfY="0.12"
ref="sheet" ref="sheet"
> >
<div class="room-info-sheet" ref="roomInfoSheetContent"> <div class="room-info-sheet" ref="roomInfoSheetContent">