Skip to content

Commit

Permalink
fix: console background color scroll bug (#2709)
Browse files Browse the repository at this point in the history
Fixes #2698

There were actually two underlying issues fixed here:
1. If you hard scroll down on any page in dark mode, the `<body>`
element would not respect dark mode, so you could still see white bg
underneath. That's gross. It's fixed now in `index.html`.
2. On the infrastructure page specifically, we never set the page body's
overflow behavior to scroll, so instead it would overflow the container.
Technically, with 1 fixed, you wouldn't even notice this issue, but it
was still worth fixing to future-proof the page.
  • Loading branch information
deniseli authored Sep 17, 2024
1 parent 39ed291 commit c19246a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/console/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet" />
</head>

<body class="bg-white h-full w-full">
<body class="bg-white dark:bg-gray-800 h-full w-full">
<div id="root" class="h-full"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const InfrastructurePage = () => {
}

return (
<div className='px-6'>
<div className='h-full overflow-auto px-6'>
<Tabs tabs={tabs} initialTabId={currentTab} onTabClick={handleTabClick} />
<div className='mt-2'>{renderTabContent()}</div>
</div>
Expand Down

0 comments on commit c19246a

Please sign in to comment.