Skip to content

Commit

Permalink
fix: fixed padding and added divided to layout
Browse files Browse the repository at this point in the history
  • Loading branch information
invisiblemask committed Nov 21, 2024
1 parent 78c534e commit 0a110fc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/dashboard/(hiiq)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function layout({ children }: { children: React.ReactNode }) {
const path = usePathname()

return (
<div className="flex flex-col gap-6 mt-6">
<div className="flex flex-col gap-6 mt-6 relative">
<div className="flex gap-4 flex-row items-center justify-center">
{tabs.map((tab) => (
<Link
Expand All @@ -37,7 +37,7 @@ export default function layout({ children }: { children: React.ReactNode }) {
</Link>
))}
</div>

<div className="absolute h-[0.5px] w-[calc(100vw)] -ml-[calc(50vw-50%)] bg-gray-500 top-9 -z-10" />
<div>{children}</div>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/client/StakePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const StakePage = () => {

return (
<>
<Flex pt={{ base: '5', lg: '6' }} direction="column" gap="6" pb="20">
<Flex pt={{ base: '5', lg: '0' }} direction="column" gap="6" pb="20">
<Flex direction="column" gap="1">
<PageHeader
header="HiIQ"
Expand Down
2 changes: 1 addition & 1 deletion src/components/dashboard/hiiq-table/data-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function DataTable<TData, TValue>({
<div className="border-b p-4 flex flex-row gap-4 items-center">
<h1>HiIQ Holders</h1>
<Badge
className="bg-brand-50 text-brand-500 dark:text-brand-800 border-0 py-2"
className="bg-brand-50 text-brand-500 dark:text-brand-800 border-0 py-1 px-1.5"
variant="outline"
>
{isLoading ? (
Expand Down
6 changes: 5 additions & 1 deletion src/components/dashboard/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ export const DashboardLayout = (props: DashboardLayoutProps) => {
<Sidebar mb="4.375em" onClose={onClose} />
</DrawerContent>
</Drawer>
<chakra.div w="full" maxH="100vh" overflow="auto">
<chakra.div
w="full"
maxH="100vh"
overflow={{ base: 'auto', md: 'hidden' }}
>
<chakra.div
w="full"
h="4.375em"
Expand Down

0 comments on commit 0a110fc

Please sign in to comment.