From 9dc1b35e823b0614fa9537b42793bac34a3eb694 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sun, 24 Apr 2016 10:28:47 +0100 Subject: [PATCH] Made settings ui a little less jumpy --- resources/assets/js/directives.js | 2 +- resources/assets/sass/_forms.scss | 5 +++++ resources/views/settings/index.blade.php | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/resources/assets/js/directives.js b/resources/assets/js/directives.js index e5c390ad2..97d8a89e2 100644 --- a/resources/assets/js/directives.js +++ b/resources/assets/js/directives.js @@ -15,7 +15,7 @@ module.exports = function (ngApp, events) { */ ngApp.directive('toggleSwitch', function () { return { - restrict: 'E', + restrict: 'A', template: toggleSwitchTemplate, scope: true, link: function (scope, element, attrs) { diff --git a/resources/assets/sass/_forms.scss b/resources/assets/sass/_forms.scss index 4a505c5f8..482cf54bd 100644 --- a/resources/assets/sass/_forms.scss +++ b/resources/assets/sass/_forms.scss @@ -248,4 +248,9 @@ div[editor-type="markdown"] .title-input.page-title input[type="text"] { .image-picker img { background-color: #BBB; +} + +div[toggle-switch] { + height: 18px; + width: 150px; } \ No newline at end of file diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.php index 7e38154d5..7c1ec59bf 100644 --- a/resources/views/settings/index.blade.php +++ b/resources/views/settings/index.blade.php @@ -21,12 +21,12 @@
- +

For performance reasons, all images are public by default, This option adds a random, hard-to-guess characters in front of image names. Ensure directory indexes are not enabled to prevent easy access.

- +
@@ -61,7 +61,7 @@
- +
@@ -78,7 +78,7 @@

If domain restriction is used then email confirmation will be required and the below value will be ignored.

- +