Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/board/ImageList/ImageCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function ImageCard({ item, className, imgClassName, removable, onRemove }: Image
src={item.fileUrl}
alt={item.fileName}
draggable={false}
className={cn('object-cover', item.uploaded === false && 'opacity-50', imgClassName)}
className={cn(item.uploaded === false && 'opacity-50', imgClassName)}
/>

{item.uploaded === false && <LoadingOverlay />}
Expand Down
2 changes: 1 addition & 1 deletion src/components/board/ImageList/ImageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function ImageList({ files, removable, onRemove }: ImageListProps) {
'min-w-[60px] shrink-0 self-stretch',
index === files.length - 1 && 'mr-800',
)}
imgClassName="h-full w-auto object-contain"
imgClassName="h-full max-w-full object-contain"
removable={removable}
onRemove={onRemove}
/>
Expand Down
3 changes: 0 additions & 3 deletions src/hooks/useNavigationGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,8 @@ function useNavigationGuard({ enabled }: UseNavigationGuardOptions) {
useEffect(() => {
const handlePopState = () => {
if (isLeaving.current) return;
// Next.js App Router는 pushState/replaceState 호출 시 popstate를 디스패치한다.
// guard entry 위에 있다면 우리 코드가 pushState한 것이므로 무시한다.
if (isGuardEntry()) return;

// guard가 비활성 상태면 guard entry를 투명하게 건너뛴다
if (!enabledRef.current) {
if (hasGuardEntry.current) {
hasGuardEntry.current = false;
Expand Down
Loading