fix: page editor — share dropdown, pill toolbar, link copy
FlowDeck CI / test (push) Failing after 4s
FlowDeck CI / docker (push) Has been skipped

Share panel: dropdown under Share button (not modal), with Private status,
Copy link, Publish toggle, Invite section — matches Notion design.

Get Started toolbar: at bottom with pill-shaped buttons (border-radius:9999px),
shows Ask AI, AI meeting note, Database, Form, Templates, … (Table/Board/List/
Timeline/Calendar/Gallery/Import).

Link copy button (🔗): uses navigator.clipboard, shows '✓ Copied' feedback.

Removed old modal overlay CSS, replaced with .share-dropdown + .gs-pill styles.
This commit is contained in:
2026-07-10 10:49:00 -04:00
parent b1304b76e8
commit 65fcda0ca0
2 changed files with 162 additions and 218 deletions
+63 -97
View File
@@ -2160,133 +2160,99 @@ input, select, textarea { font-family: inherit; color: inherit; }
.editor-statusbar { left: 0; }
}
/* ═══════════ Get Started Toolbar (bottom, pill buttons) ═══════════ */
.get-started-toolbar {
display: flex; align-items: center; gap: 8px;
padding: 16px 0 8px; flex-wrap: wrap;
}
.gs-label {
font-size: 13px; color: var(--text-dim); margin-right: 4px;
}
.gs-pill {
display: inline-flex; align-items: center; gap: 6px;
padding: 8px 16px; background: var(--bg-secondary);
border: 1px solid var(--border); border-radius: 9999px;
color: var(--text-primary); font-size: 13px; cursor: pointer;
white-space: nowrap; transition: background 0.15s;
}
.gs-pill:hover { background: var(--bg-hover); }
.gs-icon { font-size: 15px; }
.gs-pill .chevron-down { font-size: 10px; opacity: 0.5; }
.gs-more-dropdown {
position: absolute; bottom: 100%; left: 0; margin-bottom: 4px;
background: var(--bg-secondary); border: 1px solid var(--border);
border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
min-width: 180px; z-index: 100; padding: 4px 0;
}
.gs-more-item {
padding: 8px 14px; font-size: 13px; color: var(--text-primary);
cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.gs-more-item:hover { background: var(--bg-hover); }
.gs-more-sep { height: 1px; background: var(--border); margin: 4px 0; }
/* ═══════════ Page Editor — Top Bar ═══════════ */
.page-topbar {
display: flex; align-items: center; justify-content: space-between;
padding: 8px 16px; margin-bottom: 0;
border-bottom: 1px solid var(--border);
min-height: 40px;
display: flex; align-items: center; justify-content: flex-end;
padding: 6px 0; min-height: 36px;
}
.page-topbar-left { display: flex; align-items: center; gap: 12px; }
.page-topbar-right { display: flex; align-items: center; gap: 4px; }
.page-privacy-badge {
display: inline-flex; align-items: center; gap: 6px;
padding: 4px 10px; border-radius: 6px;
font-size: 13px; color: var(--text-dim); cursor: pointer;
background: var(--bg-secondary);
.page-topbar-right {
display: flex; align-items: center; gap: 4px; position: relative;
}
.topbar-edited {
font-size: 12px; color: var(--text-dim); margin-right: 8px;
}
.page-privacy-badge:hover { background: var(--bg-hover); }
.page-privacy-badge .chevron-down { font-size: 10px; opacity: 0.6; }
.page-action-btn {
display: inline-flex; align-items: center; gap: 4px;
padding: 6px 12px; border: none; border-radius: 6px;
padding: 5px 10px; border: none; border-radius: 6px;
background: transparent; color: var(--text-primary);
font-size: 13px; cursor: pointer; white-space: nowrap;
}
.page-action-btn:hover { background: var(--bg-hover); }
.share-btn { font-weight: 500; }
.page-action-btn .chevron-down { font-size: 9px; opacity: 0.5; margin-left: 2px; }
.star-btn { font-size: 16px; padding: 4px 8px; }
.star-btn .starred { color: #f5c542; }
/* ── More menu dropdown ── */
.more-menu {
position: absolute; top: 100%; right: 0;
background: var(--bg-secondary); border: 1px solid var(--border);
border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
min-width: 200px; z-index: 100; padding: 4px 0;
}
.more-menu-item {
padding: 8px 14px; font-size: 13px; color: var(--text-primary);
cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.more-menu-item:hover { background: var(--bg-hover); }
.more-menu-item.danger { color: #e03e3e; }
.more-menu-sep { height: 1px; background: var(--border); margin: 4px 0; }
/* ═══════════ Share Modal ═══════════ */
.share-modal-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.6);
display: flex; align-items: center; justify-content: center;
z-index: 200;
}
.share-modal {
background: var(--bg-primary); border: 1px solid var(--border);
border-radius: 12px; width: 480px; max-width: 90vw;
max-height: 80vh; overflow-y: auto; padding: 24px;
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.share-modal-header {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 20px;
}
.share-modal-header h2 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 0; }
.share-modal-close {
background: none; border: none; color: var(--text-dim);
font-size: 18px; cursor: pointer; padding: 4px;
}
.share-modal-close:hover { color: var(--text-primary); }
.share-section { margin: 16px 0; }
.share-section-title {
font-size: 14px; font-weight: 500; color: var(--text-primary);
display: flex; align-items: center; justify-content: space-between;
}
.share-section-desc {
font-size: 12px; color: var(--text-dim); margin-top: 4px;
line-height: 1.4;
}
.share-sep { height: 1px; background: var(--border); margin: 16px 0; }
.share-link-row { display: flex; gap: 8px; margin-top: 8px; }
.share-link-input {
flex: 1; padding: 8px 12px; background: var(--bg-secondary);
.share-dd-desc { font-size: 12px; color: var(--text-dim); margin: 4px 0 0; line-height: 1.4; }
.share-dd-sep { height: 1px; background: var(--border); margin: 4px 0; }
.share-dd-label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.share-dd-invite-row { display: flex; gap: 6px; }
.share-dd-input {
flex: 1; padding: 7px 10px; background: var(--bg-primary);
border: 1px solid var(--border); border-radius: 6px;
color: var(--text-primary); font-size: 13px; outline: none;
}
.share-copy-btn {
padding: 8px 16px; background: var(--blue); color: #fff;
.share-dd-input::placeholder { color: var(--text-dim); }
.share-dd-select {
padding: 7px 10px; background: var(--bg-primary);
border: 1px solid var(--border); border-radius: 6px;
color: var(--text-primary); font-size: 13px; outline: none;
}
.share-dd-btn {
padding: 7px 14px; background: var(--blue); color: #fff;
border: none; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.share-copy-btn:hover { opacity: 0.9; }
.share-invite-row { display: flex; gap: 8px; margin-top: 8px; }
.share-invite-input {
flex: 1; padding: 8px 12px; background: var(--bg-secondary);
border: 1px solid var(--border); border-radius: 6px;
color: var(--text-primary); font-size: 13px; outline: none;
}
.share-permission-select {
padding: 8px 12px; background: var(--bg-secondary);
border: 1px solid var(--border); border-radius: 6px;
color: var(--text-primary); font-size: 13px; outline: none;
}
.share-invite-btn {
padding: 8px 16px; background: var(--blue); color: #fff;
border: none; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.share-access-list { margin-top: 8px; }
.share-access-item {
display: flex; align-items: center; justify-content: space-between;
padding: 6px 0; font-size: 13px; color: var(--text-primary);
}
.share-access-remove {
background: none; border: none; color: var(--text-dim);
cursor: pointer; font-size: 14px;
}
.share-access-remove:hover { color: #e03e3e; }
.share-dd-btn:hover { opacity: 0.9; }
/* ── Toggle switch ── */
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle-switch.sm { width: 32px; height: 18px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
position: absolute; inset: 0; cursor: pointer;
background: var(--bg-secondary); border-radius: 22px;
background: var(--bg-hover); border-radius: 20px;
transition: 0.2s; border: 1px solid var(--border);
}
.toggle-slider:before {
content: ''; position: absolute; height: 16px; width: 16px;
content: ''; position: absolute; height: 14px; width: 14px;
left: 2px; bottom: 2px; background: var(--text-dim);
border-radius: 50%; transition: 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--blue); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(18px); background: #fff; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(16px); background: #fff; }
.toggle-switch.sm .toggle-slider:before { height: 12px; width: 12px; bottom: 2px; }
.toggle-switch.sm input:checked + .toggle-slider:before { transform: translateX(14px); }
/* ═══════════ Empty Page Toolbar ═══════════ */
.empty-page-toolbar {