mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
fix: compare table
This commit is contained in:
1 parent
9277e45be5
commit
bb6fbf286f
4 files changed
+16
-11
No files matched your search
@@ -46,7 +46,10 @@ export function CompareTable({ stats }: CompareTableProps) {
|
|||||||
size="1"
|
size="1"
|
||||||
variant="surface"
|
variant="surface"
|
||||||
style={{
|
style={{
|
||||||
|
position: 'absolute',
|
||||||
maxWidth: '100%',
|
maxWidth: '100%',
|
||||||
|
maxHeight: '100%',
|
||||||
|
height: '100%',
|
||||||
// height: 'calc(100vh - 128px)'
|
// height: 'calc(100vh - 128px)'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -7,6 +7,11 @@ import Navbar from '../components/Navbar.astro';
|
|||||||
import Party3 from '../components/Party3.astro';
|
import Party3 from '../components/Party3.astro';
|
||||||
import './base.css';
|
import './base.css';
|
||||||
|
|
||||||
|
export interface Props {
|
||||||
|
noFooter?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { noFooter } = Astro.props;
|
||||||
const { pathname } = Astro.url;
|
const { pathname } = Astro.url;
|
||||||
const isRoot = pathname === '/';
|
const isRoot = pathname === '/';
|
||||||
---
|
---
|
||||||
@@ -42,7 +47,7 @@ const isRoot = pathname === '/';
|
|||||||
|
|
||||||
<slot />
|
<slot />
|
||||||
|
|
||||||
<Footer />
|
{!noFooter && <Footer />}
|
||||||
</Flex>
|
</Flex>
|
||||||
</BlitzKitTheme>
|
</BlitzKitTheme>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
fetchTankDefinitions,
|
fetchTankDefinitions,
|
||||||
} from '@blitzkit/core';
|
} from '@blitzkit/core';
|
||||||
import { PlusIcon } from '@radix-ui/react-icons';
|
import { PlusIcon } from '@radix-ui/react-icons';
|
||||||
import { Box, Flex, Heading, IconButton, Text } from '@radix-ui/themes';
|
import { Flex, Heading, Text } from '@radix-ui/themes';
|
||||||
import { useEffect, useMemo, useState } from 'react';
|
import { useEffect, useMemo, useState } from 'react';
|
||||||
import { CompareTable } from '../../../components/Compare/CompareTable';
|
import { CompareTable } from '../../../components/Compare/CompareTable';
|
||||||
import { Controls } from '../../../components/Compare/Controls';
|
import { Controls } from '../../../components/Compare/Controls';
|
||||||
@@ -128,11 +128,10 @@ function Content() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{members.length > 0 && (
|
{members.length > 0 && (
|
||||||
<Flex justify="center">
|
<Flex justify="center" flexGrow="1" position="relative">
|
||||||
<Box maxWidth="100%" position="relative">
|
|
||||||
<CompareTable stats={stats} />
|
<CompareTable stats={stats} />
|
||||||
|
|
||||||
<IconButton
|
{/* <IconButton
|
||||||
style={{
|
style={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
right: 0,
|
right: 0,
|
||||||
@@ -143,8 +142,7 @@ function Content() {
|
|||||||
onClick={() => setAddTankDialogOpen(true)}
|
onClick={() => setAddTankDialogOpen(true)}
|
||||||
>
|
>
|
||||||
<PlusIcon />
|
<PlusIcon />
|
||||||
</IconButton>
|
</IconButton> */}
|
||||||
</Box>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
---
|
---
|
||||||
import { compareTool } from '../../../constants/tools';
|
import BaseLayout from '../../../layouts/BaseLayout.astro';
|
||||||
import ToolLayout from '../../../layouts/ToolLayout.astro';
|
|
||||||
import { Page } from './_index';
|
import { Page } from './_index';
|
||||||
---
|
---
|
||||||
|
|
||||||
<ToolLayout tool={compareTool}>
|
<BaseLayout noFooter>
|
||||||
<Page client:load />
|
<Page client:load />
|
||||||
</ToolLayout>
|
</BaseLayout>
|
||||||
Reference in new issue
Block a user