Skip to content

Commit

Permalink
Improve scrolling a bit
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Oct 29, 2023
1 parent e421928 commit cea2577
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 5 additions & 3 deletions site/src/components/Atlas.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,13 @@ const Atlas = ({ maps, currentSearch, currentMap, voidstones, setCurrentMap }) =

return (
<div
className="d-none d-md-block"
className="d-none d-lg-block position-fixed"
style={{
width: '100%',
width: '75%',
height: '100vh',
backgroundColor: 'black'
backgroundColor: 'black',
top: 0,
left: 0
}}
>
<ReactFlow
Expand Down
7 changes: 2 additions & 5 deletions site/src/views/AtlasView.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,10 @@ const AtlasView = ({
/>
</ReactFlowProvider>
</div>
<div
className={'container-fluid col-lg-3 col-12 full-height m-0 p-0' + (currentMap ? ' overflow-visible' : '')}
style={style}
>
<div className="container-fluid col-lg-3 col-12 full-height m-0 p-0 overflow-visible" style={style}>
<Navbar view={view} setView={setView} showBack={!!currentMap} backAction={() => setCurrentMap(null)} />
<div className="m-2">
<p className="d-block d-md-none">
<p className="d-block d-lg-none">
<b className="text-danger">Warning!</b> <b>Atlas</b> view is unsupported on small resolutions, switch back
to <b>List</b> view.
</p>
Expand Down

0 comments on commit cea2577

Please sign in to comment.