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: prevent scrollbars on Safe App icons #1565

Merged
merged 1 commit into from
Jan 20, 2023
Merged

Conversation

iamacook
Copy link
Member

What it solves

Resolves #1564

How this PR fixes it

The overflow of the SafeAppIcon is not hidden.

How to test it

Open the Safe Apps page and observe no scrollbars on icons.

Screenshots

image

@github-actions
Copy link

github-actions bot commented Jan 19, 2023

Branch preview

✅ Deploy successful!

https://safe_app_icon_scrollbars--webcore.review-web-core.5afe.dev

@github-actions
Copy link

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@katspaugh katspaugh requested a review from mmv08 January 19, 2023 13:23
@@ -4,7 +4,7 @@ const APP_LOGO_FALLBACK_IMAGE = `/images/apps/app-placeholder.svg`

const getIframeContent = (url: string, width: number, height: number): string => {
return `
<body style="margin: 0;">
<body style="margin: 0; overflow: hidden;">
Copy link
Member

@katspaugh katspaugh Jan 19, 2023

Choose a reason for hiding this comment

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

@mikhailxyz display block on the image would probably make this fix unnecessary.

Copy link
Member

Choose a reason for hiding this comment

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

absolutely insane stuff

@katspaugh
Copy link
Member

Tested, no scrollbars! ✅

@katspaugh katspaugh merged commit 20b2191 into dev Jan 20, 2023
@katspaugh katspaugh deleted the safe-app-icon-scrollbars branch January 20, 2023 14:41
@github-actions github-actions bot locked and limited conversation to collaborators Jan 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem with safe apps logos all over the app
4 participants