fix
This commit is contained in:
File diff suppressed because one or more lines are too long
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='lightweight_charts',
|
name='lightweight_charts',
|
||||||
version='2.2.15',
|
version='2.2.16',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
python_requires='>=3.8',
|
python_requires='>=3.8',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
|
|||||||
@ -79,6 +79,8 @@ export class Legend {
|
|||||||
this.contentWrapper = document.createElement('div');
|
this.contentWrapper = document.createElement('div');
|
||||||
this.contentWrapper.style.minHeight = '100%';
|
this.contentWrapper.style.minHeight = '100%';
|
||||||
this.contentWrapper.style.width = '100%';
|
this.contentWrapper.style.width = '100%';
|
||||||
|
this.contentWrapper.style.display = 'flex';
|
||||||
|
this.contentWrapper.style.flexDirection = 'column'
|
||||||
|
|
||||||
this.text = document.createElement('span');
|
this.text = document.createElement('span');
|
||||||
this.text.style.lineHeight = '1.8';
|
this.text.style.lineHeight = '1.8';
|
||||||
@ -115,6 +117,8 @@ export class Legend {
|
|||||||
let row = document.createElement('div')
|
let row = document.createElement('div')
|
||||||
row.style.display = 'flex'
|
row.style.display = 'flex'
|
||||||
row.style.alignItems = 'center'
|
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.padding = '4px 0'
|
||||||
row.style.color = '#D1D4DC'
|
row.style.color = '#D1D4DC'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user