From ccf521df60840abc439f7be034207fde794cce14 Mon Sep 17 00:00:00 2001 From: christof-wittreich Date: Thu, 10 Aug 2023 15:59:05 -0400 Subject: [PATCH] Fixed incorrect end of max range in url --- web/js/modules/palettes/util.js | 2 +- web/scss/components/range.scss | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/js/modules/palettes/util.js b/web/js/modules/palettes/util.js index 16d0075c32..28ba2ba5bf 100644 --- a/web/js/modules/palettes/util.js +++ b/web/js/modules/palettes/util.js @@ -250,7 +250,7 @@ export function getPaletteAttributeArray(layerId, palettes, state) { const entryLength = lodashSize(lodashGet(paletteDef, 'entries.values')) || lodashSize(lodashGet(paletteDef, 'entries.colors')); const maxValue = paletteDef.max - ? lodashSplit(paletteDef.entries.values[paletteDef.max || entryLength], ',', 1) + ? lodashSplit(paletteDef.entries.values[paletteDef.max || entryLength], ',').slice(-1) : undefined; const minValue = paletteDef.min ? lodashSplit(paletteDef.entries.values[paletteDef.min || 0], ',', 1) diff --git a/web/scss/components/range.scss b/web/scss/components/range.scss index df13448dbe..14937a0ba6 100644 --- a/web/scss/components/range.scss +++ b/web/scss/components/range.scss @@ -120,6 +120,7 @@ &.start-range::-moz-range-track { height: 4px; border: solid 1px #ccc; + border-left: none; border-right: none; border-top-right-radius: 0; border-bottom-right-radius: 0; @@ -148,6 +149,7 @@ height: 4px; border: solid 1px #ccc; border-left: none; + border-right: none; border-top-left-radius: 0; border-bottom-left-radius: 0; background: linear-gradient(