Skip to content

Commit

Permalink
Change map demo layout to two columns
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarrough committed Dec 17, 2024
1 parent 87dde0c commit c78cfba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/components/slay-map-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const MapDemo = () => {

return html`
<div class="Box">
<details>
<details open>
<summary>Options</summary>
<${DungeonConfig} onUpdate=${(config) => setDungeon(Dungeon(config))} />
</details>
Expand Down
6 changes: 6 additions & 0 deletions src/ui/pages/map-demo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ import '../styles/index.css'
</Layout>

<style>
slay-map-demo {
display: flex;
> .Box {
flex: 25rem;
}
}
slay-map {
min-height: calc(100vh - 5rem);
}
Expand Down

0 comments on commit c78cfba

Please sign in to comment.