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

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
setup(
name='lightweight_charts',
version='2.2.15',
version='2.2.16',
packages=find_packages(),
python_requires='>=3.8',
install_requires=[

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'