반응형 수정정

This commit is contained in:
2025-12-15 19:45:24 +09:00
parent 44bca5c9de
commit 8599d4b314
2 changed files with 42 additions and 40 deletions
@@ -147,16 +147,16 @@ export function Header({ viewOnly }: { viewOnly?: boolean }) {
}, []);
return (
<header className="sticky top-0 z-30 box-border flex flex-col sm:flex-row h-auto sm:h-[6rem] w-full items-center justify-between border-b border-solid border-border bg-background">
<header className="sticky top-0 z-30 box-border flex flex-col sm:flex-row h-[6rem] w-full items-center justify-between border-b border-solid border-border bg-background">
<div className="flex items-center px-2 sm:px-4 md:px-6 w-full sm:w-auto justify-between sm:justify-start">
<div className="flex items-center gap-2 sm:gap-4">
<SidebarTrigger className="size-8 sm:size-10 md:size-12 !bg-transparent p-2 hover:!bg-accent [&>svg]:!size-full [&>svg]:text-foreground" />
<h1 className="flex flex-col items-center gap-1 sm:gap-2">
<SidebarTrigger className="size-12 !bg-transparent p-2 hover:!bg-accent [&>svg]:!size-full [&>svg]:text-foreground" />
<h1 className="flex flex-col items-center gap-2">
{mounted ? (
<img
ref={logoRef}
src={getLogoImage()}
className="h-[2rem] sm:h-[2.5rem] md:h-[3rem]"
className="h-[3rem]"
alt="logo"
onLoad={() => {
if (logoRef.current) {
@@ -165,10 +165,10 @@ export function Header({ viewOnly }: { viewOnly?: boolean }) {
}}
/>
) : (
<Skeleton className="h-[2rem] sm:h-[2.5rem] md:h-[3rem] w-[10rem] sm:w-[12rem] md:w-[15rem]" />
<Skeleton className="h-[3rem] w-[15rem]" />
)}
<span
className="text-xs sm:text-sm md:text-[1.2rem] font-semibold text-foreground"
className="text-[1.2rem] font-semibold text-foreground"
style={{
letterSpacing: logoWidth > 0 ? `${(logoWidth - 120) / (siteInfo?.siteNm?.length || 1)}px` : '0.05em'
}}
@@ -183,16 +183,16 @@ export function Header({ viewOnly }: { viewOnly?: boolean }) {
{mounted && (
<Button
onClick={() => setIsMobileMenuOpen(!isMobileMenuOpen)}
className="m-0 flex h-[2.5rem] items-center !bg-background px-2 py-0 text-label"
className="m-0 flex h-[3rem] items-center !bg-background px-3 py-0 text-label"
>
<i className={`diveicon ${isMobileMenuOpen ? 'di-close' : 'di-menu'} static text-xl`} />
<i className={`diveicon ${isMobileMenuOpen ? 'di-menu-close-fill' : 'di-menu-open-fill'} static text-4xl`} />
</Button>
)}
{mounted && isLoggedIn && (
<Popover>
<PopoverTrigger asChild>
<Button className="group m-0 flex h-[2.5rem] items-center !bg-background px-2 py-0 text-label">
<i className="diveicon di-account-circle static translate-y-0.5 pr-1 text-xl" />
<Button className="group m-0 flex h-[3rem] items-center !bg-background px-2 py-0 text-label">
<i className="diveicon di-account-circle static translate-y-0.5 pr-2 text-3xl" />
<span className="text-xs hidden xs:inline">{userInfo?.userName}</span>
<i className="diveicon di-chevron-down static p-0 transition-transform group-data-[state=open]:rotate-180" />
</Button>
@@ -223,7 +223,7 @@ export function Header({ viewOnly }: { viewOnly?: boolean }) {
<a
key={site.siteId}
href={site.dmnAddr}
className="text-base font-medium text-foreground hover:text-primary transition-colors w-full text-center py-2"
className="text-xl font-medium text-foreground hover:text-primary transition-colors w-full text-center py-2"
target="_blank"
rel="noopener noreferrer"
onClick={() => setIsMobileMenuOpen(false)}