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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user