Skip to content

Commit

Permalink
Update group.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jokd committed Dec 4, 2023
1 parent 5f37c34 commit 47f0437
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/controls/legend/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const Group = function Group(viewer, options = {}) {
iconCls: '',
state: visibleState,
style: {
'align-self': 'flex-end',
'align-self': 'center',
cursor: 'pointer'
}
}) : false;
Expand Down Expand Up @@ -114,7 +114,7 @@ const Group = function Group(viewer, options = {}) {
},
render() {
const padding = moreInfoButton ? '0.275rem' : '1.875rem';
return `<div class="flex row align-center padding-left text-smaller pointer collapse-header item wrap" style="width: 100%; padding-right: ${padding}">
return `<div class="flex row align-center padding-left text-smaller pointer collapse-header" style="width: 100%; padding-right: ${padding}">
<div id="${this.getId()}" class="flex row align-center grow">
${expandButton.render()}
<span class="grow padding-x-small" style="word-break: break-all;">${title}</span>
Expand All @@ -128,7 +128,7 @@ const Group = function Group(viewer, options = {}) {

const GroupHeader = function GroupHeader() {
const headerComponent = CollapseHeader({
cls: 'hover padding-x padding-y-small grey-lightest border-bottom text-small sticky bg-white z-index-low item wrap',
cls: 'hover padding-x padding-y-small grey-lightest border-bottom text-small sticky bg-white z-index-low',
style: `top: 0;${moreInfoButton ? 'padding-right: 0.275rem' : ''}`,
icon,
title
Expand Down

0 comments on commit 47f0437

Please sign in to comment.