From e870d7190bf66531bd1bbf5327973166a028ab35 Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 2 Jul 2014 16:41:29 +0100 Subject: [PATCH] Improve reconnecting message --- .../coffee/app/ide/connection/ConnectionManager.coffee | 1 + services/web/public/stylesheets/app/editor.less | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/app/ide/connection/ConnectionManager.coffee b/services/web/public/coffee/app/ide/connection/ConnectionManager.coffee index de6981a5d7..0d3d8b5be9 100644 --- a/services/web/public/coffee/app/ide/connection/ConnectionManager.coffee +++ b/services/web/public/coffee/app/ide/connection/ConnectionManager.coffee @@ -79,6 +79,7 @@ define [], () -> countdown = 3 + Math.floor(Math.random() * 7) @$scope.$apply () => + @$scope.connection.reconnecting = false @$scope.connection.reconnection_countdown = countdown setTimeout(=> diff --git a/services/web/public/stylesheets/app/editor.less b/services/web/public/stylesheets/app/editor.less index e12012e9f5..3076b2113c 100644 --- a/services/web/public/stylesheets/app/editor.less +++ b/services/web/public/stylesheets/app/editor.less @@ -17,10 +17,15 @@ .global-alerts { position: absolute; z-index: 20; - top: (@line-height-computed / 4); + top: 2px; width: 400px; left: 50%; margin-left: -200px; + .alert { + padding: (@line-height-computed / 4); + font-size: 14px; + margin-bottom: (@line-height-computed / 4); + } } #chat-wrapper {