Fix button width at all times. (#286)

This commit is contained in:
Evan Downing
2025-08-14 12:13:36 -04:00
committed by GitHub
parent 65a80c28a7
commit 120c8a21cb
@@ -43,6 +43,15 @@ const elements = {
// Initialize the dashboard
document.addEventListener('DOMContentLoaded', function() {
// Preserve button widths to prevent size changes during refresh
const buttons = ['refresh-btn', 'submit-task-btn', 'submit-example-btn'];
buttons.forEach(id => {
const button = document.getElementById(id);
if (button) {
button.style.width = button.offsetWidth + 'px';
}
});
setupEventListeners();
loadDashboard();