Skip to content

Commit 8cade21

Browse files
authored
🎨 style: Reduce Transition Duration For Nav And Header from #7653 (#7691)
1 parent c7f2ee3 commit 8cade21

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎client/src/components/Chat/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function Header() {
3939
<div className="mx-1 flex items-center gap-2">
4040
<div
4141
className={`flex items-center gap-2 ${
42-
!isSmallScreen ? 'transition-all duration-500 ease-in-out' : ''
42+
!isSmallScreen ? 'transition-all duration-200 ease-in-out' : ''
4343
} ${
4444
!navVisible
4545
? 'translate-x-0 opacity-100'
@@ -51,7 +51,7 @@ export default function Header() {
5151
</div>
5252
<div
5353
className={`flex items-center gap-2 ${
54-
!isSmallScreen ? 'transition-all duration-500 ease-in-out' : ''
54+
!isSmallScreen ? 'transition-all duration-200 ease-in-out' : ''
5555
} ${!navVisible ? 'translate-x-0' : 'translate-x-[-100px]'}`}
5656
>
5757
<ModelSelector startupConfig={startupConfig} />

‎client/src/components/Nav/Nav.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const NavMask = memo(
3030
id="mobile-nav-mask-toggle"
3131
role="button"
3232
tabIndex={0}
33-
className={`nav-mask transition-opacity duration-500 ease-in-out ${navVisible ? 'active opacity-100' : 'opacity-0'}`}
33+
className={`nav-mask transition-opacity duration-200 ease-in-out ${navVisible ? 'active opacity-100' : 'opacity-0'}`}
3434
onClick={toggleNavVisible}
3535
onKeyDown={(e) => {
3636
if (e.key === 'Enter' || e.key === ' ') {
@@ -186,7 +186,7 @@ const Nav = memo(
186186
<div
187187
data-testid="nav"
188188
className={cn(
189-
'nav active max-w-[320px] flex-shrink-0 transform overflow-x-hidden bg-surface-primary-alt transition-all duration-500 ease-in-out',
189+
'nav active max-w-[320px] flex-shrink-0 transform overflow-x-hidden bg-surface-primary-alt transition-all duration-200 ease-in-out',
190190
'md:max-w-[260px]',
191191
)}
192192
style={{
@@ -197,7 +197,7 @@ const Nav = memo(
197197
<div className="h-full w-[320px] md:w-[260px]">
198198
<div className="flex h-full flex-col">
199199
<div
200-
className={`flex h-full flex-col transition-opacity duration-500 ease-in-out ${navVisible ? 'opacity-100' : 'opacity-0'}`}
200+
className={`flex h-full flex-col transition-opacity duration-200 ease-in-out ${navVisible ? 'opacity-100' : 'opacity-0'}`}
201201
>
202202
<div className="flex h-full flex-col">
203203
<nav

0 commit comments

Comments
 (0)