Skip to content

Commit

Permalink
Remove weird scroll bars on outer progress container.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Oct 9, 2024
1 parent 98b13d5 commit efde08d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/renderer/screens/ProgressOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,20 @@ export interface ProgressUpdate {
overwrite?: boolean;
}

const outerContainerStyle: React.CSSProperties = {
width: '100%',
height: '100vh',
overflow: 'hidden',
};

const containerStyle: React.CSSProperties = {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center', // Center vertically
width: '100%',
height:'100%',
overflow: 'scroll',
padding: '20px',
};

Expand Down Expand Up @@ -79,6 +88,8 @@ function ProgressOverlay(): React.ReactElement {
}, []);

return (
<div style={outerContainerStyle}>

<div style={containerStyle}>
<div style={loadingTextStyle} id="loading-text">
{status}
Expand All @@ -87,6 +98,7 @@ function ProgressOverlay(): React.ReactElement {
{status !== 'Finishing...' && <AnimatedLogDisplay logs={logs} />}
</div>
</div>
</div>
);
}

Expand Down

0 comments on commit efde08d

Please sign in to comment.