Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b6d3b07

Browse files
fix: Prevent returning footer on Assistant page on mobile
1 parent 20177fd commit b6d3b07

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‎

Lines changed: 0 additions & 10 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /