Skip to content

Commit 724b0b0

Browse files
committed
(fix) room footer shadow
1 parent 0dce19f commit 724b0b0

File tree

6 files changed

+17
-10
lines changed

6 files changed

+17
-10
lines changed

src/lib/Room/Room.vue

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@
126126
v-show="Object.keys(room).length && showFooter"
127127
ref="roomFooter"
128128
class="vac-room-footer"
129+
:class="{
130+
'vac-app-box-shadow': shadowFooter
131+
}"
129132
>
130133
<room-emojis
131134
:filtered-emojis="filteredEmojis"
@@ -159,12 +162,7 @@
159162
</template>
160163
</room-files>
161164

162-
<div
163-
class="vac-box-footer"
164-
:class="{
165-
'vac-app-box-shadow': filteredEmojis.length || filteredUsersTag.length
166-
}"
167-
>
165+
<div class="vac-box-footer">
168166
<div v-if="showAudio && !files.length" class="vac-icon-textarea-left">
169167
<template v-if="isRecording">
170168
<div
@@ -439,6 +437,14 @@ export default {
439437
},
440438
recordedTime() {
441439
return new Date(this.recorder.duration * 1000).toISOString().substr(14, 5)
440+
},
441+
shadowFooter() {
442+
return (
443+
!!this.filteredEmojis.length ||
444+
!!this.filteredUsersTag.length ||
445+
!!this.files.length ||
446+
!!this.messageReply
447+
)
442448
}
443449
},
444450

src/lib/Room/RoomEmojis/RoomEmojis.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<transition name="vac-slide-up">
33
<div
44
v-if="filteredEmojis.length"
5-
class="vac-emojis-container vac-app-box-shadow"
5+
class="vac-emojis-container"
66
:style="{ bottom: `${$parent.$refs.roomFooter.clientHeight}px` }"
77
>
88
<div

src/lib/Room/RoomFiles/RoomFiles.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<transition name="vac-slide-up">
33
<div
44
v-if="files.length"
5-
class="vac-files-container vac-app-box-shadow"
5+
class="vac-files-container"
66
:style="{ bottom: `${$parent.$refs.roomFooter.clientHeight}px` }"
77
>
88
<div class="vac-files-box">

src/lib/Room/RoomMessageReply/RoomMessageReply.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<transition name="vac-slide-up">
33
<div
44
v-if="messageReply"
5-
class="vac-reply-container vac-app-box-shadow"
5+
class="vac-reply-container"
66
:style="{ bottom: `${$parent.$refs.roomFooter.clientHeight}px` }"
77
>
88
<div class="vac-reply-box">

src/lib/Room/RoomUsersTag/RoomUsersTag.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<transition name="vac-slide-up">
33
<div
44
v-if="filteredUsersTag.length"
5-
class="vac-tags-container vac-app-box-shadow"
5+
class="vac-tags-container"
66
:style="{ bottom: `${$parent.$refs.roomFooter.clientHeight}px` }"
77
>
88
<div

src/styles/helper.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
}
1616

1717
.vac-app-box-shadow {
18+
transition: all 0.5s;
1819
box-shadow: 0 2px 2px -4px rgba(0, 0, 0, 0.1),
1920
0 2px 2px 1px rgba(0, 0, 0, 0.12), 0 1px 8px 1px rgba(0, 0, 0, 0.12);
2021
}

0 commit comments

Comments
 (0)