Skip to content

Commit

Permalink
style(tangle-dapp): Fix form widths
Browse files Browse the repository at this point in the history
  • Loading branch information
yurixander committed Dec 28, 2024
1 parent 417639a commit b2b222c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion apps/tangle-dapp/src/pages/restake/stake/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default function RestakeStakePage() {
);

return (
<StyleContainer className="min-w-[480px]">
<StyleContainer className="min-w-[512px]">
<RestakeTabs />

<Card withShadow tightPadding>
Expand Down
6 changes: 2 additions & 4 deletions apps/tangle-dapp/src/pages/restake/unstake/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import type { TextFieldInputProps } from '@webb-tools/webb-ui-components/compone
import { TransactionInputCard } from '@webb-tools/webb-ui-components/components/TransactionInputCard';
import { useModal } from '@webb-tools/webb-ui-components/hooks/useModal';
import { Typography } from '@webb-tools/webb-ui-components/typography/Typography';
import cx from 'classnames';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { type SubmitHandler, useForm } from 'react-hook-form';
import { formatUnits, parseUnits } from 'viem';
Expand All @@ -43,7 +42,6 @@ import { AnimatedTable } from '../AnimatedTable';
import AssetPlaceholder from '../AssetPlaceholder';
import { ExpandTableButton } from '../ExpandTableButton';
import RestakeTabs from '../RestakeTabs';
import StyleContainer from '../StyleContainer';
import SupportedChainModal from '../SupportedChainModal';
import useSwitchChain from '../useSwitchChain';
import TxInfo from './TxInfo';
Expand Down Expand Up @@ -236,10 +234,10 @@ const RestakeUnstakePage = () => {

return (
<div className="flex items-start justify-center flex-wrap gap-4">
<div className="">
<div>
<RestakeTabs />

<Card withShadow tightPadding className="relative min-w-[480px]">
<Card withShadow tightPadding className="relative min-w-[512px]">
{!isUnstakeRequestTableOpen && isMediumScreen && (
<ExpandTableButton
className="absolute top-0 -right-10"
Expand Down
17 changes: 3 additions & 14 deletions apps/tangle-dapp/src/pages/restake/withdraw/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,22 +207,11 @@ const RestakeWithdrawPage = () => {
);

return (
<div
className={cx(
'grid gap-4 place-content-center',
!isMediumScreen ? 'grid-cols-1' : 'grid-flow-col auto-cols-fr',
)}
>
<StyleContainer
className={cx(
isWithdrawRequestTableOpen && isMediumScreen
? 'ml-auto mr-0'
: 'mx-auto',
)}
>
<div className="flex items-start justify-center flex-wrap gap-4">
<StyleContainer>
<RestakeTabs />

<Card withShadow tightPadding className="relative">
<Card withShadow tightPadding className="relative min-w-[512px]">
{!isWithdrawRequestTableOpen && isMediumScreen && (
<ExpandTableButton
className="absolute top-0 -right-10"
Expand Down

0 comments on commit b2b222c

Please sign in to comment.