Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

style(scm): refine commit composer — inline ✦ corner action, cleaner primary

enes799ae1247764
diff --git a/src/renderer/components/SourceControlPanel.tsx b/src/renderer/components/SourceControlPanel.tsx
index bfa23cc97..60dd1f864 100644
--- a/src/renderer/components/SourceControlPanel.tsx
+++ b/src/renderer/components/SourceControlPanel.tsx
@@ -324,30 +324,30 @@ export function SourceControlPanel({
)}
<section className="scm-commit">
- <div className="scm-commit-head">
- <span>Commit message</span>
+ <div className="scm-compose">
+ <textarea
+ className="scm-message"
+ placeholder="Message (⌘↵ to commit)"
+ value={message}
+ onChange={(e) => setMessage(e.target.value)}
+ onKeyDown={(e) => {
+ if ((e.metaKey || e.ctrlKey) && e.key === 'Enter') commitAndPush()
+ }}
+ />
<button
- className="scm-gen"
+ className={`scm-gen${generating ? ' is-generating' : ''}`}
disabled={generating || stagedCount === 0}
- title="Generate from staged diff with your AI agent"
+ title={
+ stagedCount === 0
+ ? 'Stage files to generate a commit message'
+ : 'Generate commit message from the staged diff with your AI agent'
+ }
+ aria-label="Generate commit message"
onClick={generate}
>
- {generating ? '✦ Generating…' : '✦ Generate'}
+ ✦
</button>
</div>
- <textarea
- className="scm-message"
- placeholder="Message (⌘↵ to commit)"
- value={message}
- onChange={(e) => setMessage(e.target.value)}
- onKeyDown={(e) => {
- if ((e.metaKey || e.ctrlKey) && e.key === 'Enter') commitAndPush()
- }}
- />
- <div className="scm-commit-foot">
- <span>{stagedCount} files staged</span>
- <span>⌘↵ to commit</span>
- </div>
<button
className="scm-commit-btn"
disabled={busy || !message.trim() || stagedCount === 0}
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index ff5eafda7..7e67273d8 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -2206,80 +2206,111 @@ body,
}
.scm-commit {
- padding: 14px 0;
+ padding: 14px 0 16px;
}
-.scm-commit-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 2px 8px;
- font-size: 11px;
- letter-spacing: 0.5px;
+/* Composer: a single rounded message box with the ✦ AI-generate action
+ tucked into its top-right corner (label/footer rows removed for a cleaner,
+ editor-like compose surface). */
+.scm-compose {
+ position: relative;
+}
+
+.scm-message {
+ width: 100%;
+ min-height: 76px;
+ resize: vertical;
+ background: var(--bg);
+ border: 1px solid var(--border);
+ border-radius: 10px;
+ color: var(--text);
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
+ font-size: 14px;
+ line-height: 1.45;
+ padding: 11px 42px 11px 13px; /* right padding clears the ✦ corner button */
+ outline: none;
+ transition: border-color 0.15s ease, box-shadow 0.15s ease;
+}
+
+.scm-message::placeholder {
color: var(--muted);
- text-transform: uppercase;
+}
+
+.scm-message:focus {
+ border-color: var(--accent);
+ box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}
.scm-gen {
- background: rgba(10, 132, 255, 0.15);
- border: 1px solid rgba(10, 132, 255, 0.4);
+ position: absolute;
+ top: 8px;
+ right: 8px;
+ width: 26px;
+ height: 26px;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ background: rgba(10, 132, 255, 0.14);
+ border: 1px solid rgba(10, 132, 255, 0.32);
color: #6cb0ff;
border-radius: 7px;
- font-size: 11px;
- letter-spacing: 0.2px;
- text-transform: none;
- padding: 3px 10px;
+ font-size: 13px;
+ line-height: 1;
cursor: pointer;
+ transition: background 0.15s ease, transform 0.12s ease;
}
.scm-gen:hover:not(:disabled) {
- background: rgba(10, 132, 255, 0.28);
+ background: rgba(10, 132, 255, 0.26);
+}
+
+.scm-gen:active:not(:disabled) {
+ transform: scale(0.92);
}
.scm-gen:disabled {
- opacity: 0.45;
+ opacity: 0.4;
cursor: not-allowed;
}
-.scm-message {
- width: 100%;
- min-height: 64px;
- resize: vertical;
- background: var(--bg);
- border: 1px solid var(--border);
- border-radius: 8px;
- color: var(--text);
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
- font-size: 14px;
- padding: 10px 12px;
- outline: none;
+.scm-gen.is-generating {
+ animation: scm-gen-pulse 0.9s ease-in-out infinite;
}
-.scm-commit-foot {
- display: flex;
- justify-content: space-between;
- padding: 8px 2px 12px;
- font-size: 11px;
- color: var(--muted);
+@keyframes scm-gen-pulse {
+ 0%,
+ 100% {
+ opacity: 1;
+ transform: scale(1);
+ }
+ 50% {
+ opacity: 0.5;
+ transform: scale(0.86);
+ }
}
.scm-commit-btn {
width: 100%;
- background: var(--accent, var(--accent));
+ margin-top: 10px;
+ background: var(--accent);
color: #fff;
border: none;
- border-radius: 10px;
- padding: 12px;
- font-size: 14px;
- font-weight: 700;
+ border-radius: 9px;
+ padding: 11px;
+ font-size: 13px;
+ font-weight: 600;
+ letter-spacing: 0.1px;
cursor: pointer;
- box-shadow: 0 6px 20px rgba(122, 162, 247, 0.35);
+ transition: filter 0.15s ease, opacity 0.15s ease;
+}
+
+.scm-commit-btn:hover:not(:disabled) {
+ filter: brightness(1.08);
}
.scm-commit-btn:disabled {
- opacity: 0.45;
+ opacity: 0.4;
cursor: not-allowed;
- box-shadow: none;
}
/* ---- Explorer (file tree) ---- */