Skip to content

Commit

Permalink
Update legend.js
Browse files Browse the repository at this point in the history
  • Loading branch information
huggla authored Mar 26, 2024
1 parent 1402878 commit 1dfd74a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/controls/legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ const Legend = function Legend(options = {}) {
viewer.dispatch('active:togglevisibleLayers');
},
style: {
'align-self': 'right',
'vertical-align': 'bottom',
'margin-bottom': '7px',
'padding-right': '6px'
},
icon: '#ic_open_in_full_24px',
Expand Down Expand Up @@ -693,9 +694,11 @@ const Legend = function Legend(options = {}) {
legendControlCmps.push(closeButton);

const legendControlCmp = El({
cls: 'grow flex justify-end align-center no-shrink',
cls: 'grow flex no-shrink',
style: {
display: 'inline'
display: 'inline',
'text-align': 'right',
'margin-right': '6px'
},
components: legendControlCmps
});
Expand Down

0 comments on commit 1dfd74a

Please sign in to comment.