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

View File

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