Skip to content

Commit 461867a

Browse files
committed
improved page spacing
1 parent 1cf809e commit 461867a

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

src/components/AppRoot.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,16 @@ export class AppRoot extends Component {
9191
.links="${this.site.links.header}"
9292
.home="${this.home}"
9393
></app-header>
94-
<main
95-
class="flex-1 ring-white/5 ring-inset sm:rounded-2xl sm:bg-neutral-900 sm:ring-1"
96-
>
97-
${new StatusOverview(this.site.mainStatus, this.services)}
98-
<div class="p-6 pt-0! md:p-8">
99-
${this.page}
100-
</div>
101-
</main>
94+
<div class="flex-1">
95+
<main
96+
class="ring-white/5 ring-inset sm:rounded-2xl sm:bg-neutral-900 sm:ring-1"
97+
>
98+
${new StatusOverview(this.site.mainStatus, this.services)}
99+
<div class="p-6 pt-0! md:p-8">
100+
${this.page}
101+
</div>
102+
</main>
103+
</div>
102104
<app-footer></app-footer>
103105
</div>
104106
`;

src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ import { InstatusApi } from "./api/InstatusApi";
66
document.title = CONFIG.NAME;
77

88
const api = new InstatusApi(CONFIG.ID);
9+
const root = new AppRoot(api);
910

10-
document.body.append(new AppRoot(api));
11+
root.classList.add("flex", "flex-col", "flex-1");
12+
13+
document.body.append(root);

0 commit comments

Comments
 (0)