From 253710acb95cdd363f36e87005e8e0c3e99724c3 Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Thu, 16 Feb 2017 17:16:15 -0600 Subject: [PATCH] editor fixes --- .../javascripts/app/frontend/controllers/editor.js | 4 ++-- app/assets/stylesheets/app/_editor.scss | 12 ++++++++---- app/assets/stylesheets/app/_extensions.scss | 1 + 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/app/frontend/controllers/editor.js b/app/assets/javascripts/app/frontend/controllers/editor.js index 20e1ab420..3254d78f8 100644 --- a/app/assets/javascripts/app/frontend/controllers/editor.js +++ b/app/assets/javascripts/app/frontend/controllers/editor.js @@ -46,8 +46,8 @@ angular.module('app.frontend') }) .controller('EditorCtrl', function ($sce, $timeout, authManager, $rootScope, extensionManager, syncManager, modelManager) { - window.addEventListener("message", function(){ - console.log("App received message:", event); + window.addEventListener("message", function(event){ + // console.log("App received message:", event); if(event.data.status) { this.postNoteToExternalEditor(); } else { diff --git a/app/assets/stylesheets/app/_editor.scss b/app/assets/stylesheets/app/_editor.scss index 2e8aab006..cd2c35a9a 100644 --- a/app/assets/stylesheets/app/_editor.scss +++ b/app/assets/stylesheets/app/_editor.scss @@ -96,6 +96,7 @@ $heading-height: 75px; z-index: 10; overflow-y: hidden; height: 100%; + display: flex; background-color: white; &.fullscreen { @@ -103,16 +104,14 @@ $heading-height: 75px; } #editor-iframe { - max-height: 100%; - height: 100%; + flex: 1; width: 100%; } .editable { font-family: monospace; - max-height: 100%; + flex: 1; overflow-y: scroll; - height: 100%; width: 100%; border: none; @@ -134,9 +133,14 @@ $heading-height: 75px; padding-left: 0; margin-bottom: 0; list-style: none; + ul { + font-weight: bold; + } } .nav>li>a { position: relative; display: block; + font-weight: bold; + user-select: none; } diff --git a/app/assets/stylesheets/app/_extensions.scss b/app/assets/stylesheets/app/_extensions.scss index 1958abff2..c5cf82fd2 100644 --- a/app/assets/stylesheets/app/_extensions.scss +++ b/app/assets/stylesheets/app/_extensions.scss @@ -42,6 +42,7 @@ > .title { font-size: 14px; + font-weight: bold; } > .subtitle {