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

立时预览的图片大小问题 #1730

Open
majiaxin110 opened this issue Apr 28, 2024 · 1 comment
Open

立时预览的图片大小问题 #1730

majiaxin110 opened this issue Apr 28, 2024 · 1 comment

Comments

@majiaxin110
Copy link

目前观察到立时预览存在两个图片大小的处理问题,比较影响体验

1、图片插入后,若上方没有空行,立时预览的效果似乎是原像素宽度显示,宽得很难受
image

上方有空行时,宽度倒是会按当前编辑器宽度,会好一些。但如果能控制宽度就更好了,有的截图适合小一点的显示方式
image

  1. 即使指定了图片显示大小立时预览的图片宽度也不受影响,不太符合预期
@suziwen
Copy link
Owner

suziwen commented Apr 28, 2024

图片前后只有空行时,系统就判定为块级图片,自动按最大宽度不能超过100%的要求显示。图片前后有文字时,就被判定为行内图片,宽度按图片实际大小显示。一般要求是行内图片实际宽高不建议太大。

现在图片大小语法只能在预览区里查看效果,后继版本,会考虑把这个添加到立时预览里。

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