-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
|
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.
Few comments regarding the code.
Regarding the behaviour:
- When inverting the price, only the selected element is inverted
I understand why it would make sense to have it like that, but I rather keep the same behaviour on both modes
- Some wrapping issues with the copy button
Maybe make the parent component non-wrappable?
Other than that, quite good!
@biocom would you mind reviewing the CSS as well?
src/apps/explorer/components/common/ExplorerTabs/ExplorerTab.tsx
Outdated
Show resolved
Hide resolved
display: none; | ||
} | ||
|
||
@media ${MEDIA.mobile} { |
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.
Move the media query inside the existing selector on lines 22/23
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.
Better:
- Turn the
table
into a styled component or import an existing table. This keeps both theWrapper
component andtable
selector dryer.
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.
Better:
- Turn the
table
into a styled component or import an existing table. This keeps both theWrapper
component andtable
selector dryer.
I don't understand this. Wrapper component is already a Table styled component.
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.
Move the media query inside the existing selector on lines 22/23
But the selector used in 22/23 is for common styles for thead and tr. Moving the media query there would not work the same.
Some notes from my side:
@alfetopito , @alongoni , @biocom , WDYT? Thanks |
Could not show the hover style for mobile/touch/responsive. |
@alongoni @biocom one extra question that came up is regarding the "invert price" button behaviour on mobile, and I'd like a UX input from you guys. What do you think would be the best approach on mobile when clicked?
|
The pagination is there but hidden 😅, maybe we can show it. Yes, I agree. The issue also appears on the Order details page. Agree. We can change the limit and re-test.
In the same way as 2) Agree. Also it happen on the [Order details page](https://pr721--gpui.review.gnosisdev.com/rinkeby/orders/0x88537c74a03c324464d6c269d99b29e7289b105766c5368f77c76c241e1d5da8b6bad41ae76a11d10f7b0e664c5007b908bc77c9615b2dac/
|
If we think that the cards are like units and we invert the price, that will affect only the value within it. (1) |
I think number 2 should be solved in another PR since it is not directly related to this issue |
I was not able to reproduce the 2nd issue in an order details page, as tooltip arrow is always pointing to the question icon to me there But anyways, I have created a separate issue for this case #722 |
@matextrem We have a problem with the pagination and controls. 💡 On mobile, maybe we can reduce the "Rows per page" font-size and margin between elements (Rows per page | page range | arrows). Additionally, in some screens, when the "limit price" order is changed, a new line appears: |
Would it be too little info if on mobile we don't show Another question for @biocom |
Good job @matextrem, I agree with @alfetopito, maybe with just the But maybe to avoid future problems the best is to throw it under the tabs. Is it possible with the CSS magic @alongoni? Otherwise it occurs to me in another PR, send the I think @alongoni already mentioned these details I found. |
@henrypalacios I agree with the option of removing "rows per page" title on mobile to fix the pagination styling problem. Regarding the second point, I did it this way in order to keep the separation between columns and wrap the text if necessary based on Michel comment |
Changes LGTM. SVID_20211012_163011_1.mp4 |
Regarding the nitpick, that was a thing discussed along with @alongoni in order to keep separation between columns so I think the behavior is desired. |
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.
Good to go IMO
Let's keep the invert price behaviour as is implemented.
We'll revisit if there's feedback
<RowWithCopyButton | ||
className="span-copybtn-wrap" | ||
textToCopy={uid} | ||
contentsToDisplay={ | ||
<Link to={`/orders/${order.uid}`} target="_blank"> | ||
<Link to={`/orders/${order.uid}`} rel="noopener noreferrer" target="_blank"> |
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.
Not for this PR
Just realized would be good to use the same network component as with addresses.
Right now it works like this, but we unnecessarily query all networks before loading the order. But we already know the network it belongs to.
a1a2918
to
31536e3
Compare
I've rebased against base branch and resolved conflicts |
Summary
Closes #693
Updated styles and some markup in order to support new design for Orders table to be responsive.
To Test
/rinkeby/address/<any address with orders>/
(i.e 0xb6bad41ae76a11d10f7b0e664c5007b908bc77c9)