no message

This commit is contained in:
kuaifan 2025-08-05 07:57:38 +08:00
parent bbfeedcdb3
commit 66a9d1f25e
2 changed files with 10 additions and 10 deletions

View File

@ -91,7 +91,7 @@
</ETooltip>
<template v-if="!isAiBot">
<div v-if="maybePhotoShow" class="chat-input-popover-item maybe-photo" @click="onToolbar('maybe-photo')">
<span>{{$L('可能要发的照片')}}:</span>
<span :style="{maxWidth: maybePhotoStyle.width}">{{$L('可能要发的照片')}}:</span>
<div class="photo-preview" :style="maybePhotoStyle"></div>
</div>
<div v-if="recordReady" class="chat-input-popover-item" @click="onToolbar('meeting')">
@ -129,7 +129,7 @@
<em>{{$L('上传文件')}}</em>
</div>
</template>
<div class="chat-input-popover-item" @click="onToolbar('full')">
<div ref="moreFull" class="chat-input-popover-item" @click="onToolbar('full')">
<i class="taskfont">&#xe6a7;</i>
<em>{{$L('全屏输入')}}</em>
</div>
@ -789,11 +789,10 @@ export default {
return
}
$A.eeuiAppGetLatestPhoto().then(({thumbnail, original}) => {
const width = 120;
const height = Math.min(150, thumbnail.height / (thumbnail.width / width));
const size = Math.min(120, Math.max(100, this.$refs.moreFull.clientWidth));
this.maybePhotoStyle = {
width: width + 'px',
height: height + 'px',
width: size + 'px',
height: size + 'px',
backgroundImage: `url(${thumbnail.base64})`,
}
this.maybePhotoData = {thumbnail, original}

View File

@ -740,9 +740,9 @@
border-radius: 4px;
&.maybe-photo {
align-items: flex-start;
gap: 6px;
flex-direction: column;
padding-bottom: 12px;
padding: 0 0 12px 0;
border-radius: 0;
&:hover {
@ -750,8 +750,9 @@
}
> span {
line-height: 34px;
padding-bottom: 2px;
width: 100%;
display: flex;
line-height: 18px;
font-size: 12px;
opacity: 0.8;
}