Skip to content

A blank line below the large image when the font size exceeds 17 #10521

Closed
@TinkMingKing

Description

@TinkMingKing
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

image

插入图片后,图片下面会紧接一个空行,无法删除,影响排版

Expected result

去除它

Screenshot or screen recording presentation

No response

Version environment

- Version: 3.0.2
- Operating System: 
- Browser (if used):

Log file

More information

No response

Activity

Vanessa219

Vanessa219 commented on Mar 6, 2024

@Vanessa219
Member

无法重现,麻烦使用默认主题,禁用插件后再试一下。

shuojie819

shuojie819 commented on Mar 6, 2024

@shuojie819

最近两个版本,插入图片,会多空行 - 链滴
图片太大了,你把图片缩小一下那个空格就跑到图后面了不会单独占一行

Vanessa219

Vanessa219 commented on Mar 6, 2024

@Vanessa219
Member

我这里图片太大也不会独占一行。是不是有什么特殊操作导致的?

shuojie819

shuojie819 commented on Mar 6, 2024

@shuojie819

我这里图片太大也不会独占一行。是不是有什么特殊操作导致的?

image
可以拿这张图试一下,我这里会多出空行

88250

88250 commented on Mar 6, 2024

@88250
Member

我这里也重现不了:

image

88250

88250 commented on Mar 6, 2024

@88250
Member

之前好像有个类似的问题 #8887 应该是插件、代码片段等扩展影响的。

changed the title [-]图片插入问题[/-] [+]插入图片后下面会紧接一个空行[/+] on Mar 6, 2024
shuojie819

shuojie819 commented on Mar 6, 2024

@shuojie819

是的,创建了一个新库无法重现。

HowcanoeWang

HowcanoeWang commented on Mar 6, 2024

@HowcanoeWang

一直在用 Savor 主题,一直有这个问题

右键把图片宽度设置成100%,空行就自动没了

刚想开个feature requrest,让插入图片支持图片自动100%宽度hhhhh

88250

88250 commented on Mar 6, 2024

@88250
Member

如果确认是主题或插件等扩展影响我们就关闭 issue 了哦?

HowcanoeWang

HowcanoeWang commented on Mar 6, 2024

@HowcanoeWang

如果确认是主题或插件等扩展影响我们就关闭 issue 了哦?

不,我屏蔽了主题和插件,发现问题还在,但是新开一个工作空间就没法复现。后来经过css样式的仔细对比,发现了问题:

正常的style:
图片

把上面的16改成18,就是我有问题的工作空间里面的css样式

88250

88250 commented on Mar 6, 2024

@88250
Member

如果确认是主题或插件等扩展影响我们就关闭 issue 了哦?

不,我屏蔽了主题和插件,发现问题还在,但是新开一个工作空间就没法复现。后来经过css样式的仔细对比,发现了问题:

正常的style: 图片

把上面的16改成18,就是我有问题的工作空间里面的css样式

@Vanessa219

HowcanoeWang

HowcanoeWang commented on Mar 6, 2024

@HowcanoeWang

开启savor主题,会修改上面的16为18,导致问题出现,然后关闭主题后,数字并没有恢复为默认

@royc01

royc01

royc01 commented on Mar 6, 2024

@royc01

开启savor主题,会修改上面的16为18,导致问题出现,然后关闭主题后,数字并没有恢复为默认

@royc01

没明白咋回事,我这边也没空行啊

HowcanoeWang

HowcanoeWang commented on Mar 6, 2024

@HowcanoeWang

没明白咋回事

主题里面有修改上面css数值的代码吗?

royc01

royc01 commented on Mar 6, 2024

@royc01

那空行是什么元素的?

HowcanoeWang

HowcanoeWang commented on Mar 6, 2024

@HowcanoeWang

那空行是什么元素的?

图片块的css,空行没有任何元素,感觉像是字体从16改成18px后,“挤”下去的

royc01

royc01 commented on Mar 6, 2024

@royc01

那空行是什么元素的?

图片块的css,空行没有任何元素,感觉像是字体从16改成18px后,“挤”下去的

那跟主题应该没关系,字号大于18的时候,大图片贴进去好像就会有空行 @88250

HowcanoeWang

HowcanoeWang commented on Mar 6, 2024

@HowcanoeWang

那空行是什么元素的?

图片块的css,空行没有任何元素,感觉像是字体从16改成18px后,“挤”下去的

那跟主题应该没关系,字号大于18的时候,大图片贴进去好像就会有空行 @88250

我的思源设置里,字号确实是18。。。破案了,思源前端需要改一下 @Vanessa219

88250

88250 commented on Mar 6, 2024

@88250
Member

我印象里这问题可能存在好几年了,看来有希望解决 😂

added a commit that references this issue on Mar 6, 2024
Vanessa219

Vanessa219 commented on Mar 6, 2024

@Vanessa219
Member

终于破案了,下个版本改进。

added this to the 3.0.3 milestone on Mar 6, 2024
changed the title [-]插入图片后下面会紧接一个空行[/-] [+]When the font size exceeds 17, there is a blank line below the large image[/+] on Mar 6, 2024
changed the title [-]When the font size exceeds 17, there is a blank line below the large image[/-] [+]A blank line below the large image when the font size exceeds 17[/+] on Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@HowcanoeWang@TinkMingKing@royc01

      Issue actions

        A blank line below the large image when the font size exceeds 17 · Issue #10521 · siyuan-note/siyuan