Skip to content

Commit

Permalink
Make nicer on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
gausie committed Apr 3, 2024
1 parent 36142b3 commit ab8d3a2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/excavator-web/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function App() {
return (
<Document>
<ChakraProvider theme={theme}>
<Container maxW="container.xl" pt={10}>
<Container maxW={["100%", null, "container.xl"]} pt={10}>
<Stack spacing={10}>
<Heading alignSelf="center">
<Link to="/">Excavator ♠️</Link>
Expand Down
18 changes: 16 additions & 2 deletions packages/excavator-web/app/routes/projects.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
Alert,
Tab,
TabIndicator,
TabList,
TabPanel,
TabPanels,
Expand Down Expand Up @@ -51,13 +52,26 @@ export default function Projects() {
return (
<Tabs
defaultIndex={projectIndex}
maxWidth="100%"
onChange={(i) => navigate(`./${slug(projects[i])}`)}
>
<TabList>
<TabList
overflowX="scroll"
sx={{
scrollbarWidth: "none",
"::-webkit-scrollbar": {
display: "none",
},
}}
pb={1}
>
{projects.map((p) => (
<Tab key={p}>{p}</Tab>
<Tab key={p} sx={{ textWrap: "nowrap" }}>
{p}
</Tab>
))}
</TabList>
<TabIndicator />
<TabPanels>
<Outlet />
</TabPanels>
Expand Down

0 comments on commit ab8d3a2

Please sign in to comment.