Fix tooltip modal width toggle

The extra width for long tooltips was never removed after being applied. Negligible bug, but annoying.
This commit is contained in:
Tetrakern 2024-10-21 11:12:42 +02:00
parent 3cdfc1f0b3
commit 1575442482
3 changed files with 9 additions and 7 deletions

File diff suppressed because one or more lines are too long

10
js/complete.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1630,7 +1630,9 @@ _$('.content-section')?.addEventListener('click', event => {
const content = event.target.dataset.dialogContent;
if (content.length > 200) {
modal.style = '--modal-width: 400px;';
modal.style.setProperty('--modal-width', '400px');
} else {
modal.style.removeProperty('--modal-width');
}
if (header) {