-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -322,9 +322,82 @@ pbutton button.secondary { | |||
} | |||
} | |||
|
|||
@mixin prefix($text) { |
There was a problem hiding this comment.
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
src/deals/list/deals.scss
Outdated
@@ -340,3 +413,32 @@ pbutton button.secondary { | |||
} | |||
} | |||
} | |||
|
|||
@media screen and (max-width: 400px) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
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.
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
After
Phone:
![after view- phone](https://user-images.githubusercontent.com/2517870/174772800-47d290a5-1f70-47e4-b426-cd09ceb38775.png)
![after view- tablet](https://user-images.githubusercontent.com/2517870/174773181-e89d57b5-e2f6-442c-8db2-45aeb0006061.png)
Tablet: