Skip to content

Commit

Permalink
refactor: images sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor committed Nov 17, 2023
1 parent e49c2f4 commit 435d05a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
"max-len": "error",
"no-shadow": "off",
"no-unused-vars": "off",
"no-useless-return": "error",
"object-shorthand": "error",
"prefer-const": "error",
"prefer-template": "error",
Expand Down
5 changes: 5 additions & 0 deletions src/components/Intro_panel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ const IntroPanel = (props: Props) => {
justifyContent="space-between"
minHeight="100%"
overflow="hidden"
sx={{
[theme.breakpoints.down("tablet")]: {
maxWidth: "calc(100vw - 40px)",
},
}}
>
<Box p="24px">
<Stack
Expand Down
2 changes: 1 addition & 1 deletion src/components/cardSwiper/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box, Stack, useTheme } from "@mui/material";
import Image from "next/image";
import Image from "next/legacy/image";
import type { CSSProperties } from "react";
import SwiperCore, { Navigation } from "swiper";
import { Swiper, SwiperSlide } from "swiper/react";
Expand Down
1 change: 1 addition & 0 deletions src/components/intro_card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const IntroCard = (props: Props) => {
display: "flex",
flexDirection: "column",
borderRadius: "24px",
maxWidth: "calc(100vw - 40px)",
background: "#FFF",
boxShadow:
"0px 10px 32px -4px rgba(96, 60, 238, 0.10), 0px 6px 14px -6px rgba(96, 60, 238, 0.28)",
Expand Down

0 comments on commit 435d05a

Please sign in to comment.