mirror of
https://github.com/garrytan/gstack.git
synced 2026-07-20 06:28:00 +02:00
feat: cleanup + screenshot buttons in sidebar inspector toolbar
Two action buttons in the inspector toolbar: - Cleanup (🧹): POSTs cleanup --all to server, shows spinner, chat notification on success, resets inspector state (element may be removed) - Screenshot (📸): POSTs screenshot to server, shows spinner, chat notification with saved file path Shared infrastructure: - .inspector-action-btn CSS with loading spinner via ::after pseudo-element - chat-notification type in addChatEntry() for system messages - package.json version bump to 0.13.9.0 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -221,6 +221,13 @@ body::after {
|
||||
color: #000;
|
||||
border-bottom-right-radius: var(--radius-sm);
|
||||
}
|
||||
.chat-notification {
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
color: var(--text-meta);
|
||||
padding: 4px 12px;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.chat-bubble.assistant {
|
||||
align-self: flex-start;
|
||||
background: var(--bg-surface);
|
||||
@@ -808,6 +815,56 @@ footer {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* ─── Action Buttons (Cleanup, Screenshot) ─────────────────── */
|
||||
|
||||
.inspector-action-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 28px;
|
||||
width: 28px;
|
||||
padding: 0;
|
||||
background: none;
|
||||
border: 1px solid var(--zinc-600);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-label);
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: all 150ms;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.inspector-action-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: var(--text-body);
|
||||
border-color: var(--zinc-400);
|
||||
}
|
||||
|
||||
.inspector-action-btn:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.inspector-action-btn.loading {
|
||||
pointer-events: none;
|
||||
opacity: 0.5;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.inspector-action-btn.loading::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border: 2px solid var(--zinc-600);
|
||||
border-top-color: var(--amber-400);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.6s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.inspector-selected {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
|
||||
Reference in New Issue
Block a user