This commit is contained in:
David Brazda
2024-11-15 07:46:43 +01:00
parent ef192e82f9
commit 5407e22bd6
3 changed files with 6 additions and 2 deletions

View File

@ -79,6 +79,8 @@ export class Legend {
this.contentWrapper = document.createElement('div');
this.contentWrapper.style.minHeight = '100%';
this.contentWrapper.style.width = '100%';
this.contentWrapper.style.display = 'flex';
this.contentWrapper.style.flexDirection = 'column'
this.text = document.createElement('span');
this.text.style.lineHeight = '1.8';
@ -115,6 +117,8 @@ export class Legend {
let row = document.createElement('div')
row.style.display = 'flex'
row.style.alignItems = 'center'
row.style.width = '100%' // Key fix - make row take full width
row.style.justifyContent = 'space-between' // Spread content across the full width
row.style.padding = '4px 0'
row.style.color = '#D1D4DC'