Skip to content

Commit

Permalink
fix(explorer): ui Adjustment (#5268)
Browse files Browse the repository at this point in the history
* fix: improve layout and styling for order details and toggle filter components

* fix: enhance styling and responsiveness of ToggleFilter component

* fix: update alignment and color logic in DetailsTable and ToggleFilter components

* fix: add media query for hover effect in ToggleFilter component

---------

Co-authored-by: Leandro <[email protected]>
  • Loading branch information
p-andhika and alfetopito authored Jan 13, 2025
1 parent 861c657 commit 7d3242c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
4 changes: 4 additions & 0 deletions apps/explorer/src/components/orders/DetailsTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ export const Wrapper = styled.div`
display: flex;
flex-direction: row;
${Media.MediumAndUp()} {
align-items: center;
}
${Media.upToSmall()} {
flex-direction: column;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React from 'react'

import styled from 'styled-components/macro'

import { MEDIA } from '../../../const'

interface BadgeProps {
checked: boolean
onChange: () => void
Expand All @@ -10,18 +12,31 @@ interface BadgeProps {
}

const Wrapper = styled.div<{ checked: boolean }>`
display: inline-block;
padding: 5px 10px;
border-radius: 20px;
background-color: ${({ checked }) => (checked ? '#007bff' : '#e0e0e0')};
color: ${({ checked }) => (checked ? '#fff' : '#000')};
display: flex;
align-items: center;
padding: 0 8px;
font-size: ${({ theme }): string => theme.fontSizeDefault};
cursor: pointer;
user-select: none;
font-size: 11px;
color: ${({ checked, theme }): string => (checked ? theme.textActive1 : theme.white)};
height: 3rem;
border: 1px solid ${({ theme }): string => theme.borderPrimary};
border-radius: 0.5rem;
background: ${({ theme }): string => theme.bg2};
&media ${MEDIA.mediumUp} {
&:hover {
transition: all 0.2s ease-in-out;
color: ${({ theme }): string => theme.textActive1};
}
}
@media ${MEDIA.mediumDown} {
min-width: 3rem;
}
`

const Label = styled.span`
margin-right: 10px;
margin-right: 8px;
`

const Count = styled.span`
Expand Down

0 comments on commit 7d3242c

Please sign in to comment.