Skip to content

Commit

Permalink
Merge pull request #203 from gw-lim/fix/artist-drag
Browse files Browse the repository at this point in the history
⚡️ fix: 아티스트 드래그 UI 수정
  • Loading branch information
gw-lim authored Mar 19, 2024
2 parents 3f9b8f1 + 689ddcf commit 1c9ca7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/(route)/artist/[artistId]/_hooks/useArtistSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface BottomSheetMetrics {

const SNAP = {
top: 260,
bottom: 650,
bottom: 630,
};

const useArtistSheet = () => {
Expand Down Expand Up @@ -45,8 +45,8 @@ const useArtistSheet = () => {
node.style.setProperty("transform", "translateY(0px)");
metrics.current.position = 0;
} else if (currentY < SNAP.top) {
node.style.setProperty("transform", `translateY(-320px)`);
metrics.current.position = -320;
node.style.setProperty("transform", `translateY(${500 - window.innerHeight}px)`);
metrics.current.position = 500 - window.innerHeight;
}

metrics.current.isContentAreaTouched = false;
Expand Down
2 changes: 1 addition & 1 deletion app/(route)/artist/[artistId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const ArtistIdPage = () => {
{mapVar.toggleTab && (
<div
ref={sheet}
className="fixed top-[calc(100vh-384px)] flex min-h-84 w-full flex-col gap-16 rounded-t-lg bg-white-black pt-28 shadow-2xl tablet:absolute tablet:bottom-0 tablet:top-0 tablet:max-h-full tablet:w-360 tablet:rounded-none tablet:border tablet:border-gray-100 tablet:border-t-transparent tablet:pt-20 tablet:shadow-none pc:top-0 pc:h-[84rem] pc:w-400 pc:rounded-l-lg pc:border-t-gray-100 pc:py-20"
className="fixed top-[58%] flex min-h-84 w-full flex-col gap-16 rounded-t-lg bg-white-black pt-28 shadow-2xl tablet:absolute tablet:bottom-0 tablet:top-0 tablet:max-h-full tablet:w-360 tablet:rounded-none tablet:border tablet:border-gray-100 tablet:border-t-transparent tablet:pt-20 tablet:shadow-none pc:top-0 pc:h-[84rem] pc:w-400 pc:rounded-l-lg pc:border-t-gray-100 pc:py-20"
>
<div className="absolute left-[calc((100%-64px)/2)] top-12 h-4 w-64 rounded-sm bg-gray-700 tablet:hidden" />
<div className="flex flex-row items-center justify-start gap-12 px-20 pc:w-full">
Expand Down

0 comments on commit 1c9ca7b

Please sign in to comment.