Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #234 from deriv-com/hasan/tab-responsive-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-deriv authored Dec 4, 2023
2 parents 6bed89a + 523501d commit dc4b969
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
10 changes: 6 additions & 4 deletions libs/blocks/src/lib/platform/tab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ const PlatformBlockTab = ({
className,
)}
>
<FluidContainer className="flex flex-col items-center justify-center">
<div className="flex flex-col items-center justify-center gap-gap-3xl">
{header && <Heading.H2>{header}</Heading.H2>}
<FluidContainer>
<div className="flex flex-col gap-gap-3xl">
{header && <Heading.H2 className="text-center">{header}</Heading.H2>}
<Tab.Base tabs={tabs} className="flex flex-col gap-gap-2xl">
{children}
</Tab.Base>
</div>
{description && <Text className="my-general-xl">{description}</Text>}
{description && (
<Text className="my-general-xl text-center">{description}</Text>
)}
</FluidContainer>
</Section>
);
Expand Down
8 changes: 4 additions & 4 deletions libs/components/src/lib/live-market/container/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export const Container = ({
className,
)}
>
<FluidContainer className="flex flex-col items-center justify-center gap-gap-3xl">
{header && <Heading.H2>{header}</Heading.H2>}
<FluidContainer className="flex flex-col gap-gap-3xl">
{header && <Heading.H2 className="text-center">{header}</Heading.H2>}
{children}
{description && <Text>{description}</Text>}
{description && <Text className="text-center">{description}</Text>}
{link && (
<CustomLink
size="md"
Expand All @@ -53,7 +53,7 @@ export const Container = ({
</CustomLink>
)}
{disclaimer && (
<div className="max-w-[816px] max-sm:px-general-md">
<div className="mx-auto max-w-[816px] max-sm:px-general-md">
<Text size="sm" className="text-center text-typography-subtle">
{disclaimer}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion libs/components/src/lib/tab/base/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface TabProps {
export const TabBase = ({ tabs, children, className }: TabProps) => {
return (
<Tab.Container className={className}>
<Tab.List className="justify-center">
<Tab.List>
{tabs.map(({ children, ...rest }, i) => (
<Tab.Trigger {...rest} key={i}>
{children}
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"private": true,
"dependencies": {
"@deriv/quill-design": "^1.2.4",
"@deriv/quill-design": "^1.2.5",
"@deriv/quill-icons": "^1.0.11",
"@nx/next": "16.8.1",
"@react-hook/window-size": "^3.1.1",
Expand Down

0 comments on commit dc4b969

Please sign in to comment.