Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
feat: 优化消息显示长度
Browse files Browse the repository at this point in the history
  • Loading branch information
mys1024 committed Feb 5, 2023
1 parent 4cf69ee commit 10a9f1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/components/message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ function friendlySize(byteCount: number) {
p-2 flex
bg-gray-200 rounded
>
<div v-if="message.type === 'text'">
<div v-if="message.type === 'text'" max-w-96>
{{ message.data }}
</div>
<div v-if="message.type === 'image'">
<div v-if="message.type === 'image'" max-w-72>
<img :src="createImageUrl(message.mime, message.data)" alt="image">
</div>
<div v-if="message.type === 'file'" space-y-2>
<div v-if="message.type === 'file'" max-w-96 space-y-2>
<div flex space-x-2>
<div space-y-1>
<div>
Expand Down

0 comments on commit 10a9f1d

Please sign in to comment.