fix: 어드민 하위 페이지 스크롤 문제 수정
일정 목록 페이지(/admin/schedule)만 내부 스크롤 처리하도록 변경하여 봇 관리, 사전 관리, 일정 추가 등 하위 페이지에서 스크롤이 정상 작동하도록 수정 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1c9b30b783
commit
607457790d
1 changed files with 2 additions and 2 deletions
|
|
@ -9,8 +9,8 @@ import Header from './Header';
|
||||||
function AdminLayout({ user, children }) {
|
function AdminLayout({ user, children }) {
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
|
||||||
// 일정 관리 페이지는 내부 스크롤 처리
|
// 일정 목록 페이지만 내부 스크롤 처리 (하위 페이지는 레이아웃 스크롤 사용)
|
||||||
const isSchedulePage = location.pathname.includes('/admin/schedule');
|
const isSchedulePage = location.pathname === '/admin/schedule';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="h-screen overflow-hidden flex flex-col bg-gray-50">
|
<div className="h-screen overflow-hidden flex flex-col bg-gray-50">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue