Skip to content

Commit

Permalink
fix(intro card): hide plant corner detail on mobile
Browse files Browse the repository at this point in the history
Avoids layout complications.
  • Loading branch information
joekotvas committed Nov 13, 2023
1 parent b5f2ea4 commit 1044c8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const Description = ({ description }) => {
const body = words.slice(titleLength).join(" ");
console.log("body length:", body.length);
return description ? (
<div className="description pr-8 pt-2 pl-20">
<div className="description px-8 pt-2 md:pl-20">
<Heading level="h2" variant="lava" className="leading-none">
<span className={title.length > 10 ? "text-clamp-h3" : ""}>
{title}
Expand Down
4 changes: 2 additions & 2 deletions src/features/recipes/components/recipe-details/IntroCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const IntroCard = ({ name, imageUrl, description }) => {
<div className="absolute left-0 top-0 z-0 h-full overflow-hidden rounded-tl-[1rem] pt-[20rem] md:pt-0">
<PlantsTL
resolution="128"
className="select-none pointer-events-none block h-full w-[8rem] lg:w-[8rem] overflow-hidden lg:rounded-tl-[1rem]"
className="pointer-events-none hidden h-full w-[8rem] select-none overflow-hidden md:block lg:w-[8rem] lg:rounded-tl-[1rem]"
/>
</div>
<div className="intro-wrapper relative flex-row-reverse gap-4 md:flex">
Expand All @@ -30,7 +30,7 @@ export const IntroCard = ({ name, imageUrl, description }) => {
</Card>
);
return (
<div className="picture-wrapper md:col-start-1 md:col-end-13 md:row-start-3 lg:col-start-5 lg:row-start-1 2xl:col-start-4 overflow-hidden rounded-xl">
<div className="picture-wrapper overflow-hidden rounded-xl md:col-start-1 md:col-end-13 md:row-start-3 lg:col-start-5 lg:row-start-1 2xl:col-start-4">
<picture className="w-full">
<img
src={imageUrl}
Expand Down

0 comments on commit 1044c8d

Please sign in to comment.