Skip to content

Commit c7aca2c

Browse files
author
Bogdan Tsechoev
committed
Merge branch 'fix_assistant_footer' into 'master'
fix: Prevent returning footer on Assistant page on mobile See merge request postgres-ai/database-lab!933
2 parents 20177fd + b6d3b07 commit c7aca2c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

ui/packages/platform/src/pages/Bot/Command/Command.tsx

-10
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,6 @@ export const Command = React.memo((props: Props) => {
135135
top: 0,
136136
behavior: 'smooth'
137137
})
138-
const footer: HTMLElement | null = document.querySelector("footer")
139-
if (footer) footer.style.display = 'flex';
140-
}
141-
}
142-
143-
const handleFocus = () => {
144-
if ((window.innerWidth < theme.breakpoints.values.sm) && isMobile) {
145-
const footer: HTMLElement | null = document.querySelector("footer")
146-
if (footer) footer.style.display = 'none';
147138
}
148139
}
149140

@@ -205,7 +196,6 @@ export const Command = React.memo((props: Props) => {
205196
onKeyDown={handleKeyDown}
206197
onChange={handleChange}
207198
onBlur={handleBlur}
208-
onFocus={handleFocus}
209199
InputProps={{
210200
inputRef,
211201
classes: {

0 commit comments

Comments
 (0)