From a5b93508377e3b7c9f04a31987b8c7d5e2e44155 Mon Sep 17 00:00:00 2001 From: linju Date: Fri, 7 Jul 2023 12:09:26 +0800 Subject: [PATCH] 1.2.8 --- changelog.md | 2 ++ components/uni-ai-msg/uni-ai-msg.vue | 47 ++++++++++----------------- package.json | 2 +- pages/chat/chat.vue | 2 +- static/remove.png | Bin 2667 -> 2886 bytes 5 files changed, 21 insertions(+), 32 deletions(-) diff --git a/changelog.md b/changelog.md index e5e4fae..f1f919a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,5 @@ +## 1.2.8(2023-07-07) +- 优化 部分图标样式在,不同平台下,大小不一致的问题 ## 1.2.7(2023-07-03) - 【重要】修复 部分情况下 客户端未正确带上ai总结的内容的问题 ## 1.2.6(2023-07-03) diff --git a/components/uni-ai-msg/uni-ai-msg.vue b/components/uni-ai-msg/uni-ai-msg.vue index 2b524c6..88e2118 100644 --- a/components/uni-ai-msg/uni-ai-msg.vue +++ b/components/uni-ai-msg/uni-ai-msg.vue @@ -13,9 +13,9 @@ {{msgContent}} - + - ... + @@ -236,7 +236,6 @@ display: flex; box-sizing: border-box; } - /* #endif */ .userInfo { @@ -294,6 +293,8 @@ flex-direction: column; height: 40px; justify-content: flex-end; + /* #ifndef APP-NVUE */ + /* #endif */ } .menu-box-ai { @@ -302,14 +303,19 @@ } .change-answer { - font-size: 26px; - color: #d4d4d4; - height: 25px; - line-height: 15px; margin-bottom: 5px; position: relative; - left: 2px; + transform: rotate(90deg); } + + /* #ifdef H5 */ + .uni-icons { + opacity: 0.6; + } + .uni-icons:hover{ + opacity: 1; + } + /* #endif */ .pointer { cursor: pointer; @@ -326,19 +332,11 @@ .more-icon { color: #d4d4d4; - transform: rotate(270deg); + transform: rotate(90deg); + padding-top: 2px; position: relative; - left: -8px; font-size: 16px; z-index: 999; - padding-bottom: 5px; - height: 10px; - } - - .menu-box-ai .more-icon{ - left: 7px; - top: -2px; - transform: rotate(90deg); } .more-menu { @@ -398,17 +396,6 @@ .copy-icon:hover .copy-icon-b,{ border-color:#bbb; } - - - .remove-msg { - position: relative; - opacity: 0.7; - } - - .remove-msg:hover{ - opacity: 1; - } - /* #ifndef APP-NVUE */ .content ::v-deep rich-text { diff --git a/package.json b/package.json index 431643f..07e9ca5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "id": "uni-ai-chat", "name": "uni-ai-chat", - "version": "1.2.7", + "version": "1.2.8", "description": "基于uni-ai的聊天示例项目,支持流式、支持前文总结,云端一体", "main": "main.js", "scripts": { diff --git a/pages/chat/chat.vue b/pages/chat/chat.vue index 2a54ae3..d7b0747 100644 --- a/pages/chat/chat.vue +++ b/pages/chat/chat.vue @@ -400,7 +400,7 @@ this.msgList.pop() this.updateLastMsg({ // 防止 偶发答案涉及敏感,重复回答时。提问内容 被卡掉无法重新问 - illegal: false, + illegal: false }) // 多设备登录时其他设备看广告后点击重新回答,insufficientScore应当设置为 false this.insufficientScore = false diff --git a/static/remove.png b/static/remove.png index b770a82410adf038ba6922b490865a13c80d7bec..587da94da3a2ad8865977f7a02728df70d7f0cb8 100644 GIT binary patch literal 2886 zcmb_e2~-nj9uJkEfK*XLJP89;QFC%683`H*3f54N1c@SbNG2gA$;2EGP!N!nfL6h) z^#EB!g&?q?1ury!3W#+rifBQIzu!5!t+Ta5{^nIkf~%og(`$1mf|QR3WZ3b5y_r-3I%lY0Nu&Bu?s*ADg;7s9c$H? zIdsPWB2_9mNF>I@#1LZK2#7*NB-811B8ftzQ1B=MuZ)$cAPruobpE7)1uOXqv0Noa zWH^&XC<0Nd7y#<*M;21~xLTQVEK+F9h#E*vBojy`R--@xe;g-QDE?#j{=5Nh=PM4l25q`{Nyr@;!Ysp7O^3|SY{&O`k4sKf>baAK=bB? zCwbt>Bo2iPlHEWOWeJG}l1Lw+Y(yXy#(oZ^;z?8v8HLh754Ybz(Yg^pD(F9g1$~V0idi2VzB`9pit=^ z5p)Por}FuDcRGcSkD!u;c&djd$%9T4QXzNflROLIt4+E6B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