v1.2.4: Save/Download buttons on code blocks and messages, file path highlighting
This commit is contained in:
@@ -418,7 +418,8 @@ a:hover { text-decoration: underline; }
|
||||
border-bottom: none;
|
||||
}
|
||||
.code-header + pre { border-top-left-radius: 0; border-top-right-radius: 0; }
|
||||
.copy-btn {
|
||||
.code-header-actions { display: flex; gap: 4px; align-items: center; }
|
||||
.copy-btn, .download-btn {
|
||||
background: var(--accent-dim);
|
||||
border: none;
|
||||
color: var(--accent);
|
||||
@@ -426,8 +427,51 @@ a:hover { text-decoration: underline; }
|
||||
border-radius: 4px;
|
||||
font-size: 11px;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.copy-btn:hover { background: var(--accent); color: white; }
|
||||
.copy-btn:hover, .download-btn:hover { background: var(--accent); color: white; }
|
||||
|
||||
.msg-actions {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
margin-top: 8px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.msg-action-btn {
|
||||
background: var(--accent-dim);
|
||||
border: none;
|
||||
color: var(--accent);
|
||||
padding: 5px 12px;
|
||||
border-radius: 6px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.msg-action-btn:hover { background: var(--accent); color: white; }
|
||||
.msg-action-btn.copied { background: var(--success); color: white; }
|
||||
|
||||
.filepath-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
background: var(--accent-dim);
|
||||
border: 1px solid var(--accent);
|
||||
color: var(--accent);
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
font-family: 'Fira Code', 'JetBrains Mono', monospace;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
word-break: break-all;
|
||||
}
|
||||
.filepath-badge:hover { background: var(--accent); color: white; }
|
||||
.filepath-badge::before { content: '📁'; font-size: 11px; }
|
||||
|
||||
.thinking-indicator {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user