refactor: remove unused settings button from edit mode widgets

The green settings icon that appeared on widget hover during edit mode
was not connected to any functionality. Removed to simplify UI.

- Delete button (red X) remains functional
- Edit mode drag/drop and resize unaffected
This commit is contained in:
Lucas 'Paperboy' Rose-Winters
2025-11-06 21:27:58 +11:00
parent 6c99b31d48
commit 0a5bad6b1c
-10
View File
@@ -336,15 +336,6 @@ export class EditModeManager {
controls.style.opacity = '0';
controls.style.transition = 'opacity 0.2s';
// Settings button
const settingsBtn = this.createControlButton('⚙', 'Settings');
settingsBtn.onclick = (e) => {
e.stopPropagation();
if (this.onWidgetSettings) {
this.onWidgetSettings(widgetId);
}
};
// Delete button
const deleteBtn = this.createControlButton('×', 'Delete');
deleteBtn.onclick = (e) => {
@@ -353,7 +344,6 @@ export class EditModeManager {
};
deleteBtn.style.background = '#e94560';
controls.appendChild(settingsBtn);
controls.appendChild(deleteBtn);
// Store reference to widget element for positioning