Skip to content

公式块悬浮窗增加固定键 #4570

Closed
@coderlemon17

Description

@coderlemon17

在什么情况下你需要该特性? In what scenarios do you need this function?

image

如图, 在输入较长公式时经常需要将悬浮窗调整到一边, 然后根据渲染的结果继续输入公式. 在此期间如果鼠标不小心碰到了其他地方, 悬浮窗就会消失, 就需要再将其调出来后重新调整位置, 如果能够将调整好的悬浮窗固定住, 将会方便很多.

描述可能的最优解决方案 Describe the optimal solution

image
如果能够类似预览block时增加一个"钉住"的功能就好了.

其他信息 Other Information

现在似乎悬浮窗的最大高度有一个限制, 当输入的公式很长的时候, 会比较麻烦... 在theme.css里找了一圈也没找到相关的配置, 感觉可能是写在了其他地方?

Activity

Vanessa219

Vanessa219 commented on Apr 25, 2022

@Vanessa219
Member

最大值在这里,你需要重置一下
image

coderlemon17

coderlemon17 commented on Apr 25, 2022

@coderlemon17
Author

dbq 我不是很熟悉css操作, 参考思源用户指南里的说明, 我现在在theme.css里加了这一行:

textarea.b3-text-field.b3-text-field--text.fn__block {
    max-height: 100vh;
}

但是似乎并没有起作用.


以及我想问一下, 如果我想修改一个已经安装的主题, 我是应该修改这个主题文件夹里的custom.css文件吗? 我现在是直接修改theme.css, 但是siyuan似乎每次更新主题都是直接覆盖整个文件夹. 想知道有没有能够保留我的修改的升级主题的办法.

Vanessa219

Vanessa219 commented on Apr 25, 2022

@Vanessa219
Member

需要加 !important。 @88250 看一下覆盖的问题。

coderlemon17

coderlemon17 commented on Apr 25, 2022

@coderlemon17
Author

谢谢, 现在.css的修改起作用了.

added this to the 2.0.1 milestone on Apr 25, 2022
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

      @Vanessa219@coderlemon17

      Issue actions

        公式块悬浮窗增加固定键 · Issue #4570 · siyuan-note/siyuan