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

Fixed: the overflow problem that LaTex always have #184

Closed
wants to merge 1 commit into from

Conversation

@Kiyo5hi
Copy link
Contributor

commented Mar 29, 2019

修复了 LaTex 一直有的小毛病
Issue
Issue in Practice

给 KaTex 溢出情况下加了 scrollbar 并且将其隐藏以保持美观,拯救了手机用户:
Result

@Kiyo5hi Kiyo5hi closed this Mar 29, 2019

@upupming

This comment has been minimized.

Copy link
Contributor

commented Mar 29, 2019

很不错!不过我觉得还是参照官网 https://katex.org/ 的做法比较好:
image

  1. 行内公式无需处理,根据 KaTeX/KaTeX#327 已经会自动换行。
  2. 行间公式在 katex-display 外部加一个 div 就好了。
@Kiyo5hi

This comment has been minimized.

Copy link
Contributor Author

commented Mar 29, 2019

@upupming 了解啦!我去学学qwq

@Kiyo5hi

This comment has been minimized.

Copy link
Contributor Author

commented Mar 29, 2019

而且一开始的 css 好像有点小问题2333

@upupming

This comment has been minimized.

Copy link
Contributor

commented Mar 29, 2019

@Kiyo5hi

This comment has been minimized.

Copy link
Contributor Author

commented Mar 29, 2019

嗯,我们可以隐藏,或者用配置项让用户自己设置

On Sat, Mar 30, 2019, 2:12 AM Kiyo5hi @.***> wrote: 而且一开始的 css 好像有点小问题2333 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#184 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AXmHhChS-qxeKvMLnhiiy9vgKLQgKlh6ks5vbleigaJpZM4cS6vv .

在外面加 div 怎么实现诶qwq 我是弱鸡qwq 模板里吗?

@Kiyo5hi

This comment has been minimized.

Copy link
Contributor Author

commented Mar 29, 2019

嗯,我们可以隐藏,或者用配置项让用户自己设置

On Sat, Mar 30, 2019, 2:12 AM Kiyo5hi @.***> wrote: 而且一开始的 css 好像有点小问题2333 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#184 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AXmHhChS-qxeKvMLnhiiy9vgKLQgKlh6ks5vbleigaJpZM4cS6vv .

配置的那部分已经实现啦!

@Molunerfinn

This comment has been minimized.

Copy link
Owner

commented Mar 30, 2019

@Kiyo5hi 外面加div可以通过js来加。可以参考代码区 复制代码 按钮的实现:
https://github.com/Molunerfinn/hexo-theme-melody/blob/dev/source/js/copy.js#L3-L7
期待你的新PR!另外感谢 @upupming !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.