Fix modal positioning by using CSS classes for proper centering

parent 69817644
......@@ -180,11 +180,13 @@
}
function openAddTokenModal() {
document.getElementById('addTokenModal').style.display = 'block';
const modal = document.getElementById('addTokenModal');
modal.classList.add('show');
}
function closeAddTokenModal() {
document.getElementById('addTokenModal').style.display = 'none';
const modal = document.getElementById('addTokenModal');
modal.classList.remove('show');
}
function closeTokenModal() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment