Commit b163c6ab by Sixong.Zhu

style

parent d07cf879
......@@ -10,6 +10,12 @@ export function parserMessage(type: string, rawMsg: string) {
if (type === MessageType.Image) {
return `[图片]`;
}
if (type === MessageType.Video) {
return `[视频]`;
}
if (type === MessageType.Voice) {
return `[语音]`;
}
if (type === MessageType.File) {
return `[文件]`;
}
......
......@@ -2,7 +2,6 @@
<div
class="msg-detail voice-message d-flex align-items-center"
:class="{ playing: playing, 'can-play': messageRealUrl }"
v-if="messageType === 'voice'"
@click.stop="play"
:style="{ width: getVoiceMessageWidth + 'px' }"
>
......@@ -98,14 +97,14 @@
}
}
.my-message {
.voice-message {
> div {
flex-flow: row-reverse;
}
svg {
transform: rotateY(180deg);
}
.voice-message {
> div {
flex-flow: row-reverse;
}
svg {
transform: rotateY(180deg);
}
}
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment