summaryrefslogtreecommitdiff
path: root/Layout
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-05-24 02:16:30 +1000
committerJake Mannens <jake@asger.xyz>2026-06-17 01:19:59 +1000
commit0d443b6c208a65e4d762477878b4ad8b6f08460e (patch)
tree047d1859d8a8559b91c2980afdb60f7f92b5d27a /Layout
parent11d180d0b477d310f7d45848985f8b6331e26e65 (diff)
Moved MainLayout.razor to Layout/
Diffstat (limited to 'Layout')
-rw-r--r--Layout/MainLayout.razor11
-rw-r--r--Layout/MainLayout.razor.css9
2 files changed, 20 insertions, 0 deletions
diff --git a/Layout/MainLayout.razor b/Layout/MainLayout.razor
new file mode 100644
index 0000000..8e9f6bd
--- /dev/null
+++ b/Layout/MainLayout.razor
@@ -0,0 +1,11 @@
+@inherits LayoutComponentBase
+
+<link href="@(nameof(HyperBooru)).styles.css" rel="stylesheet" />
+
+<Titlebar/>
+
+<MobileMenu/>
+
+<div id="content">
+ @Body
+</div>
diff --git a/Layout/MainLayout.razor.css b/Layout/MainLayout.razor.css
new file mode 100644
index 0000000..c2b5603
--- /dev/null
+++ b/Layout/MainLayout.razor.css
@@ -0,0 +1,9 @@
+div#content {
+ flex: 1 1 calc(100vh - 59px);
+ overflow-x: hidden;
+ overflow-y: auto;
+}
+
+body.mobile-menu-visible div#content {
+ display: none;
+}