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: WC session list height #2642

Merged
merged 1 commit into from
Oct 17, 2023
Merged

fix: WC session list height #2642

merged 1 commit into from
Oct 17, 2023

Conversation

iamacook
Copy link
Member

What it solves

Resolves overflow of DApp names

How this PR fixes it

The ListItems of SessionList now have a min-height instead of fixed height.

How to test it

Connect to CoW Swap via WC and observe no overflow of the name.

Screenshots

image

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

@iamacook iamacook requested a review from katspaugh October 17, 2023 07:23
@iamacook iamacook self-assigned this Oct 17, 2023
@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Branch preview

✅ Deploy successful!

https://wc_session_height--walletweb.review-wallet-web.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

@@ -9,7 +9,7 @@
.sessionListItem {
border: 1px solid var(--color-border-light);
border-radius: 6px;
height: 56px;
min-height: 56px;
Copy link
Member

Choose a reason for hiding this comment

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

Setting a pixel height of anything is per se an anti-pattern. Why can't it just be the size of the content?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's to match the height of the input field/our "global" Accordion min-height:

image

vs.

image

Shall I remove it?

Copy link
Member

Choose a reason for hiding this comment

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

I don't see any difference 🤷

@liliya-soroka
Copy link
Member

can be merged

@iamacook iamacook merged commit d5edcc9 into nect Oct 17, 2023
7 of 9 checks passed
@iamacook iamacook deleted the wc-session-height branch October 17, 2023 09:31
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants