Skip to content

Commit

Permalink
Merge branch 'fix_assistant_footer' into 'master'
Browse files Browse the repository at this point in the history
fix: Prevent returning footer on Assistant page on mobile

See merge request postgres-ai/database-lab!933
  • Loading branch information
Bogdan Tsechoev committed Nov 13, 2024
2 parents 20177fd + b6d3b07 commit c7aca2c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ui/packages/platform/src/pages/Bot/Command/Command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,6 @@ export const Command = React.memo((props: Props) => {
top: 0,
behavior: 'smooth'
})
const footer: HTMLElement | null = document.querySelector("footer")
if (footer) footer.style.display = 'flex';
}
}

const handleFocus = () => {
if ((window.innerWidth < theme.breakpoints.values.sm) && isMobile) {
const footer: HTMLElement | null = document.querySelector("footer")
if (footer) footer.style.display = 'none';
}
}

Expand Down Expand Up @@ -205,7 +196,6 @@ export const Command = React.memo((props: Props) => {
onKeyDown={handleKeyDown}
onChange={handleChange}
onBlur={handleBlur}
onFocus={handleFocus}
InputProps={{
inputRef,
classes: {
Expand Down

0 comments on commit c7aca2c

Please sign in to comment.