Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: long group names #1913

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading