Skip to content

Commit

Permalink
[SP3] 솝트어때요? isInView 훅의 마진 진짜 고침 (#346)
Browse files Browse the repository at this point in the history
* fix: 마진 진짜 고침

* fix: remove margin

* r
  • Loading branch information
SeojinSeojin authored Dec 23, 2023
1 parent 1277204 commit 7da16c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/views/MainPage/components/Comment/Card/Desktop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ export default function CommentCard({
const mediumHeight = useMediaQuery({ query: '(max-height: 1000px)' });
const longHeight = useMediaQuery({ query: '(min-height: 1100px' });

const margin = veryShortHeight
? '0'
: desktop
const margin = desktop
? longHeight
? '-600px 0px 0px 0px'
: shortHeight
? '-500px 0px -200px 0px'
: veryShortHeight
? '-500px 0px 0px 0px'
: '-600px 0px -200px 0px'
: shortHeight
? '-300px 0px -200px 0px'
: mediumHeight
? '-486px 0px -324px 0px'
: '-648px 0px -324px 0px';
Expand Down

0 comments on commit 7da16c2

Please sign in to comment.