261013_02_ENH: 리스트 관리·컨택 진행 화면 모바일 UI 개선
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -48,69 +48,79 @@ export function AppHeader({
|
||||
const ctiConnectionStatus = useCtiConnectionStatus();
|
||||
const isCtiConnected = ctiConnectionStatus === "open";
|
||||
|
||||
const showProjectTitle = isViewProjectTitle && !!projectName;
|
||||
|
||||
return (
|
||||
<KriHeader
|
||||
logo={
|
||||
<div className="flex h-10 w-20 items-center justify-center">
|
||||
<Image
|
||||
src="/kri_logo.png"
|
||||
alt="KRI 로고"
|
||||
width={120}
|
||||
height={40}
|
||||
className="object-contain"
|
||||
priority
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
homePath="/"
|
||||
menus={isContactPage? []:topMenus}
|
||||
activeMenuId={activeTopId}
|
||||
menuOpen={menuOpen}
|
||||
showMenuButton={!isMain && !isContactPage}
|
||||
onToggleMenu={onToggleMenu}
|
||||
onNavigate={(path) => {if(!isContactPage) onNavigate(path)}}
|
||||
className="border-gray-200 bg-white"
|
||||
innerClassName="h-16 px-4"
|
||||
center={
|
||||
isViewProjectTitle && projectName ? (
|
||||
<h1 className="ml-3 text-2xl font-bold">{projectName}</h1>
|
||||
) : null
|
||||
}
|
||||
right={
|
||||
<>
|
||||
<div className="flex items-center gap-1 border-r pr-4">
|
||||
<Button variant="ghost" size="icon" onClick={decreaseFontSize} title="폰트 작게">
|
||||
<ZoomOut className="h-4 w-4" />
|
||||
</Button>
|
||||
<span className="min-w-[3rem] text-center text-xs text-gray-500">{fontSize}px</span>
|
||||
<Button variant="ghost" size="icon" onClick={increaseFontSize} title="폰트 크게">
|
||||
<ZoomIn className="h-4 w-4" />
|
||||
</Button>
|
||||
<>
|
||||
<KriHeader
|
||||
logo={
|
||||
<div className="flex h-10 w-20 items-center justify-center">
|
||||
<Image
|
||||
src="/kri_logo.png"
|
||||
alt="KRI 로고"
|
||||
width={120}
|
||||
height={40}
|
||||
className="object-contain"
|
||||
priority
|
||||
/>
|
||||
</div>
|
||||
<Button variant="ghost" size="icon-lg" onClick={onOpenReserveSearch} title="예약 내역 조회">
|
||||
<CalendarClock className="size-6" />
|
||||
</Button>
|
||||
<span className="hidden items-center gap-1.5 text-sm text-gray-600 sm:inline-flex">
|
||||
{userInfo?.userName || ""}
|
||||
{seatNo ? (
|
||||
<span className="inline-flex items-center gap-1">
|
||||
{`(${seatNo})`}
|
||||
<span
|
||||
className={cn(
|
||||
"inline-block h-2 w-2 rounded-full",
|
||||
isCtiConnected ? "bg-green-500" : "bg-red-500",
|
||||
)}
|
||||
title={isCtiConnected ? "CTI 연결됨" : "CTI 연결 안됨"}
|
||||
/>
|
||||
</span>
|
||||
) : null}
|
||||
</span>
|
||||
<Button variant="ghost" size="sm" className="gap-2" onClick={() => onNavigate("/logout")}>
|
||||
<LogOut className="h-4 w-4" />
|
||||
<span className="hidden sm:inline">로그아웃</span>
|
||||
</Button>
|
||||
</>
|
||||
}
|
||||
/>
|
||||
}
|
||||
homePath="/"
|
||||
menus={isContactPage? []:topMenus}
|
||||
activeMenuId={activeTopId}
|
||||
menuOpen={menuOpen}
|
||||
showMenuButton={!isMain && !isContactPage}
|
||||
onToggleMenu={onToggleMenu}
|
||||
onNavigate={(path) => {if(!isContactPage) onNavigate(path)}}
|
||||
className="border-gray-200 bg-white"
|
||||
innerClassName="h-16 px-4"
|
||||
center={
|
||||
showProjectTitle ? (
|
||||
<h1 className="ml-3 hidden truncate text-2xl font-bold lg:block" title={projectName}>{projectName}</h1>
|
||||
) : null
|
||||
}
|
||||
right={
|
||||
<>
|
||||
<div className="flex items-center gap-1 border-r pr-4">
|
||||
<Button variant="ghost" size="icon" onClick={decreaseFontSize} title="폰트 작게">
|
||||
<ZoomOut className="h-4 w-4" />
|
||||
</Button>
|
||||
<span className="min-w-[3rem] text-center text-xs text-gray-500">{fontSize}px</span>
|
||||
<Button variant="ghost" size="icon" onClick={increaseFontSize} title="폰트 크게">
|
||||
<ZoomIn className="h-4 w-4" />
|
||||
</Button>
|
||||
</div>
|
||||
<Button variant="ghost" size="icon-lg" onClick={onOpenReserveSearch} title="예약 내역 조회">
|
||||
<CalendarClock className="size-6" />
|
||||
</Button>
|
||||
<span className="hidden items-center gap-1.5 text-sm text-gray-600 sm:inline-flex">
|
||||
{userInfo?.userName || ""}
|
||||
{seatNo ? (
|
||||
<span className="inline-flex items-center gap-1">
|
||||
{`(${seatNo})`}
|
||||
<span
|
||||
className={cn(
|
||||
"inline-block h-2 w-2 rounded-full",
|
||||
isCtiConnected ? "bg-green-500" : "bg-red-500",
|
||||
)}
|
||||
title={isCtiConnected ? "CTI 연결됨" : "CTI 연결 안됨"}
|
||||
/>
|
||||
</span>
|
||||
) : null}
|
||||
</span>
|
||||
<Button variant="ghost" size="sm" className="gap-2" onClick={() => onNavigate("/logout")}>
|
||||
<LogOut className="h-4 w-4" />
|
||||
<span className="hidden sm:inline">로그아웃</span>
|
||||
</Button>
|
||||
</>
|
||||
}
|
||||
/>
|
||||
{/* 모바일(lg 미만)은 헤더 공간이 좁아 프로젝트명을 헤더 아래 한 줄로 내려 표시한다. */}
|
||||
{showProjectTitle ? (
|
||||
<div className="border-b border-gray-200 bg-white px-4 py-2 lg:hidden">
|
||||
<h1 className="truncate text-center text-lg font-bold" title={projectName}>{projectName}</h1>
|
||||
</div>
|
||||
) : null}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user