feat: kill session — DELETE endpoint, hover × button with confirmation
This commit is contained in:
@@ -877,6 +877,63 @@ body {
|
||||
|
||||
|
||||
|
||||
/* ============================================================
|
||||
Delete (kill) session buttons — appear on hover
|
||||
============================================================ */
|
||||
|
||||
.tile-delete {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 6px;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-dim);
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
opacity: 0;
|
||||
transition: opacity 150ms ease;
|
||||
z-index: 2;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.session-tile:hover .tile-delete,
|
||||
.session-tile:focus-within .tile-delete {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.tile-delete:hover {
|
||||
color: #ef4444;
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.sidebar-delete {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-dim);
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
padding: 1px 5px;
|
||||
border-radius: 3px;
|
||||
opacity: 0;
|
||||
transition: opacity 150ms ease;
|
||||
flex-shrink: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.sidebar-item:hover .sidebar-delete,
|
||||
.sidebar-item:focus-within .sidebar-delete {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.sidebar-delete:hover {
|
||||
color: #ef4444;
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
Header actions + settings buttons
|
||||
============================================================ */
|
||||
|
||||
Reference in New Issue
Block a user