Skip to content

Commit

Permalink
UI bugfix for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hppanpaliya committed May 1, 2023
1 parent 5224103 commit 56eec1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Chatbot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Chatbot() {
return (
<>
<Box
height={isSmallScreen ? `calc(${window.innerHeight} - 58px)` : `calc(${window.innerHeight} - 64px)`} // 100svh - 58px --
height={isSmallScreen ? window.innerHeight - 58 : window.innerHeight - 64} // 100svh - 58px --
display="flex"
flexDirection="column"
overflow="hidden"
Expand Down
2 changes: 1 addition & 1 deletion src/components/DrawingApp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const DrawingApp = () => {
} = useDrawing(color, brushSize);

return (
<div className="drawingApp" ref={containerRef} style={{ height: `calc(${window.innerHeight}) - 50px - 1rem` }}>
<div className="drawingApp" ref={containerRef} style={{ height: `calc(${window.innerHeight}px - 50px - 1rem)` }}>
<div ref={topRef}></div>
<Box
sx={{
Expand Down

0 comments on commit 56eec1b

Please sign in to comment.