File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
apps/web/client/src/app/project/[id]/_components/bottom-bar Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,12 @@ export const BottomBar = observer(() => {
68
68
69
69
return (
70
70
< AnimatePresence mode = "wait" >
71
- { editorEngine . state . editorMode !== EditorMode . PREVIEW && (
72
- < motion . div
71
+ < motion . div
73
72
initial = { { opacity : 0 , y : 20 } }
74
- animate = { { opacity : 1 , y : 0 } }
75
- exit = { { opacity : 0 , y : 20 } }
73
+ animate = { {
74
+ opacity : editorEngine . state . editorMode !== EditorMode . PREVIEW ? 1 : 0 ,
75
+ y : editorEngine . state . editorMode !== EditorMode . PREVIEW ? 0 : 20 ,
76
+ } }
76
77
className = "absolute left-1/2 -translate-x-1/2 bottom-4 flex flex-col border-[0.5px] border-border p-1 px-1 bg-background rounded-lg backdrop-blur drop-shadow-xl overflow-hidden"
77
78
transition = { {
78
79
type : 'spring' ,
@@ -81,6 +82,10 @@ export const BottomBar = observer(() => {
81
82
stiffness : 200 ,
82
83
damping : 25 ,
83
84
} }
85
+ style = { {
86
+ pointerEvents : editorEngine . state . editorMode !== EditorMode . PREVIEW ? 'auto' : 'none' ,
87
+ visibility : editorEngine . state . editorMode !== EditorMode . PREVIEW ? 'visible' : 'hidden'
88
+ } }
84
89
>
85
90
< TerminalArea >
86
91
< ToggleGroup
@@ -119,7 +124,6 @@ export const BottomBar = observer(() => {
119
124
</ ToggleGroup >
120
125
</ TerminalArea >
121
126
</ motion . div >
122
- ) }
123
127
</ AnimatePresence >
124
128
) ;
125
129
} ) ;
You can’t perform that action at this time.
0 commit comments