diff --git a/apps/explorer/src/components/orders/OrdersUserDetailsTable/index.tsx b/apps/explorer/src/components/orders/OrdersUserDetailsTable/index.tsx index 2c85a4da5c..232d3fbf94 100644 --- a/apps/explorer/src/components/orders/OrdersUserDetailsTable/index.tsx +++ b/apps/explorer/src/components/orders/OrdersUserDetailsTable/index.tsx @@ -72,48 +72,47 @@ interface RowProps { const FilterRow = styled.tr` background-color: ${({ theme }) => theme.background}; - th { + @media (max-width: 1155px) { + div:first-child { + max-width: 90vw; + } + } + + td { + padding: 2rem; text-align: right; padding-right: 10px; - + max-width: 100%; & > * { margin-left: 10px; } } + + p { + word-wrap: break-word; + white-space: normal; + } ` -const NoOrdersContainer = styled.div` +const Filters = styled.div` display: flex; - flex-wrap: wrap; - align-items: center; justify-content: center; - flex-direction: column; - padding: 2rem; + flex-wrap: wrap; + flex-direction: row; + gap: 1rem; ` -const HiddenOrdersLegend = styled.tr` +const HiddenOrdersLegend = styled.div` p { text-align: center; } - &:hover, - td:hover { - background-color: ${({ theme }) => theme.paper}; - color: ${({ theme }) => theme.textSecondary1}; + a { + text-decoration: underline; } - td { - padding: 0; - font-size: 1.2rem; - color: ${({ theme }) => theme.textSecondary1}; - - a { - text-decoration: underline; - } - - a:hover { - color: ${({ theme }) => theme.textSecondary2}; - } + a:hover { + color: ${({ theme }) => theme.textSecondary2}; } ` @@ -215,31 +214,6 @@ const OrdersUserDetailsTable: React.FC = (props) => { - {showFilter && ( - - - {canceledAndExpiredCount > 0 && ( - setShowCanceledAndExpired((previousValue) => !previousValue)} - label={(showCanceledAndExpired ? 'Hide' : 'Show') + ' canceled/expired'} - count={canceledAndExpiredCount} - /> - )} - {preSigningCount > 0 && ( - <> - setShowPreSigning((previousValue) => !previousValue)} - label={(showPreSigning ? 'Hide' : 'Show') + ' unsigned'} - count={preSigningCount} - /> - {showPreSigning && } - - )} - - - )} {!areOrdersAllHidden && ( @@ -260,6 +234,15 @@ const OrdersUserDetailsTable: React.FC = (props) => { Status )} + {showPreSigning && ( + + +
+ +
+ +
+ )} } body={ @@ -275,24 +258,50 @@ const OrdersUserDetailsTable: React.FC = (props) => { /> ))} - {hiddenOrdersCount > 0 && ( - + {showFilter && ( + -

- Showing {orders.length - hiddenOrdersCount} out of {orders.length} orders for the current page. -

-

- {hiddenOrdersCount} orders are hidden, you can make them visible using the filters above - {tableState.hasNextPage ? ( - - , or go to next page for more orders. - - ) : ( - '.' +

+ {hiddenOrdersCount > 0 && ( + +

+ Showing {orders.length - hiddenOrdersCount} out of {orders.length} orders for the current page. +

+

+ {hiddenOrdersCount} orders are hidden, you can make them visible using the filters below + {tableState.hasNextPage ? ( + + , or go to next page for more orders. + + ) : ( + '.' + )} +

+
)} -

+ + {canceledAndExpiredCount > 0 && ( + setShowCanceledAndExpired((previousValue) => !previousValue)} + label={(showCanceledAndExpired ? 'Hide' : 'Show') + ' canceled/expired'} + count={canceledAndExpiredCount} + /> + )} + {preSigningCount > 0 && ( + <> + setShowPreSigning((previousValue) => !previousValue)} + label={(showPreSigning ? 'Hide' : 'Show') + ' unsigned'} + count={preSigningCount} + /> + + )} + +
-
+ )} }