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

fix(web): 兼容低版本 chrome 浏览器,兼容 360 极速浏览器 #1333

Merged
merged 4 commits into from
Jul 5, 2024

Conversation

tongchong
Copy link
Contributor

@tongchong tongchong commented Jul 1, 2024

兼容低版本 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浏览器展示如下:
1719889823356

修改后在360展示情况如下:
1719826959249

Copy link

changeset-bot bot commented Jul 1, 2024

🦋 Changeset detected

Latest commit: bd082af

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@scow/portal-web Patch
@scow/mis-web Patch
@scow/ai Patch
@scow/auth Patch
@scow/gateway Patch
@scow/mis-server Patch
@scow/portal-server Patch
@scow/cli Patch

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

@pkuhpc-review-bot pkuhpc-review-bot bot added the Code-ReviewRequested Code Review Requested label Jul 1, 2024
@pkuhpc-review-bot pkuhpc-review-bot bot requested a review from ddadaal July 1, 2024 07:16
apps/mis-web/src/pages/_app.tsx Outdated Show resolved Hide resolved
<Loading />
: (
<DarkModeProvider initial={props.initialDark}>
<AntdConfigProvider color={color}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

另外AI的AntdConfigProvider目前是重新抄的,看看能不能用libs/web里公用的

Copy link
Contributor Author

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中公用的代码

@pkuhpc-review-bot pkuhpc-review-bot bot added Code-ChangeRequested and removed Code-ReviewRequested Code Review Requested labels Jul 2, 2024
@pkuhpc-review-bot pkuhpc-review-bot bot added Code-Approved Code Review approved ReadyForMerge Ready for merge and removed Code-ChangeRequested labels Jul 5, 2024
@ddadaal ddadaal merged commit ca9bf27 into master Jul 5, 2024
10 checks passed
@ddadaal ddadaal deleted the fix-css-compatible branch July 5, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code-Approved Code Review approved ReadyForMerge Ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants