Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImgBox灰色遮罩等问题 #179

Open
baipin opened this issue Jun 15, 2021 · 5 comments
Open

ImgBox灰色遮罩等问题 #179

baipin opened this issue Jun 15, 2021 · 5 comments

Comments

@baipin
Copy link

baipin commented Jun 15, 2021

1.当手机版Chrome上滑收回地址栏时,ImgBox之灰色遮罩无法同步:
Screenshot_20210615_221805_com android chrome
Screenshot_20210615_221809_com android chrome

2.当图片较大时,使用ImgBox会有明显的清晰度降低。(不知道是不是古腾堡编辑器图片选项的坑)
Screenshot_20210615_222516_mark via
Screenshot_20210615_222529_mark via

@yrccondor
Copy link
Owner

  1. imgbox 的背景是始终 100% 高度的。chrome 在收回地址栏的过程中不会更新页面高度,只会在动画结束后更新,网页也只能在动画结束后获取新的页面高度,mdx 没有办法对此行为做修改
  2. mdx 的 imgbox 不会修改文章内图片的 url,如果图片糊应该是编辑器插入了低分辨率的版本

@baipin
Copy link
Author

baipin commented Jun 17, 2021

  1. imgbox 的背景是始终 100% 高度的。chrome 在收回地址栏的过程中不会更新页面高度,只会在动画结束后更新,网页也只能在动画结束后获取新的页面高度,mdx 没有办法对此行为做修改
  2. mdx 的 imgbox 不会修改文章内图片的 url,如果图片糊应该是编辑器插入了低分辨率的版本

用了“全尺寸”,果然恢复。
但是,若选择其他尺寸,ImgBox与文章页请求的的确不是同一张图片。直接检查图片地址可以发现,若选“大”尺寸,ImgBox请求的是801*1024(一个例子)尺寸的,而原页面是直接请求原图。

@yrccondor
Copy link
Owner

ImgBox与文章页请求的的确不是同一张图片

可以给一个例子吗?我这里没有办法复现这个问题

@baipin
Copy link
Author

baipin commented Oct 29, 2021

ImgBox与文章页请求的的确不是同一张图片

可以给一个例子吗?我这里没有办法复现这个问题

https://baipin.pw/tech-study/waybackmachine.html

@yrccondor
Copy link
Owner

ImgBox与文章页请求的的确不是同一张图片

可以给一个例子吗?我这里没有办法复现这个问题

baipin.pw/tech-study/waybackmachine.html

似乎是 srcset 的匹配问题,下个版本会进行优化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants