diff --git a/orchestrator/src/buttercup/orchestrator/ui/static/script.js b/orchestrator/src/buttercup/orchestrator/ui/static/script.js index 8d902989..46d335d5 100644 --- a/orchestrator/src/buttercup/orchestrator/ui/static/script.js +++ b/orchestrator/src/buttercup/orchestrator/ui/static/script.js @@ -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();