File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export default function Header() {
39
39
// 뒤로가기 버튼이 필요한 페이지인지 확인하는 로직
40
40
const isPostPage = pathname ?. startsWith ( "/posts/" ) ;
41
41
const isProjectDetailPage =
42
- pathname === "/projects" &&
42
+ pathname === "/projects/ " &&
43
43
typeof window !== "undefined" &&
44
44
window . location . search . includes ( "project=" ) ;
45
45
@@ -387,19 +387,22 @@ export default function Header() {
387
387
< motion . button
388
388
whileHover = { { scale : 1.05 } }
389
389
whileTap = { { scale : 0.95 } }
390
- className = "rounded-full h-8 w-8 sm:h-9 sm:w-9 flex items-center justify-center bg-primary/10 text-primary xl:hidden"
390
+ className = { cn (
391
+ "rounded-full h-8 w-8 sm:h-9 sm:w-9 flex items-center justify-center bg-primary/10 text-primary" ,
392
+ pathname != "/projects/" ? "xl:hidden" : "" ,
393
+ ) }
391
394
onClick = { ( ) => document . getElementById ( "sidebar-trigger" ) ?. click ( ) }
392
395
aria-label = "사이드바 메뉴"
393
396
>
394
397
< Menu className = "h-[1rem] w-[1rem] sm:h-[1.2rem] sm:w-[1.2rem]" />
395
398
</ motion . button >
396
399
</ div >
397
- < CommandDialog
398
- open = { open }
400
+ < CommandDialog
401
+ open = { open }
399
402
onOpenChange = { ( isOpen ) => {
400
403
setOpen ( isOpen ) ;
401
404
if ( ! isOpen ) {
402
- setSearchQuery ( '' ) ;
405
+ setSearchQuery ( "" ) ;
403
406
}
404
407
} }
405
408
>
You can’t perform that action at this time.
0 commit comments