Skip to content

Commit b987db6

Browse files
author
Michael D Brown
authored
Merge branch 'main' into evan/cscope
2 parents c485800 + 120c8a2 commit b987db6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • orchestrator/src/buttercup/orchestrator/ui/static

orchestrator/src/buttercup/orchestrator/ui/static/script.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ const elements = {
4343

4444
// Initialize the dashboard
4545
document.addEventListener('DOMContentLoaded', function() {
46+
// Preserve button widths to prevent size changes during refresh
47+
const buttons = ['refresh-btn', 'submit-task-btn', 'submit-example-btn'];
48+
buttons.forEach(id => {
49+
const button = document.getElementById(id);
50+
if (button) {
51+
button.style.width = button.offsetWidth + 'px';
52+
}
53+
});
54+
4655
setupEventListeners();
4756
loadDashboard();
4857

0 commit comments

Comments
 (0)