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

add mobile responsiveness to the all-deals page. #1069

Merged
merged 6 commits into from
Jun 22, 2022

Conversation

giladt
Copy link
Contributor

@giladt giladt commented Jun 21, 2022

What was done

Rearranged the table to fit into mobile screens.
Small mobile (phones) should not show the titles and the age in the deals table (reduced clutter).
As a result- there is no h-scrollbar anymore on this page.

Approved by @v0ort

Before

before view

After

Phone:
after view- phone
Tablet:
after view- tablet

@vercel
Copy link

vercel bot commented Jun 21, 2022

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

Name Status Preview Updated
prime-deals-dapp ✅ Ready (Inspect) Visit Preview Jun 22, 2022 at 5:42AM (UTC)

@giladt giladt requested a review from hiaux0 June 21, 2022 10:09
Copy link
Contributor

@hiaux0 hiaux0 left a comment

Choose a reason for hiding this comment

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

Fncality ✔️

Code

some suggestions and questions

.title {
grid-area: title;
font-size: 20px;
font-weight: bold;
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs word wrap
overflow-wrap: anywhere;

image

@@ -322,9 +322,82 @@ pbutton button.secondary {
}
}

@mixin prefix($text) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's keep an eye on this to be moved to a more common place

@@ -340,3 +413,32 @@ pbutton button.secondary {
}
}
}

@media screen and (max-width: 400px) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I remember we agreed on
$MobileWidth: 375px;

(you can search for "375" and then in the ux/ui channel to see the conversation)

Feel free to bring up suggestions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Issue here is for the range from 375px to ~550px, where the 'title' starts to break- then it might look off.
Possible solution is to change the media query to reach max 550px.
In anycase I aggree that it should be either 375px or ~550px and not 400px.

"size size status";
grid-template-columns: 2fr 1fr 0.5fr;
.title, .age {
display: none;
Copy link
Contributor

Choose a reason for hiding this comment

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

The reason for not showing title is because of the space, but imo, is Title not one of the most important piece of information for a Deal?

Though looking at the reality, the titles just reflect the DAO names.
image

If you agree on including titles in the mobile view for tables, could you create a separate ticket?
Regardless, I'm fine with skipping it now.

@vercel vercel bot temporarily deployed to Preview June 21, 2022 13:00 Inactive
@vercel vercel bot temporarily deployed to Preview June 21, 2022 13:17 Inactive
@vercel vercel bot temporarily deployed to Preview June 22, 2022 05:37 Inactive
@vercel vercel bot temporarily deployed to Preview June 22, 2022 05:42 Inactive
@giladt giladt merged commit 913087e into development Jun 22, 2022
@giladt giladt deleted the fix/all-deals-page-mobile branch June 22, 2022 05:42
@giladt giladt restored the fix/all-deals-page-mobile branch July 21, 2022 08:28
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.

None yet

2 participants