Add Perforce-style command Log panel + UI scale setting
Backend emits a p4-log event per command (cmd + item count + status). Frontend adds a bottom Log panel toggled from a new Window menu (Ctrl+L), an always-on status bar showing the last command, and a hover log-peek popover over the activity indicator. Settings gains an interface-scale (zoom) control (50–200%, persisted). All new strings translated (5 langs). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
45
src/App.css
45
src/App.css
@ -237,6 +237,51 @@ body.resizing{cursor:col-resize!important;user-select:none}
|
||||
.langbtn.on{color:#fff;border-color:transparent;background:linear-gradient(135deg,var(--accent-2),var(--accent-deep));box-shadow:0 6px 16px -6px rgba(124,110,246,.7)}
|
||||
.langbtn .lflag{font-size:14px;line-height:1}
|
||||
.langbtn .lname{font-weight:500}
|
||||
|
||||
/* zoom selector (Settings) */
|
||||
.zoomsel{display:flex;align-items:center;gap:5px}
|
||||
.zbtn{width:28px;height:28px;border:1px solid var(--border);background:var(--panel);color:var(--muted);border-radius:8px;
|
||||
cursor:pointer;font-size:16px;line-height:1;display:grid;place-items:center;font-family:var(--font)}
|
||||
.zbtn:hover:not(:disabled){color:var(--txt);border-color:var(--accent)}
|
||||
.zbtn:disabled{opacity:.4;cursor:not-allowed}
|
||||
.zval{min-width:58px;height:28px;border:1px solid var(--border);background:var(--panel);color:var(--txt);border-radius:8px;
|
||||
cursor:pointer;font-size:12px;font-variant-numeric:tabular-nums}
|
||||
.zval:hover{border-color:var(--accent)}
|
||||
|
||||
/* bottom status bar (always visible) + hover log peek */
|
||||
.statusbar{flex:0 0 26px;display:flex;align-items:center;gap:10px;padding:0 12px;border-top:1px solid var(--border);
|
||||
background:var(--bar);font-size:11.5px;color:var(--muted);position:relative;user-select:none}
|
||||
.stdot{width:16px;height:16px;display:grid;place-items:center;flex:0 0 auto;color:var(--add)}
|
||||
.stdot svg{width:12px;height:12px}
|
||||
.stdot.busy{color:var(--accent-2)}
|
||||
.ldr.sm{width:12px;height:12px;border-width:2px}
|
||||
.stlast{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:11px}
|
||||
.stlog{display:flex;align-items:center;gap:6px;flex:0 0 auto;border:1px solid var(--border);background:var(--panel);
|
||||
color:var(--muted);border-radius:7px;padding:3px 10px;cursor:pointer;font-size:11.5px}
|
||||
.stlog:hover{color:var(--txt);border-color:var(--accent)}
|
||||
.stlog svg{width:13px;height:13px}
|
||||
.logpeek{position:absolute;right:10px;bottom:32px;width:460px;max-width:calc(100vw - 30px);max-height:300px;overflow:auto;z-index:250;
|
||||
background:var(--elevated);border:1px solid var(--border);border-radius:11px;padding:6px;box-shadow:0 18px 46px -12px rgba(0,0,0,.6)}
|
||||
|
||||
/* log panel (Window → Log) — sits under the main area, above the status bar */
|
||||
.logpanel{flex:0 0 190px;display:flex;flex-direction:column;min-height:0;border-top:1px solid var(--border);background:var(--sunk)}
|
||||
.loghead{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:7px 12px;border-bottom:1px solid var(--border-soft)}
|
||||
.logtitle{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
|
||||
.logtitle svg{width:14px;height:14px}.logtitle b{color:var(--txt);font-weight:600}
|
||||
.logn{font-size:10.5px;color:var(--faint);background:var(--panel-3);border-radius:9px;padding:0 7px;font-variant-numeric:tabular-nums}
|
||||
.loghbtn{margin-left:auto;border:1px solid var(--border);background:var(--panel);color:var(--muted);border-radius:7px;
|
||||
padding:3px 10px;cursor:pointer;font-size:11px;display:grid;place-items:center}
|
||||
.loghbtn:hover{color:var(--txt);border-color:var(--accent)}
|
||||
.loghbtn.x{margin-left:0;padding:3px 8px}
|
||||
.logbody{flex:1;overflow-y:auto;min-height:0;padding:4px 0;font-family:var(--mono)}
|
||||
.logempty{padding:20px;text-align:center;color:var(--faint);font-size:12px;font-family:var(--font)}
|
||||
.logrow{display:flex;align-items:center;gap:9px;padding:3px 12px;font-size:11.5px;line-height:1.55}
|
||||
.logrow:hover{background:var(--hover)}
|
||||
.logst{width:12px;flex:0 0 auto;text-align:center;color:var(--add);font-weight:700}
|
||||
.logrow.err .logst{color:var(--del)}
|
||||
.logcmd{color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||
.logcount{margin-left:auto;flex:0 0 auto;color:var(--faint);white-space:nowrap}
|
||||
.logrow.err .logcount{color:var(--del)}
|
||||
.tzone.push .ic{color:var(--add)}
|
||||
.tzone.push .val{color:var(--add)}
|
||||
.commit .row{display:flex;gap:10px;align-items:center}
|
||||
|
||||
Reference in New Issue
Block a user