feat: enhance task item UX with Notion drag handle, F2 edit, and floating undo toast (v0.6.3)
Build and Push Docker Image / build-and-push (push) Canceled after 23s

This commit is contained in:
2026-08-21 19:42:50 +09:00
parent 5579e71839
commit 94217d773d
6 changed files with 437 additions and 89 deletions
+192 -28
View File
@@ -157,48 +157,212 @@ a { color: inherit; text-decoration: none; }
}
/* ============================================
SIDEBAR
TOAST / NOTIFICATIONS & UNDO BANNER
============================================ */
.sidebar {
width: var(--sidebar-width);
background: var(--bg-sidebar);
border-right: 1px solid var(--border);
.toast-container {
position: fixed;
bottom: 24px;
right: 24px;
display: flex;
flex-direction: column;
flex-shrink: 0;
overflow: hidden;
transition: width var(--dur-slow) var(--ease-out),
transform var(--dur-slow) var(--ease-out);
z-index: 20;
min-width: 0;
gap: 8px;
z-index: 200;
pointer-events: none;
}
.sidebar.collapsed {
width: 0;
}
.sidebar-header {
.toast {
background: var(--text-primary);
color: var(--bg-primary);
padding: 10px 16px;
border-radius: var(--radius-md);
font-size: 13.5px;
font-weight: 500;
box-shadow: var(--shadow-md);
display: flex;
align-items: center;
gap: 10px;
padding: 16px 16px 12px;
border-bottom: 1px solid var(--border);
min-height: var(--header-height);
animation: toastIn var(--dur-normal) var(--ease-out);
pointer-events: all;
}
.sidebar-logo {
width: 28px;
height: 28px;
background: var(--accent);
border-radius: var(--radius-sm);
.toast-btn {
color: var(--accent);
font-weight: 600;
font-size: 13px;
padding: 2px 6px;
border-radius: var(--radius-xs);
transition: background var(--dur-fast);
}
.toast-btn:hover { background: rgba(255,255,255,0.15); }
@keyframes toastIn {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
/* Notion-style Task Drag Handle */
.task-drag-handle {
width: 16px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 14px;
font-weight: 700;
letter-spacing: -0.5px;
color: var(--text-tertiary);
opacity: 0;
cursor: grab;
transition: opacity var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
flex-shrink: 0;
margin-left: -4px;
margin-right: 2px;
user-select: none;
}
.task-item:hover .task-drag-handle {
opacity: 0.7;
}
.task-drag-handle:hover {
opacity: 1 !important;
color: var(--accent);
transform: scale(1.15);
}
.task-drag-handle:active {
cursor: grabbing;
}
/* Dragging & Reorder Feedback */
.task-item.is-dragging {
opacity: 0.4;
background: var(--bg-active);
box-shadow: var(--shadow-md);
}
.task-item.drag-over-top {
border-top: 2px solid var(--accent) !important;
}
.task-item.drag-over-bottom {
border-bottom: 2px solid var(--accent) !important;
}
/* Right-aligned task actions hover container */
.task-actions-right {
display: flex;
align-items: center;
gap: 4px;
margin-left: auto;
opacity: 0;
transition: opacity var(--dur-fast);
}
.task-item:hover .task-actions-right {
opacity: 1;
}
.task-item:focus-within .task-actions-right {
opacity: 1;
}
/* Floating Interactive Undo Toast Banner */
.undo-toast-banner {
position: fixed;
bottom: 28px;
left: 50%;
transform: translateX(-50%);
background: var(--bg-secondary);
color: var(--text-primary);
border: 1px solid var(--border-medium);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
padding: 10px 18px;
border-radius: var(--radius-full);
display: flex;
align-items: center;
gap: 16px;
z-index: 300;
animation: undoToastIn 280ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
backdrop-filter: blur(12px);
min-width: 320px;
max-width: 90vw;
justify-content: space-between;
}
[data-theme="dark"] .undo-toast-banner {
background: #252526;
border-color: #3e3e42;
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.undo-toast-content {
display: flex;
align-items: center;
gap: 10px;
font-size: 13.5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.undo-toast-icon {
font-size: 16px;
}
.undo-toast-msg strong {
font-weight: 600;
color: var(--accent);
}
.undo-toast-actions {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.undo-toast-btn {
background: var(--accent);
color: white;
font-weight: 600;
font-size: 12.5px;
padding: 4px 12px;
border-radius: var(--radius-full);
transition: transform var(--dur-fast), filter var(--dur-fast), background var(--dur-fast);
cursor: pointer;
}
.undo-toast-btn:hover {
filter: brightness(1.1);
transform: translateY(-1px);
}
.undo-toast-btn:active {
transform: translateY(0);
}
.undo-toast-close {
color: var(--text-tertiary);
font-size: 12px;
padding: 4px 6px;
border-radius: var(--radius-full);
cursor: pointer;
transition: color var(--dur-fast), background var(--dur-fast);
}
.undo-toast-close:hover {
color: var(--text-primary);
background: var(--bg-hover);
}
@keyframes undoToastIn {
from {
opacity: 0;
transform: translate(-50%, 24px) scale(0.94);
}
to {
opacity: 1;
transform: translate(-50%, 0) scale(1);
}
}
.sidebar-title {