lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

Reduce the preview size of uploaded files

Open vual opened this issue 1 year ago • 7 comments

💻 变更类型 | Change Type

  • [ ] ✨ feat
  • [ ] 🐛 fix
  • [ ] ♻️ refactor
  • [ ] 💄 style
  • [ ] 👷 build
  • [ ] ⚡️ perf
  • [ ] 📝 docs
  • [ ] 🔨 chore

🔀 变更说明 | Description of Change

主要是缩小上传文件的预览大小,200px太大了,100刚刚好 变更前: image 变更后: image

📝 补充信息 | Additional Information

vual avatar Oct 16 '24 01:10 vual

@vual is attempting to deploy a commit to the LobeHub Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 16 '24 01:10 vercel[bot]

👍 @vual

Thank you for raising your pull request and contributing to our Community Please make sure you have followed our contributing guidelines. We will review it as soon as possible. If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。 如果您遇到任何问题,请随时与我们联系。

lobehubbot avatar Oct 16 '24 01:10 lobehubbot

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.21%. Comparing base (e189e5c) to head (5823689). Report is 93 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #4385    +/-   ##
========================================
  Coverage   92.21%   92.21%            
========================================
  Files         493      493            
  Lines       35390    35390            
  Branches     2304     3253   +949     
========================================
  Hits        32634    32634            
  Misses       2756     2756            
Flag Coverage Δ
app 92.21% <ø> (ø)
server 97.37% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Oct 16 '24 01:10 codecov[bot]

换成复杂的图的话,100就太小了。200 视觉体感上最理想的

arvinxx avatar Oct 18 '24 15:10 arvinxx

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


For complex graphs, 100 is too small. 200 The most ideal in terms of visual and physical sense

lobehubbot avatar Oct 18 '24 15:10 lobehubbot

换成复杂的图的话,100就太小了。200 视觉体感上最理想的

首先他自己上传的,肯定是知道是啥图片,其次如果他想看大图,点预览查看更合适。这个界面是为了展示更多上传内容,也为了减少聊天内容的遮挡。

vual avatar Oct 18 '24 23:10 vual

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


For complex graphs, 100 is too small. 200 The most ideal in terms of visual and physical sense

First of all, he uploaded it himself, so he must know what kind of picture it is. Secondly, if he wants to see the big picture, it is more appropriate to click on the preview to view it. This interface is to display more uploaded content and to reduce the occlusion of chat content.

lobehubbot avatar Oct 18 '24 23:10 lobehubbot

不合适。embedding 和 chunking 的信息在底部仍然需要空间,你这么一改小完全塞不下 chunking 和 embedding 的信息了

image

arvinxx avatar Oct 28 '24 03:10 arvinxx