mirror of
https://github.com/trailofbits/buttercup
synced 2026-06-21 14:11:39 +00:00
Fix button width at all times. (#286)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user