From 238e53d5fca35601ceecd7c7bc1b9b3945736878 Mon Sep 17 00:00:00 2001 From: Kalon Shannon-Innes Date: Sat, 29 Jun 2024 13:08:49 +1000 Subject: [PATCH 1/2] Fix overflow on some elements --- src/themes/style.css | 8 ++++++-- templates/index.html | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/themes/style.css b/src/themes/style.css index d203af4..001b56d 100644 --- a/src/themes/style.css +++ b/src/themes/style.css @@ -38,6 +38,7 @@ body { font-family: "JetBrains Mono", monospace; padding: 0; margin: 0; + height: calc(100vh - 55px); } header { @@ -139,10 +140,10 @@ a, a:visited, a:hover { grid-template-columns: 4fr 1fr; grid-template-rows: 1fr 1fr 1fr 1fr 20fr; grid-gap: 2em; - height: 96vh; + height: 100%; align-items: stretch; justify-items: stretch; - margin: 1em 2em 0em 2em; + margin: 0em 2em; } .content { @@ -158,6 +159,8 @@ a, a:visited, a:hover { line-height: 1.6rem; font-size: 1rem; resize: none; + padding: 0; + margin: 0; } .content > textarea:focus { @@ -165,6 +168,7 @@ a, a:visited, a:hover { } .extensions-list { + padding-top: 1em; grid-row: 1/2; } diff --git a/templates/index.html b/templates/index.html index 367a151..ac3ce7f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -58,13 +58,13 @@ {% endblock %} {%- block content -%} -
+
- {%- for syntax in meta.highlight.syntaxes -%} {%- if syntax.file_extensions.len() > 0 %} From b0b6c9e52bbe9a45e8c1ccb8d1f38e6628a94768 Mon Sep 17 00:00:00 2001 From: Kalon Shannon-Innes Date: Sun, 30 Jun 2024 12:56:48 +1000 Subject: [PATCH 2/2] Fix top margin for paste area and right menu --- .gitignore | 1 + src/themes/style.css | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ea8c4bf..2a0038a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +.idea \ No newline at end of file diff --git a/src/themes/style.css b/src/themes/style.css index 001b56d..5317307 100644 --- a/src/themes/style.css +++ b/src/themes/style.css @@ -38,7 +38,7 @@ body { font-family: "JetBrains Mono", monospace; padding: 0; margin: 0; - height: calc(100vh - 55px); + height: 90dvh; } header { @@ -143,7 +143,7 @@ a, a:visited, a:hover { height: 100%; align-items: stretch; justify-items: stretch; - margin: 0em 2em; + margin: 1em 2em 0em 2em; } .content { @@ -168,7 +168,6 @@ a, a:visited, a:hover { } .extensions-list { - padding-top: 1em; grid-row: 1/2; }