diff --git a/manifest.json b/manifest.json index caebed7..e1a7a57 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.96", + "version": "1.1.0", "manifest_version": 2, "minimum_chrome_version": "51", "name": "Code Pad Text Editor", diff --git a/src/css/main.css b/src/css/main.css index fdd0100..221825e 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -606,3 +606,18 @@ input.cmn-tgl-rnd-flt:checked + label:after { .bootstrapMenu .dropdown-item .fa { font-size: 0.9rem; } + +/*******************************************************************************/ +/******************************** Range Slider Fix *****************************/ +/*******************************************************************************/ +.range-slider { + white-space: nowrap; +} + +.range-slider > * { + display: inline-block; +} + +.range-slider-range { + width: 95.5%; +} diff --git a/src/html/modals/editor/ide.settings.html b/src/html/modals/editor/ide.settings.html index 6837c53..9f2da99 100644 --- a/src/html/modals/editor/ide.settings.html +++ b/src/html/modals/editor/ide.settings.html @@ -178,10 +178,11 @@
- + title="Tab size"/> + +
@@ -198,10 +202,11 @@
- + +
diff --git a/src/js/events.js b/src/js/events.js index 2b80af1..3613c90 100644 --- a/src/js/events.js +++ b/src/js/events.js @@ -100,7 +100,18 @@ $(document).ready(function () { ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $(document).on('input change', '[data-action="ide-setting"]', function () { - IdeSettings.persistAndApply(IdeSettings.getKeyValFromEl($(this))); + let $this = $(this); + let $next = $(this).next(); + + IdeSettings.persistAndApply(IdeSettings.getKeyValFromEl($this)); + + if ($this.hasClass('range-slider-range')) { + $next.text($this.val()); + + let title = $next.attr('title').split(', '); + title[1] = 'Current: ' + $this.val(); + $next.attr('title', title.join(', ')); + } }); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////