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(connect-modal): linear gradient gap #993

Closed
wants to merge 1 commit into from
Closed

fix(connect-modal): linear gradient gap #993

wants to merge 1 commit into from

Conversation

thinkasany
Copy link
Collaborator

[中文版模板 / Chinese template]

💡 Background and solution

下移 {token.marginSM}的距离, 修复渐变区域的间隙
before:
image
after:

image

🔗 Related issue link

#992

Copy link

vercel bot commented Jun 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ant-design-web3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 21, 2024 6:25am

Copy link

changeset-bot bot commented Jun 21, 2024

🦋 Changeset detected

Latest commit: 12eedc6

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

This PR includes changesets to release 4 packages
Name Type
@ant-design/web3 Patch
@example/eth-web3js Patch
@example/ethers-v5 Patch
@example/ethers 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

Copy link

github-actions bot commented Jun 21, 2024

Preview is ready

Copy link

codecov bot commented Jun 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (868e6fc) to head (12eedc6).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #993   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          720       720           
  Lines        22210     22210           
  Branches      1287      1287           
=========================================
  Hits         22210     22210           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -216,7 +216,7 @@ const getThemeStyle = (token: ConnectModalToken): CSSInterpolation => {
[`&::before`]: {
content: '""',
position: 'absolute',
bottom: '100%',
bottom: `calc(100% - ${token.marginSM}px)`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

需要下移这么多吗?感觉不够精确,要看看那条缝到底是差在哪里

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

问题好像出在这,模拟器缩放的时候导致的像素点的计算偏差,如果调整百分百去看就不存在这个bug。
我用手机看了没有这个问题,然后也切了其他的模拟器在 ’100%‘的情况下都是好了。

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

如果实际并没有这个问题那感觉就不用管了

@thinkasany thinkasany closed this Jun 24, 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

Successfully merging this pull request may close these issues.

2 participants