Redesign social scheduler as inline-edit card grid
- 3-col grid (col-xl-4 col-md-6) replacing left/right split layout - First card is always the "new post" composer in edit state - Clicking a post card (or its pencil icon) opens inline editing on that card - Multiple cards can be in edit state simultaneously - Autosave for existing posts (debounced 2s) with saving/saved/error indicator - Post cards show: datetime + status (top left), action icons (top right), text body, image (centered, max-height = card width), platform badges - Image max-height constrained to card width via JS after render - Emoji picker moved to shared fixed floating panel - Per-card error display; no global form state Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1c43c6c432
commit
e52f90445b
3 changed files with 424 additions and 365 deletions
|
|
@ -448,7 +448,8 @@ pre { color: #e6edf3; }
|
|||
}
|
||||
|
||||
/* Social Scheduler */
|
||||
.social-emoji-picker { min-width: 260px; max-height: 280px; overflow-y: auto; background: var(--hm-surface); border-color: var(--hm-border); }
|
||||
/* Emoji picker — now a floating fixed panel */
|
||||
.social-emoji-panel { position: fixed; z-index: 9999; width: 270px; max-height: 240px; overflow-y: auto; }
|
||||
.social-emoji-grid { font-size: 1.2rem; line-height: 1.6; }
|
||||
.social-emoji-cat { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; color: var(--hm-muted); }
|
||||
.social-emoji-grid span.emoji-btn { cursor: pointer; padding: 1px 2px; border-radius: 3px; }
|
||||
|
|
@ -473,12 +474,23 @@ pre { color: #e6edf3; }
|
|||
.social-pill:hover .social-pill-img { color: rgba(248,81,73,.9); }
|
||||
.social-pill.img-on .social-pill-img { color: #3fb950; }
|
||||
|
||||
.social-post-card .card-body { border-left: 3px solid transparent; border-radius: inherit; }
|
||||
.social-post-card.status-pending .card-body { border-left-color: #e3b341; }
|
||||
.social-post-card.status-done .card-body { border-left-color: #3fb950; }
|
||||
.social-post-card.status-partial .card-body { border-left-color: #e3b341; }
|
||||
.social-post-card.status-failed .card-body { border-left-color: #f85149; }
|
||||
/* Social post cards (new grid design) */
|
||||
.sc-card { transition: border-color .15s; }
|
||||
.sc-new-card { border-color: rgba(88,101,242,.5) !important; }
|
||||
.sc-editing { border-color: #8b949e !important; }
|
||||
.sc-post-card.status-pending { border-left: 3px solid #e3b341; }
|
||||
.sc-post-card.status-done { border-left: 3px solid #3fb950; }
|
||||
.sc-post-card.status-sent { border-left: 3px solid #3fb950; }
|
||||
.sc-post-card.status-partial { border-left: 3px solid #e3b341; }
|
||||
.sc-post-card.status-failed { border-left: 3px solid #f85149; }
|
||||
.sc-view-pane { cursor: pointer; }
|
||||
.sc-view-pane:hover { background: rgba(255,255,255,.02); border-radius: inherit; }
|
||||
|
||||
/* Post image — constrained to card width (max-height set via JS) */
|
||||
.sc-img-wrap { width: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; background: rgba(0,0,0,.12); border-radius: 6px; }
|
||||
.sc-post-img { max-width: 100%; max-height: 100%; height: auto; object-fit: contain; display: block; }
|
||||
|
||||
.social-char-warn { color: #e3b341 !important; }
|
||||
.social-char-over { color: #f85149 !important; }
|
||||
.sc-save-indicator { min-width: 4rem; text-align: right; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue