Skip to content

Commit

Permalink
hotfix: merge modal scroll and image error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sumi-0011 committed Nov 18, 2024
1 parent 01c00df commit 570e9cb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion apps/web/src/app/[locale]/mypage/ProfileSection.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @next/next/no-img-element */
'use client';

import { memo } from 'react';
Expand Down Expand Up @@ -46,7 +47,7 @@ export const ProfileSection = memo(
return (
<section className={profileSectionStyle}>
<div className={profileImageStyle}>
<Image src={data.profileImage ?? ''} alt="profile" width={160} height={160} />
<img src={data.profileImage ?? ''} alt="profile" width={160} height={160} />
</div>
<div className={profileTextStyle}>
<p className={profileNameStyle}>{data?.username}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const listStyle = cx(
overflowY: 'auto',
display: 'flex',
flexWrap: 'wrap',
maxHeight: 'calc(100vh - 542px)',
maxHeight: 'calc(100vh - 780px)',
overflow: 'auto',
}),
customScrollStyle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const MergePreview = ({ materialPersona, targetPersona }: MergePersonaPro

const containerStyle = css({
position: 'relative',
padding: '32px',
padding: '32px 32px 12px',
overflow: 'hidden',
minHeight: 'fit-content',
});
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/components/GNB/DesktopGNB.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @next/next/no-img-element */
import Image from 'next/image';
import { getTranslations } from 'next-intl/server';
import { css, cx } from '_panda/css';
Expand Down Expand Up @@ -41,7 +42,7 @@ export async function DesktopGNB() {
<a href="/mypage" className={profileStyle}>
<>
<div className="profile-image">
<Image src={session.user.image} alt="profile" width={160} height={160} />
<img src={session.user.image} alt="profile" width={160} height={160} />
</div>
<button className={center()}>
<span className="profile-name">{session.user.name}</span>
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/components/GNB/MobileGNB.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @next/next/no-img-element */
'use client';

import type { ReactNode } from 'react';
Expand Down Expand Up @@ -48,7 +49,7 @@ export const MobileGNB = () => {
{isAuth && (
<Link href="/mypage">
<div className="profile-image">
<Image src={data.user.image} alt="profile" width={28} height={28} />
<img src={data.user.image} alt="profile" width={28} height={28} />
</div>
</Link>
)}
Expand Down

0 comments on commit 570e9cb

Please sign in to comment.