This commit is contained in:
David Brazda
2024-11-15 08:33:39 +01:00
parent 0e88137927
commit e526940717
3 changed files with 5 additions and 5 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.17',
version='2.2.18',
packages=find_packages(),
python_requires='>=3.8',
install_requires=[

View File

@ -38,12 +38,13 @@ export class Legend {
// Create container div
this.div = document.createElement('div');
this.div.classList.add('legend');
this.div.style.maxWidth = `${(handler.scale.width * 100) - 8}vw`;
this.div.style.maxWidth = '300px'; // Fixed width instead of percentage
this.div.style.minWidth = '200px'; // Add minimum width to ensure readability
this.div.style.maxHeight = '300px';
this.div.style.overflowY = 'auto';
this.div.style.overflowX = 'hidden';
this.div.style.position = 'absolute';
this.div.style.backgroundColor = 'rgba(19, 23, 34, 0.85)';
this.div.style.backgroundColor = 'rgba(19, 23, 34, 0.60)';
this.div.style.color = '#D1D4DC';
this.div.style.padding = '12px';
this.div.style.borderRadius = '4px';
@ -53,7 +54,6 @@ export class Legend {
this.div.style.fontSize = '12px';
this.div.style.zIndex = '5';
this.div.style.display = 'none';
this.div.style.width = '100%';
// Create collapse button
this.collapseButton = document.createElement('div');