diff --git a/public/partials/index.html b/public/partials/index.html index bbda2ac..8f68dc4 100644 --- a/public/partials/index.html +++ b/public/partials/index.html @@ -1,7 +1,4 @@
-
- -

NGINX Config

diff --git a/resources/js/app.js b/resources/js/app.js index 669eaa0..caf94b0 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -832,11 +832,7 @@ } }; - $scope.toggleLayoutVisible = function() { - return $window.location.hostname !== 'nginxconfig.io'; - }; - - $scope.toggleLayout = function() { + $window.toggleLayout = function() { if ($scope.layout === 'default') { $scope.layout = 'do'; $scope.tabs_site.unshift({ @@ -847,6 +843,7 @@ $scope.layout = 'default'; $scope.tabs_site.shift(); } + doMasonry(); }; @@ -1348,7 +1345,7 @@ initMasonry(); if ($window.LAYOUT && $window.LAYOUT !== $scope.layout) { - $scope.toggleLayout(); + $window.toggleLayout(); } }; } diff --git a/resources/scss/_header.scss b/resources/scss/_header.scss index c6cee34..e53171b 100644 --- a/resources/scss/_header.scss +++ b/resources/scss/_header.scss @@ -7,7 +7,6 @@ } header { - position: relative; background-color: #000; padding: 0.5rem 0; text-align: center; @@ -15,18 +14,6 @@ header { color: #fff; font-size: 2.2rem; - .layout-toggle { - position: absolute; - right: 10px; - top: 0; - z-index: 100; - opacity: 0.75; - - .btn { - outline: none; - } - } - .container { position: relative; }