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:
parent
3cdfc1f0b3
commit
1575442482
2
js/application.min.js
vendored
2
js/application.min.js
vendored
File diff suppressed because one or more lines are too long
10
js/complete.min.js
vendored
10
js/complete.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1630,7 +1630,9 @@ _$('.content-section')?.addEventListener('click', event => {
|
|||||||
const content = event.target.dataset.dialogContent;
|
const content = event.target.dataset.dialogContent;
|
||||||
|
|
||||||
if (content.length > 200) {
|
if (content.length > 200) {
|
||||||
modal.style = '--modal-width: 400px;';
|
modal.style.setProperty('--modal-width', '400px');
|
||||||
|
} else {
|
||||||
|
modal.style.removeProperty('--modal-width');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (header) {
|
if (header) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user