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

取消Footer的时候,下方padding为0,看着很难受 #1510

Closed
wizcheu opened this issue Feb 28, 2023 · 4 comments · Fixed by #1517
Closed

取消Footer的时候,下方padding为0,看着很难受 #1510

wizcheu opened this issue Feb 28, 2023 · 4 comments · Fixed by #1517

Comments

@wizcheu
Copy link

wizcheu commented Feb 28, 2023

@github-actions
Copy link

Hello @wizcheu. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please be sure to fill in the default template in the Pull Request, provide changelog/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

你好 @wizcheu,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。

@Wxh16144
Copy link
Member

Wxh16144 commented Mar 1, 2023

我来尝试解决一下~

@Wxh16144
Copy link
Member

Wxh16144 commented Mar 1, 2023

方案一:

在 layout 中添加一个css选择器判断有没有 footer , has 有兼容性问题 can i use

  &:not(&:has(> .@{prefix}-footer)) {
    margin-bottom: @s-content-padding;
  }

方案二:

同 sidebar 逻辑一个加一个自定义属性

@PeachScript
Copy link
Member

v2.1.15 已优化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants