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

[FEATURE] 希望在一定大小时,右侧保留菜单栏目 #438

Open
LoongmaSpirit opened this issue Apr 24, 2024 · 0 comments
Open

[FEATURE] 希望在一定大小时,右侧保留菜单栏目 #438

LoongmaSpirit opened this issue Apr 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@LoongmaSpirit
Copy link
Contributor

Describe the feature you want 描述你的功能需求

目前在屏幕宽度足够时,左边有一大片空隙:
image

当屏幕宽度变窄时,左右两边会同时压缩,直到把右侧的 toc 移动到上方:

image

因此建议中间添加一个过度形态,在屏幕宽度缩减到一定程度时,把只去除左侧的空白,右侧扔保留目录,这样能在更大的范围维持优良的阅读体验。直到屏幕小于极限,再将目录移到上方。

这样左侧的空白的的弊端就没了。

Useful reference 有价值的参考

hexo 主题 butterfly:
image

屏幕宽度缩小时,优先保留侧栏

@LoongmaSpirit LoongmaSpirit added the enhancement New feature or request label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant