Skip to content

Commit

Permalink
Fixed incorrect end of max range in url
Browse files Browse the repository at this point in the history
  • Loading branch information
christof-wittreich committed Aug 10, 2023
1 parent a3e5c18 commit ccf521d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/modules/palettes/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions web/scss/components/range.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit ccf521d

Please sign in to comment.