mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: performance tank table occupy more real estate
This commit is contained in:
1 parent
1e60b1f61f
commit
5b9041a972
2 files changed
+13
-11
No files matched your search
@@ -1,20 +1,22 @@
|
|||||||
import { Flex } from '@radix-ui/themes';
|
import { Flex } from "@radix-ui/themes";
|
||||||
import type { MaybeSkeletonComponentProps } from '../../types/maybeSkeletonComponentProps';
|
import type { MaybeSkeletonComponentProps } from "../../types/maybeSkeletonComponentProps";
|
||||||
import { StickyTableRoot } from '../StickyTableRoot';
|
import { StickyTableRoot } from "../StickyTableRoot";
|
||||||
import { Header } from './Header';
|
import { Header } from "./Header";
|
||||||
import { Tanks } from './Tanks';
|
import { Tanks } from "./Tanks";
|
||||||
|
|
||||||
export function TankTable({ skeleton }: MaybeSkeletonComponentProps) {
|
export function TankTable({ skeleton }: MaybeSkeletonComponentProps) {
|
||||||
return (
|
return (
|
||||||
<Flex justify="center" maxWidth="100%" flexGrow="1" position="relative">
|
<Flex justify="center" maxWidth="100%" flexGrow="1" position="relative">
|
||||||
<StickyTableRoot
|
<StickyTableRoot
|
||||||
size={{ initial: '1', sm: '2' }}
|
size={{ initial: "1", sm: "2" }}
|
||||||
variant="surface"
|
variant="surface"
|
||||||
style={{
|
style={{
|
||||||
position: 'absolute',
|
position: "absolute",
|
||||||
maxWidth: '100%',
|
maxWidth: "100%",
|
||||||
maxHeight: '100%',
|
maxHeight: "100%",
|
||||||
height: '100%',
|
height: "100%",
|
||||||
|
borderBottomRightRadius: 0,
|
||||||
|
borderBottomLeftRadius: 0,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Header />
|
<Header />
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export function Page({ skeleton, locale }: PageProps) {
|
|||||||
|
|
||||||
function Content({ skeleton }: MaybeSkeletonComponentProps) {
|
function Content({ skeleton }: MaybeSkeletonComponentProps) {
|
||||||
return (
|
return (
|
||||||
<PageWrapper color="jade" maxWidth="100%">
|
<PageWrapper pb="0" px="0" color="jade" maxWidth="100%">
|
||||||
<FilterControl />
|
<FilterControl />
|
||||||
<PlayerCountControl />
|
<PlayerCountControl />
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user