Skip to content

fix: cp-7.44.0 Correct SnapUIImage border radius and sizing logic#14578

Merged
FrederikBolding merged 7 commits into
mainfrom
fb/fix-snap-ui-images
Apr 11, 2025
Merged

fix: cp-7.44.0 Correct SnapUIImage border radius and sizing logic#14578
FrederikBolding merged 7 commits into
mainfrom
fb/fix-snap-ui-images

Conversation

@FrederikBolding

Copy link
Copy Markdown
Member

Description

Add a container for the SnapUIImage component and apply the border radius directly to that hiding the overflow. Additionally adds logic to deal with viewBox and other problems that would prevent SVGs from rendering or overflow outside of the container with border radius.

Related issues

Fixes: MetaMask/snaps#3243
Fixes #14288

Screenshots/Recordings

@metamaskbot metamaskbot added team-snaps-platform-deprecated DEPRECATED: please use "team-core-platform" instead (or "team-new-networks" for Solana snap issues) INVALID-PR-TEMPLATE PR's body doesn't match template labels Apr 10, 2025
@FrederikBolding FrederikBolding marked this pull request as ready for review April 10, 2025 12:02
@FrederikBolding FrederikBolding requested a review from a team as a code owner April 10, 2025 12:02
Daniel-Cross
Daniel-Cross previously approved these changes Apr 10, 2025

@Daniel-Cross Daniel-Cross left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@github-actions

github-actions Bot commented Apr 11, 2025

Copy link
Copy Markdown
Contributor

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 8ad7682
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/3583f2ea-0ba2-43d4-8c32-e0288ad8586a

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Apr 11, 2025

Copy link
Copy Markdown
Contributor

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 3f318a0
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/3820f559-a5c2-4322-bce6-41cde2fdf3c1

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@FrederikBolding FrederikBolding added this pull request to the merge queue Apr 11, 2025
Merged via the queue into main with commit 839db01 Apr 11, 2025
@FrederikBolding FrederikBolding deleted the fb/fix-snap-ui-images branch April 11, 2025 15:53
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 11, 2025
@metamaskbot metamaskbot added the release-7.46.0 Issue or pull request that will be included in release 7.46.0 label Apr 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

INVALID-PR-TEMPLATE PR's body doesn't match template release-7.46.0 Issue or pull request that will be included in release 7.46.0 team-snaps-platform-deprecated DEPRECATED: please use "team-core-platform" instead (or "team-new-networks" for Solana snap issues)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Sol token icon is partially displays Sol token symbol SnapUIImage border radius and centering is broken

4 participants