Code Monkey home page Code Monkey logo

Comments (3)

wujun234 avatar wujun234 commented on July 26, 2024

会被什么遮挡呢?为之前写的说判断页面宽度小于某个值,就不会默认打开侧边栏

虽然目前看起来还是有点丑

image

from hexo-theme-tree.

PabloLION avatar PabloLION commented on July 26, 2024

抱歉刚刚才恢回复。

判断页面宽度小于某个值,就不会默认打开侧边栏
我看到代码里写的1100px了。
我的意思是。在电脑端打开侧栏,右侧的body会调整宽度,
移动端(手机端)打开侧栏之后,右侧的body不会调整宽度,但是其中的链接等还是有效的。建议在这种情况下加一个遮罩层,来避免误操作。或者直接把左侧侧栏全屏,这样方便在tree中滚动。

from hexo-theme-tree.

wujun234 avatar wujun234 commented on July 26, 2024

抱歉刚刚才恢回复。

判断页面宽度小于某个值,就不会默认打开侧边栏
我看到代码里写的1100px了。
我的意思是。在电脑端打开侧栏,右侧的body会调整宽度,
移动端(手机端)打开侧栏之后,右侧的body不会调整宽度,但是其中的链接等还是有效的。建议在这种情况下加一个遮罩层,来避免误操作。或者直接把左侧侧栏全屏,这样方便在tree中滚动。

哦哦,你说的应该是电脑端打开左侧目录,正文框会右移,这个右移也是有判断当前屏幕的宽度,如果宽度不够,就不会移动。移动端不移动,也是因为这个宽度不够的逻辑。

当时想的是侧栏还是个辅助,所以没有全屏。

加遮罩可以考虑一下,加个可选项。

from hexo-theme-tree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.