Skip to content

Commit 950a2c3

Browse files
committed
(responsive) audio player
1 parent a5ffd1a commit 950a2c3

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed

src/ChatWindow/Message/AudioControl.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,21 @@ export default {
105105
}
106106
}
107107
}
108+
109+
@media only screen and (max-width: 768px) {
110+
.vac-player-bar {
111+
margin-right: 5px;
112+
113+
.vac-player-progress .vac-line-container {
114+
height: 3px;
115+
116+
.vac-line-dot {
117+
height: 12px;
118+
width: 12px;
119+
top: -5px;
120+
margin-left: -5px;
121+
}
122+
}
123+
}
124+
}
108125
</style>

src/ChatWindow/Message/AudioPlayer.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,22 @@ export default {
113113
<style lang="scss">
114114
.vac-audio-player {
115115
display: flex;
116-
margin: 15px 0 5px;
116+
margin: 8px 0 5px;
117117
118118
.vac-svg-button {
119119
max-width: 20px;
120120
margin-left: 7px;
121121
}
122122
}
123+
124+
@media only screen and (max-width: 768px) {
125+
.vac-audio-player {
126+
margin: 4px 0 0px;
127+
128+
.vac-svg-button {
129+
max-width: 16px;
130+
margin-left: 5px;
131+
}
132+
}
133+
}
123134
</style>

src/ChatWindow/Message/Message.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119

120120
<div
121121
v-if="message.file && message.file.audio && !message.deleted"
122-
class="vac-player-time"
122+
class="vac-progress-time"
123123
>
124124
{{ progressTime }}
125125
</div>
@@ -493,7 +493,7 @@ export default {
493493
text-align: right;
494494
}
495495
496-
.vac-player-time {
496+
.vac-progress-time {
497497
float: left;
498498
margin: -2px 0 0 41px;
499499
color: var(--chat-color);
@@ -557,5 +557,9 @@ export default {
557557
.vac-offset-current {
558558
margin-left: 20%;
559559
}
560+
561+
.vac-progress-time {
562+
margin-left: 37px;
563+
}
560564
}
561565
</style>

0 commit comments

Comments
 (0)