Skip to content

Commit

Permalink
fix(regression): chat on mobile was not fully visible in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Jul 8, 2024
1 parent 0eafc5e commit 0a56348
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/react/Chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ div.chat-wrapper {
pointer-events: none;
overflow: hidden;
width: 100%;
height: 100%;
scrollbar-width: var(--thin-if-firefox);
}

Expand Down
2 changes: 1 addition & 1 deletion src/react/ChatProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default () => {
let items = [] as string[]
try {
items = await bot.tabComplete(completeValue, true, true)
} catch (err) {}
} catch (err) { }
if (typeof items[0] === 'object') {
// @ts-expect-error
if (items[0].match) items = items.map(i => i.match)
Expand Down
2 changes: 1 addition & 1 deletion src/scaleInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ window.currentScaling = currentScaling

const setScale = () => {
const scaleValues = [
{ maxWidth: 971, maxHeight: 670, scale: 2 },
{ maxWidth: 971, maxHeight: null, scale: 2 },
{ maxWidth: null, maxHeight: 390, scale: 1.5 }, // todo allow to set the scaling at 360-400 (dynamic scaling setting)
{ maxWidth: 590, maxHeight: null, scale: 1 },

Expand Down

0 comments on commit 0a56348

Please sign in to comment.