-
Notifications
You must be signed in to change notification settings - Fork 45
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
fix(web): 兼容低版本 chrome 浏览器,兼容 360 极速浏览器 #1333
Conversation
🦋 Changeset detectedLatest commit: bd082af The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
<Loading /> | ||
: ( | ||
<DarkModeProvider initial={props.initialDark}> | ||
<AntdConfigProvider color={color}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
另外AI的AntdConfigProvider目前是重新抄的,看看能不能用libs/web里公用的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
由于ai需要使用"use client";等原因,暂时不好改成使用libs/web中公用的代码
兼容低版本 chrome 浏览器,兼容 360 极速浏览器
国内360用户较多,但antd自5.0版本以后,默认不兼容低版本Chrome,360极速模式、搜狗浏览器,主要原因是 :where 选择器。本PR增加了样式兼容,主要包括:
:where 选择器
CSS 逻辑属性
参考:
https://ant.design/docs/react/compatible-style-cn#styleprovider
ant-design/pro-components#6065
ant-design/pro-components#6195
当前在360浏览器展示如下:
修改后在360展示情况如下: