Redesign the organization delete confirmation card
This commit is contained in:
1 parent
c6e29d7fbe
commit
b9fa049494
2 files changed
+40
-21
No files matched your search
@@ -117,14 +117,13 @@ function OrgRow({
|
|||||||
const initial = orgInitial(org.name);
|
const initial = orgInitial(org.name);
|
||||||
if (confirming) {
|
if (confirming) {
|
||||||
return (
|
return (
|
||||||
<div className="org-menu-row confirm">
|
<div className="org-menu-confirm">
|
||||||
<span className="brand-mark sm">{initial}</span>
|
<div className="org-menu-confirm-title">Delete “{org.name}”?</div>
|
||||||
<div className="org-menu-confirm-text">
|
<div className="org-menu-confirm-hint">All agents, work, chats, and files are permanently removed.</div>
|
||||||
<div>Delete {org.name}?</div>
|
<div className="org-menu-confirm-actions">
|
||||||
<div className="org-menu-confirm-hint">All agents, work, chats, files removed.</div>
|
<button type="button" className="org-menu-confirm-no" onClick={onCancelDelete}>Cancel</button>
|
||||||
|
<button type="button" className="org-menu-confirm-yes" onClick={onConfirmDelete}>Delete</button>
|
||||||
</div>
|
</div>
|
||||||
<button type="button" className="org-menu-confirm-yes" onClick={onConfirmDelete}>Delete</button>
|
|
||||||
<button type="button" className="org-menu-confirm-no" onClick={onCancelDelete}>Cancel</button>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,11 +190,6 @@ a { color: inherit; }
|
|||||||
}
|
}
|
||||||
.org-menu-row:hover { background: var(--hover); color: var(--text-1); }
|
.org-menu-row:hover { background: var(--hover); color: var(--text-1); }
|
||||||
.org-menu-row.active { background: var(--panel-3); color: var(--text-1); font-weight: 540; }
|
.org-menu-row.active { background: var(--panel-3); color: var(--text-1); font-weight: 540; }
|
||||||
.org-menu-row.confirm {
|
|
||||||
background: var(--amber-soft);
|
|
||||||
flex-wrap: wrap;
|
|
||||||
padding: 8px;
|
|
||||||
}
|
|
||||||
.org-menu-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.org-menu-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.org-menu-delete {
|
.org-menu-delete {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
@@ -208,27 +203,52 @@ a { color: inherit; }
|
|||||||
.org-menu-row:hover .org-menu-delete { opacity: 1; }
|
.org-menu-row:hover .org-menu-delete { opacity: 1; }
|
||||||
.org-menu-delete:hover { background: var(--panel-3); }
|
.org-menu-delete:hover { background: var(--panel-3); }
|
||||||
.org-menu-row.active .org-menu-delete:hover { background: var(--border-strong); }
|
.org-menu-row.active .org-menu-delete:hover { background: var(--border-strong); }
|
||||||
.org-menu-confirm-text { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-1); }
|
.org-menu-confirm {
|
||||||
.org-menu-confirm-hint { font-size: 11px; color: var(--text-3); margin-top: 2px; }
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
background: var(--amber-soft);
|
||||||
|
border-radius: var(--r-sm);
|
||||||
|
padding: 10px 12px;
|
||||||
|
margin: 2px 0;
|
||||||
|
}
|
||||||
|
.org-menu-confirm-title {
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-1);
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.org-menu-confirm-hint { font-size: 11.5px; line-height: 1.45; color: var(--text-3); }
|
||||||
|
.org-menu-confirm-actions {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
gap: 8px;
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
.org-menu-confirm-yes {
|
.org-menu-confirm-yes {
|
||||||
height: 24px;
|
height: 28px;
|
||||||
padding: 0 8px;
|
padding: 0 14px;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: var(--r-sm);
|
border-radius: var(--r-sm);
|
||||||
background: var(--red);
|
background: var(--red);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 12px;
|
font-size: 12.5px;
|
||||||
font-weight: 540;
|
font-weight: 560;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.org-menu-confirm-no {
|
.org-menu-confirm-no {
|
||||||
height: 24px;
|
height: 28px;
|
||||||
padding: 0 8px;
|
padding: 0 14px;
|
||||||
border: 1px solid var(--border-strong);
|
border: 1px solid var(--border-strong);
|
||||||
border-radius: var(--r-sm);
|
border-radius: var(--r-sm);
|
||||||
background: var(--panel);
|
background: var(--panel);
|
||||||
color: var(--text-2);
|
color: var(--text-2);
|
||||||
font-size: 12px;
|
font-size: 12.5px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.org-menu-confirm-no:hover { background: var(--hover); color: var(--text-1); }
|
||||||
.org-menu-divider { height: 1px; background: var(--border-soft); margin: 4px 0; }
|
.org-menu-divider { height: 1px; background: var(--border-soft); margin: 4px 0; }
|
||||||
.org-menu-action {
|
.org-menu-action {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in new issue
Block a user