fix stats table

This commit is contained in:
yohlo
2025-10-11 15:23:33 -05:00
parent d3379e54a4
commit 2ed5ab6026
2 changed files with 7 additions and 6 deletions

View File

@@ -207,11 +207,13 @@ function SwipeableTabs({
height: carouselHeight === "auto" ? "auto" : `${carouselHeight}px`, height: carouselHeight === "auto" ? "auto" : `${carouselHeight}px`,
transition: "height 300ms ease", transition: "height 300ms ease",
touchAction: "pan-y", touchAction: "pan-y",
width: "100%",
maxWidth: "100vw",
}} }}
> >
{tabs.map((tab, index) => ( {tabs.map((tab, index) => (
<Carousel.Slide key={`${tab.label}-content-${index}`}> <Carousel.Slide key={`${tab.label}-content-${index}`}>
<Box ref={setSlideRef(index)} style={{ height: "auto" }}> <Box ref={setSlideRef(index)} style={{ height: "auto", width: "100%", maxWidth: "100vw", overflow: "hidden" }}>
{tab.content} {tab.content}
</Box> </Box>
</Carousel.Slide> </Carousel.Slide>

View File

@@ -6,7 +6,6 @@ import {
Group, Group,
Box, Box,
ThemeIcon, ThemeIcon,
Container,
Title, Title,
Divider, Divider,
UnstyledButton, UnstyledButton,
@@ -292,7 +291,7 @@ const PlayerStatsTable = () => {
if (playerStats.length === 0) { if (playerStats.length === 0) {
return ( return (
<Container px={0} size="md"> <Box px={0} w="100%" maw="100%">
<Stack align="center" gap="md" py="xl"> <Stack align="center" gap="md" py="xl">
<ThemeIcon size="xl" variant="light" radius="md"> <ThemeIcon size="xl" variant="light" radius="md">
<ChartBarIcon size={32} /> <ChartBarIcon size={32} />
@@ -301,12 +300,12 @@ const PlayerStatsTable = () => {
No Stats Available No Stats Available
</Title> </Title>
</Stack> </Stack>
</Container> </Box>
); );
} }
return ( return (
<Container size="100%" px={0} mt="md"> <Box px={0} mt="md" w="100%" maw="100%">
<Stack gap="xs"> <Stack gap="xs">
<Text px="md" size="10px" lh={0} c="dimmed"> <Text px="md" size="10px" lh={0} c="dimmed">
Showing {filteredAndSortedStats.length} of {playerStats.length} players Showing {filteredAndSortedStats.length} of {playerStats.length} players
@@ -451,7 +450,7 @@ const PlayerStatsTable = () => {
</Text> </Text>
)} )}
</Stack> </Stack>
</Container> </Box>
); );
}; };