fix: move undo/redo buttons to right section, left of add event button

v1.2.1

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
mARTin 2026-02-24 00:16:30 +01:00
parent 83e2a99d78
commit 1f202eb8c9
2 changed files with 18 additions and 17 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "my-weekly-todo-list", "name": "my-weekly-todo-list",
"version": "1.2.0", "version": "1.2.1",
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -3401,22 +3401,6 @@ export default function WeeklyView() {
<RefreshCcw size={14} /> <RefreshCcw size={14} />
</button> </button>
)} )}
<button
onClick={handleUndo}
disabled={undoCount === 0}
className="p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-all text-gray-400 hover:text-gray-600 opacity-0 group-hover:opacity-100 disabled:opacity-0 disabled:cursor-default"
title="Undo (Ctrl+Z)"
>
<Undo2 size={14} />
</button>
<button
onClick={handleRedo}
disabled={redoCount === 0}
className="p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-all text-gray-400 hover:text-gray-600 opacity-0 group-hover:opacity-100 disabled:opacity-0 disabled:cursor-default"
title="Redo (Ctrl+Y)"
>
<Redo2 size={14} />
</button>
<span style={{ <span style={{
fontFamily: profile.cwFontFamily || "Inter", fontFamily: profile.cwFontFamily || "Inter",
fontSize: profile.cwFontSize || "1.125rem", fontSize: profile.cwFontSize || "1.125rem",
@ -3517,6 +3501,23 @@ export default function WeeklyView() {
{/* RIGHT SECTION: Navigation & Tools */} {/* RIGHT SECTION: Navigation & Tools */}
<div className="flex items-center gap-3 transition-opacity duration-300 opacity-0 group-hover:opacity-100"> <div className="flex items-center gap-3 transition-opacity duration-300 opacity-0 group-hover:opacity-100">
{/* Undo/Redo */}
<button
onClick={handleUndo}
disabled={undoCount === 0}
className="weekly-btn-icon disabled:opacity-30 disabled:cursor-default"
title="Undo (Ctrl+Z)"
>
<Undo2 size={18} className="text-gray-600 hover:text-black transition-colors" />
</button>
<button
onClick={handleRedo}
disabled={redoCount === 0}
className="weekly-btn-icon disabled:opacity-30 disabled:cursor-default"
title="Redo (Ctrl+Y)"
>
<Redo2 size={18} className="text-gray-600 hover:text-black transition-colors" />
</button>
{/* Add Event Button */} {/* Add Event Button */}
<button <button
onClick={() => { onClick={() => {