Skip to content

Commit

Permalink
feat: very basic mobile layout
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed May 4, 2023
1 parent 68dc947 commit 5d42fd3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@

<title>Utah DEQ Environmental Interactive Map</title>
</head>
<body class="h-full w-full utah-design-system">
<div id="root"></div>
<div
id="root"
class="absolute bottom-0 left-0 right-0 top-[60px] md:top-[78px]"
></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
8 changes: 4 additions & 4 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function App() {
// domLocationTarget: {
// element: headerRef.current,
// },
title: 'Utah Environmental Interactive Map',
title: 'Environmental Interactive Map',
titleURL: null,
logo: '<img src="/deq_logo.png" alt="DEQ Logo" />',
utahId: false,
Expand Down Expand Up @@ -50,11 +50,11 @@ function App() {

return (
<AnalyticsProvider sdk={getAnalytics(app)}>
<div className="flex h-full w-full">
<div className="flex-1 border-r border-gray-300">
<div className="flex h-full w-full flex-col md:flex-row">
<div className="flex-1 border-b border-gray-300 md:border-r">
<MapComponent />
</div>
<div className="w-80 overflow-y-auto">
<div className="overflow-y-auto md:w-80">
<RemoteConfig>
<SearchWizard />
</RemoteConfig>
Expand Down
8 changes: 0 additions & 8 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
@tailwind components;
@tailwind utilities;

#root {
position: absolute;
top: 78px;
bottom: 0;
left: 0;
right: 0;
}

.utah-design-system.main-menu__outer {
display: none;
}
Expand Down

0 comments on commit 5d42fd3

Please sign in to comment.