Browse Source

fix: project unit overflow on small screens

pull/2/head
Muthu Kumar 5 months ago
parent
commit
9a309536d2
Failed to extract signature
  1. 2
      src/components/Container.tsx
  2. 2
      src/pages/main/Projects.tsx

2
src/components/Container.tsx

@ -159,7 +159,7 @@ const Container: React.FC<{
className={css` className={css`
padding-block-start: 15rem; padding-block-start: 15rem;
padding-block-end: 8rem; padding-block-end: 8rem;
padding-inline: calc(100vw / 8); padding-inline: 10vw;
overflow: hidden; overflow: hidden;
min-height: 100vh; min-height: 100vh;
position: relative; position: relative;

2
src/pages/main/Projects.tsx

@ -107,7 +107,7 @@ const Exp: React.FC = () => {
<div <div
className={css` className={css`
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, 20rem); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
gap: 1rem; gap: 1rem;
width: 100%; width: 100%;
`}> `}>

Loading…
Cancel
Save