Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
황 태환 committed Feb 26, 2024
1 parent f1d41ab commit 2973619
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(routes)/memos/_components/action-button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import MeatballIcon from '@/assets/icons/meatball_20x20.svg';
import { Popover, PopoverContent, PopoverTrigger } from '@radix-ui/react-popover';
import { Popover, PopoverContent, PopoverPortal, PopoverTrigger } from '@radix-ui/react-popover';
import { PencilIcon, TrashIcon } from 'lucide-react';

export default function ActionButton({ onClick, onEdit }: { onClick: () => void; onEdit: () => void }) {
Expand Down
7 changes: 7 additions & 0 deletions src/components/character-detail/character-exp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { motion } from 'framer-motion';
import { useEffect, useState } from 'react';
import { Dialog, DialogContent, DialogOverlay } from '../ui-shadcn/dialog';
import { DialogPortal } from '@radix-ui/react-dialog';

type Props = {
animate?: boolean;
Expand All @@ -25,6 +26,12 @@ export default function CharacterExp({ animate = false, currentExp, nextExp, lev
}
}, [isAnimating, animate, expAnimating, currentExp]);

if (isAnimating) {
document.body.style.overflow = 'hidden';
} else {
document.body.style.overflow = 'auto';
}

return (
<>
{!isAnimating ? (
Expand Down

0 comments on commit 2973619

Please sign in to comment.