Mp 2442 tab and alignment fixes (#464)
* fix: fixed the margins and paddings of the layout * fix: fixed the gap
This commit is contained in:
parent
38ae904959
commit
2a06d896ca
@ -86,14 +86,14 @@ function AccountDetails(props: Props) {
|
|||||||
<div
|
<div
|
||||||
data-testid='account-details'
|
data-testid='account-details'
|
||||||
className={classNames(
|
className={classNames(
|
||||||
isExpanded ? 'right-4' : '-right-82.5',
|
isExpanded ? 'right-5' : '-right-80',
|
||||||
'w-100 flex items-start gap-6 absolute top-6',
|
'w-100 flex items-start gap-4 absolute top-6',
|
||||||
!reduceMotion && 'transition-all duration-300',
|
!reduceMotion && 'transition-all duration-300',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'flex flex-wrap w-16 group relative',
|
'flex flex-wrap min-w-16 w-16 group relative',
|
||||||
'border rounded-base border-white/20',
|
'border rounded-base border-white/20',
|
||||||
'bg-white/5 backdrop-blur-sticky',
|
'bg-white/5 backdrop-blur-sticky',
|
||||||
!reduceMotion && 'transition-colors duration-300',
|
!reduceMotion && 'transition-colors duration-300',
|
||||||
|
@ -14,11 +14,11 @@ export default function Tab(props: Props) {
|
|||||||
const { address, accountId } = useParams()
|
const { address, accountId } = useParams()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='relative mb-4 w-full'>
|
<div className='relative w-full mb-4'>
|
||||||
<NavLink
|
<NavLink
|
||||||
to={getRoute('lend', address, accountId)}
|
to={getRoute('lend', address, accountId)}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
props.isFarm ? 'text-white/20' : underlineClasses,
|
props.isFarm ? 'text-white/40' : underlineClasses,
|
||||||
'relative mr-8 text-xl ',
|
'relative mr-8 text-xl ',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
@ -27,7 +27,7 @@ export default function Tab(props: Props) {
|
|||||||
<NavLink
|
<NavLink
|
||||||
to={getRoute('farm', address, accountId)}
|
to={getRoute('farm', address, accountId)}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
!props.isFarm ? 'text-white/20' : underlineClasses,
|
!props.isFarm ? 'text-white/40' : underlineClasses,
|
||||||
'relative text-xl',
|
'relative text-xl',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
@ -7,6 +7,7 @@ export default function Settings() {
|
|||||||
<Button
|
<Button
|
||||||
variant='solid'
|
variant='solid'
|
||||||
color='tertiary'
|
color='tertiary'
|
||||||
|
className='w-16'
|
||||||
leftIcon={<Gear />}
|
leftIcon={<Gear />}
|
||||||
onClick={() => useStore.setState({ settingsModal: true })}
|
onClick={() => useStore.setState({ settingsModal: true })}
|
||||||
/>
|
/>
|
||||||
|
@ -50,11 +50,10 @@ export default function Layout({ children }: { children: React.ReactNode }) {
|
|||||||
className={classNames(
|
className={classNames(
|
||||||
'lg:min-h-[calc(100vh-65px)]',
|
'lg:min-h-[calc(100vh-65px)]',
|
||||||
'lg:mt-[65px]',
|
'lg:mt-[65px]',
|
||||||
'min-h-screen gap-6 p-6 w-full relative',
|
'min-h-screen gap-6 px-4 py-6 w-full relative',
|
||||||
account && 'pr-18',
|
'flex',
|
||||||
focusComponent || isMobile
|
account && 'pr-24',
|
||||||
? 'flex justify-center'
|
'justify-center',
|
||||||
: 'grid grid-cols-[auto_min-content] place-items-start',
|
|
||||||
focusComponent && 'items-center',
|
focusComponent && 'items-center',
|
||||||
isMobile && 'items-start',
|
isMobile && 'items-start',
|
||||||
)}
|
)}
|
||||||
|
@ -187,6 +187,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
minWidth: {
|
minWidth: {
|
||||||
15: '60px',
|
15: '60px',
|
||||||
|
16: '64px',
|
||||||
92.5: '370px',
|
92.5: '370px',
|
||||||
},
|
},
|
||||||
padding: {
|
padding: {
|
||||||
@ -202,8 +203,9 @@ module.exports = {
|
|||||||
'2xl': '1920px',
|
'2xl': '1920px',
|
||||||
},
|
},
|
||||||
spacing: {
|
spacing: {
|
||||||
|
24: '96px',
|
||||||
35: '140px',
|
35: '140px',
|
||||||
82.5: '330px',
|
80: '320px',
|
||||||
},
|
},
|
||||||
transitionDuration: {
|
transitionDuration: {
|
||||||
3000: '3000ms',
|
3000: '3000ms',
|
||||||
|
Loading…
Reference in New Issue
Block a user