XPoet / hexo-theme-keep

:rainbow: A simple and light theme for Hexo. It makes you more focused on writing.
https://xpoet.cn
GNU Affero General Public License v3.0
1.31k stars 175 forks source link

移动端访问代码有时会变很大 #129

Closed miyu233 closed 1 year ago

miyu233 commented 2 years ago

IMG_2650 IMG_2651

部分代码显示正常,但是大部分都是如下图所示

XPoet commented 2 years ago

@miyu233 请提供下你使用的手机系统及浏览器,我在移动端测试发现一切正常

miyu233 commented 2 years ago

手机型号iphonexr,系统ios14.4,Safari浏览器。我朋友鸿蒙系统自带浏览器浏览也一切正常。

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年12月4日(星期六) 下午4:28 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [XPoet/hexo-theme-keep] 移动端访问代码有时会变很大 (Issue #129)

@miyu233 请提供下你使用的手机系统及浏览器,我在移动端测试发现一切正常

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

XPoet commented 2 years ago

我没有 iPhone XR 手机,可能不好调试。 你看看你手机上的其他浏览器上会不会这样

miyu233 commented 2 years ago

好的,我试试

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: 指间的诗意 @.> 发送时间: 2021年12月4日 17:25 收件人: XPoet/hexo-theme-keep @.> 抄送: ZOU @.>, Mention @.> 主题: 回复:[XPoet/hexo-theme-keep] 移动端访问代码有时会变很大 (Issue #129)

Xuu6770 commented 2 years ago

同样的问题。 个人猜测是不是因为代码块中的符号没有处理好导致样式出了问题呢……

XPoet commented 2 years ago

@Xuu6770 作者用的不是苹果手机,后续会优化该问题

xiwuqi commented 2 years ago

@Xuu6770 作者用的不是苹果手机,后续会优化该问题

问题已缩小范围

XPoet commented 1 year ago

@xiwuqi 感谢提供这么详细的测试报告,作者会重点优化

kechocy commented 1 year ago

@xiwuqi 感谢提供这么详细的测试报告,作者会重点优化

我为themes/keep/source/css/common/codeblock/highlight.styl 中的 code-block 设置-webkit-text-size-adjust: none;就好了

xiwuqi commented 1 year ago

@xiwuqi 感谢提供这么详细的测试报告,作者会重点优化

我为themes/keep/source/css/common/codeblock/highlight.styl 中的 code-block 设置-webkit-text-size-adjust: none;就好了

非常感谢,问题已经解决

XPoet commented 1 year ago

@kechocy 感谢提供解决方法

XPoet commented 1 year ago

这个问题已在 v3.4.9 优化,请大家使用最新版本。

npm i hexo-theme-keep@latest