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

🧐[问题 | question] 怎么设置 自定义 header 的border-block-end #11203

Closed
xiohuchi opened this issue Apr 7, 2024 · 1 comment
Closed

Comments

@xiohuchi
Copy link

xiohuchi commented Apr 7, 2024

🧐 问题描述 | Problem description

export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) => {
  return {
    headerRender: () => {
      return <Header />;
    },
    .......
}

问题:内容和自定义header中间有一条横线,发现是layout-header.ant-pro-layout-header有个样式,

border-block-end : 1px solid rgba(5, 5, 5, 0.06)

怎么去除横线????

版本

2024年4月7日最新版

@xiohuchi
Copy link
Author

xiohuchi commented Apr 8, 2024

已经解决了,global.less添加全局样式可以了

.ant-pro-layout .ant-layout-header.ant-pro-layout-header-fixed-header {
  border-block-end: 0 solid rgba(5, 5, 5, 0.06);
}

@xiohuchi xiohuchi closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant