Convert ticket preview popup visibility to use .is-hidden CSS class
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1451,8 +1451,7 @@ function initTicketPreview() {
|
|||||||
// Create preview element
|
// Create preview element
|
||||||
const preview = document.createElement('div');
|
const preview = document.createElement('div');
|
||||||
preview.id = 'ticketPreview';
|
preview.id = 'ticketPreview';
|
||||||
preview.className = 'ticket-preview-popup';
|
preview.className = 'ticket-preview-popup is-hidden';
|
||||||
preview.style.display = 'none';
|
|
||||||
document.body.appendChild(preview);
|
document.body.appendChild(preview);
|
||||||
currentPreview = preview;
|
currentPreview = preview;
|
||||||
|
|
||||||
@@ -1535,7 +1534,7 @@ function showTicketPreview(event) {
|
|||||||
|
|
||||||
currentPreview.style.left = left + 'px';
|
currentPreview.style.left = left + 'px';
|
||||||
currentPreview.style.top = top + 'px';
|
currentPreview.style.top = top + 'px';
|
||||||
currentPreview.style.display = 'block';
|
currentPreview.classList.remove('is-hidden');
|
||||||
}, 300);
|
}, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1545,7 +1544,7 @@ function hideTicketPreview() {
|
|||||||
}
|
}
|
||||||
previewTimeout = setTimeout(() => {
|
previewTimeout = setTimeout(() => {
|
||||||
if (currentPreview) {
|
if (currentPreview) {
|
||||||
currentPreview.style.display = 'none';
|
currentPreview.classList.add('is-hidden');
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user