bottomsheet improvements
This commit is contained in:
parent
4e7b151c43
commit
74995b824e
4 changed files with 38 additions and 8 deletions
4
src/assets/css/vendors/_v-emoji-picker.scss
vendored
4
src/assets/css/vendors/_v-emoji-picker.scss
vendored
|
|
@ -1,4 +1,8 @@
|
||||||
#EmojiPicker {
|
#EmojiPicker {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
|
||||||
|
.container-emoji {
|
||||||
|
height: 60vh;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1542,6 +1542,7 @@ export default {
|
||||||
|
|
||||||
emojiSelected(e) {
|
emojiSelected(e) {
|
||||||
this.showEmojiPicker = false;
|
this.showEmojiPicker = false;
|
||||||
|
this.$refs.messageOperationsSheet.close();
|
||||||
if (this.selectedEvent) {
|
if (this.selectedEvent) {
|
||||||
const event = this.selectedEvent;
|
const event = this.selectedEvent;
|
||||||
this.selectedEvent = null;
|
this.selectedEvent = null;
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,16 @@
|
||||||
:data-closed="closed ? 1 : 0"
|
:data-closed="closed ? 1 : 0"
|
||||||
>
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
<v-btn
|
||||||
|
fab
|
||||||
|
small
|
||||||
|
elevation="0"
|
||||||
|
color="black"
|
||||||
|
@click.stop="backgroundClick"
|
||||||
|
class="bottom-sheet-close"
|
||||||
|
>
|
||||||
|
<v-icon color="white">cancel</v-icon>
|
||||||
|
</v-btn>
|
||||||
</SwipeableBottomSheet>
|
</SwipeableBottomSheet>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -79,6 +89,12 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-operations-bottom-sheet {
|
.message-operations-bottom-sheet {
|
||||||
|
.bottom-sheet-close {
|
||||||
|
position: absolute;
|
||||||
|
right: 10px;
|
||||||
|
top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.transition-bg {
|
.transition-bg {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
@ -86,6 +102,11 @@ export default {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
background-color: rgba(0, 0, 0, 0.15);
|
background-color: rgba(0, 0, 0, 0.15);
|
||||||
|
|
||||||
|
@media #{map-get($display-breakpoints, 'sm-and-down')} {
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.pan-area {
|
.pan-area {
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
|
|
@ -93,15 +114,19 @@ export default {
|
||||||
.card {
|
.card {
|
||||||
padding: 0px !important;
|
padding: 0px !important;
|
||||||
|
|
||||||
@media #{map-get($display-breakpoints, 'sm-and-up')} {
|
&[data-state="half"] {
|
||||||
&[data-state="close"] {
|
top: 100px !important;
|
||||||
display: none;
|
left: 50%;
|
||||||
}
|
transform: translate(-50%, 0);
|
||||||
|
|
||||||
&[data-state="half"] {
|
@media #{map-get($display-breakpoints, 'lg-and-up')} {
|
||||||
top: 394px !important;
|
width: $dialog-desktop-width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&[data-state="close"] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ export default {
|
||||||
mixins: [messageMixin, messageOperationsMixin],
|
mixins: [messageMixin, messageOperationsMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
maxRecents: 5
|
maxRecents: 3
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue