Skip to content

Commit

Permalink
fix layout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yle committed Oct 15, 2023
1 parent 2c8a1de commit aa9258a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 31 deletions.
66 changes: 35 additions & 31 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,41 +66,45 @@ export const App: React.FC = () => {
</Modal>
)}
<aside>
<h3>Missing Streets in New Zealand</h3>
{lastUpdated && (
<small>
Data updated <TimeAgo date={lastUpdated} />
<div className="side-by-side">
<div>
<h3>Missing Streets in New Zealand</h3>
{lastUpdated && (
<small>
Data updated <TimeAgo date={lastUpdated} />
<button
className="small"
type="button"
onClick={() => setInfoModalOpen(true)}
>
?
</button>
</small>
)}
</div>
<div>
<button
className="small"
className="nice"
type="button"
onClick={() => setInfoModalOpen(true)}
onClick={() => setModalOpen(true)}
>
?
Keyboard Shortcuts
</button>{" "}
<button
className="nice"
type="button"
onClick={() =>
window.open(
"https://wiki.osm.org/New_Zealand/Missing_Streets",
"_blank",
"noopener noreferrer"
)
}
>
Documentation
</button>
</small>
)}
<br />
<br />
<button
className="nice"
type="button"
onClick={() => setModalOpen(true)}
>
Keyboard Shortcuts
</button>{" "}
<button
className="nice"
type="button"
onClick={() =>
window.open(
"https://wiki.osm.org/New_Zealand/Missing_Streets",
"_blank",
"noopener noreferrer"
)
}
>
Documentation
</button>
</div>
</div>
<div id="inject" />
<div id="inject-modal" />
</aside>
Expand Down
4 changes: 4 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ aside {
height: 100px;
text-align: center;
}
.side-by-side {
display: flex;
justify-content: space-between;
}

.leaflet-popup-content {
margin: 25px !important;
Expand Down

0 comments on commit aa9258a

Please sign in to comment.