diff --git a/css/base.less b/css/base.less index ead42e9a..3534976a 100644 --- a/css/base.less +++ b/css/base.less @@ -13,13 +13,13 @@ body { margin: 0; padding: 0; font-family: - "Segoe UI", //Windows - "Roboto", //ChromeOS - "Helvetica Neue", //OS X + "Segoe UI", + "Roboto", + "Helvetica Neue", "San Francisco", - "Droid Sans", //Ubuntu? - "Liberation Sans", //other linux? - sans-serif; //fallback + "Droid Sans", + "Liberation Sans", + sans-serif; display: flex; flex-direction: column; align-items: stretch; @@ -83,6 +83,11 @@ a[target] { transform: translateZ(0); } +//fullscreen changes +.fullscreened { + border-right: none; +} + //immersive mode .immersive { diff --git a/js/main.js b/js/main.js index 8652ad40..bee1b8d6 100644 --- a/js/main.js +++ b/js/main.js @@ -139,6 +139,7 @@ require([ command.on("app:maximize", function() { frame.isMaximized() || frame.isFullscreen() ? frame.restore() : frame.maximize(); + document.body.classList.toggle("fullscreened", !frame.isMaximized()); editor.focus(); }); @@ -154,9 +155,10 @@ require([ //handle immersive fullscreen var onFullscreen = function() { + document.body.addClass("fullscreened"); Settings.pull("user").then(function(data) { if (data.user.immersiveFullscreen) { - document.find("body").addClass("immersive"); + document.body.addClass("immersive"); editor.resize(); } }); @@ -168,7 +170,8 @@ require([ } frame.onRestored.addListener(function() { - document.find("body").removeClass("immersive"); + document.body.removeClass("fullscreen"); + document.body.removeClass("immersive"); }); //It's nice to be able to launch the debugger from a command stroke diff --git a/manifest.json b/manifest.json index 008a84cd..7e50edcc 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "Caret", "description": "Professional text editing for Chrome and Chrome OS", - "version": "1.6.27", + "version": "1.6.28", "manifest_version": 2, "default_locale": "en", "icons": {