From ddd4ffa4caa6b292a3a644ecd897aba1237c7503 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Wed, 20 Oct 2021 00:32:25 +0800 Subject: [PATCH 1/3] fix: set correct editor height regardless of preferred font size (#1614) --- frontend/src/css/styles.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/css/styles.css b/frontend/src/css/styles.css index 5cff40fa..9931bcf1 100644 --- a/frontend/src/css/styles.css +++ b/frontend/src/css/styles.css @@ -291,18 +291,21 @@ main .spinner .bounce2 { /* EDITOR */ #editor-container { + display: flex; + flex-direction: column; background-color: #fafafa; position: fixed; padding-top: 4em; top: 0; left: 0; + height: 100%; width: 100%; z-index: 9999; overflow: hidden; } #editor-container #editor { - height: calc(100vh - 8.4em); + flex: 1; } #editor-container .breadcrumbs { From 6f345be3e47ba57ecc1eb9a62587ab949078c125 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Wed, 20 Oct 2021 00:34:17 +0800 Subject: [PATCH 2/3] fix: search box is misaligned when the browser preferred font size is other than 16px (#1613) --- frontend/src/css/header.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/css/header.css b/frontend/src/css/header.css index 3a623424..396f926b 100644 --- a/frontend/src/css/header.css +++ b/frontend/src/css/header.css @@ -84,7 +84,8 @@ header .menu-button { #search #input { background-color: #f5f5f5; display: flex; - padding: 0.75em; + height: 100%; + padding: 0em 0.75em; border-radius: 0.3em; transition: .1s ease all; align-items: center; From f09bf3e1d076b27d29ba8a91cf448a99993bc444 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Wed, 20 Oct 2021 00:37:12 +0800 Subject: [PATCH 3/3] fix: fix sidebar navigation on mobile devices (#1618) --- frontend/src/components/Sidebar.vue | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/Sidebar.vue b/frontend/src/components/Sidebar.vue index 109470dc..2986b6c7 100644 --- a/frontend/src/components/Sidebar.vue +++ b/frontend/src/components/Sidebar.vue @@ -1,15 +1,15 @@