From 5e500de6284326b5da93283ffee6a75e9c14741f Mon Sep 17 00:00:00 2001
From: Sheogorath
Date: Sat, 25 May 2019 18:13:11 +0200
Subject: Fix CodeMirror toolbar hiding content

As it may happens that the codemirror content flows underneath the
status bar, this patch should help to avoid it. It adds the size of the
status bar as margin-bottom so the codemirror window itself is forced
above the statusbar.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
---
 public/css/index.css | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'public')

diff --git a/public/css/index.css b/public/css/index.css
index fb8356eb..d266ad88 100644
--- a/public/css/index.css
+++ b/public/css/index.css
@@ -106,7 +106,10 @@ body.night{
     color: #78B2F2 !important;
 }
 .CodeMirror-sizer {
-    margin-bottom: 0px !important;
+    /* Make sure CodeMirror doesn't hide text under the status bar
+     * 26px is the height of the status bar.
+     */
+    margin-bottom: 26px !important;
 }
 .CodeMirror-insert-match {
   background: lawngreen;
-- 
cgit v1.2.3