A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(editor): UE-style build-log header (Output Log label + ghost Copy icon)
esenginee2db2b739b78
diff --git a/desktop/src/components/BuildDialog.tsx b/desktop/src/components/BuildDialog.tsxindex 9a82aeea3..07e639225 100644--- a/desktop/src/components/BuildDialog.tsx+++ b/desktop/src/components/BuildDialog.tsx@@ -249,9 +249,12 @@ export function BuildDialog() {)}{log.length > 0 && (<div className="build__logwrap">- <button type="button" className="build__copy" title="Copy log" onClick={copyLog}>- <Copy size={11} /> Copy- </button>+ <div className="build__loghead">+ <span className="build__loglabel">Output Log</span>+ <button type="button" className="build__copy" title="Copy log" aria-label="Copy log" onClick={copyLog}>+ <Copy size={13} />+ </button>+ </div><ol className="build__log selectable">{log.map((line, i) => <li key={i}>{line}</li>)}</ol>diff --git a/desktop/src/theme/menus.css b/desktop/src/theme/menus.cssindex 78858e0df..951de3a72 100644--- a/desktop/src/theme/menus.css+++ b/desktop/src/theme/menus.css@@ -144,6 +144,8 @@.build__log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 116px; overflow-y: auto; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--text-mute); }.build__log li::before { content: '\203A '; color: var(--text-dim); }.build__log li:last-child { color: var(--text-dim); }-.build__logwrap { position: relative; }-.build__copy { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; font-size: var(--fs-2xs); color: var(--text-mute); background: var(--srf-4); border: 1px solid var(--border-line); border-radius: var(--r-xs); cursor: pointer; transition: color var(--t-fast); }-.build__copy:hover { color: var(--text); }+.build__logwrap { display: flex; flex-direction: column; gap: 4px; }+.build__loghead { display: flex; align-items: center; justify-content: space-between; }+.build__loglabel { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-mute); }+.build__copy { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 18px; color: var(--text-mute); background: none; border: none; border-radius: var(--r-xs); cursor: pointer; transition: color var(--t-fast), background var(--t-fast); }+.build__copy:hover { color: var(--text); background: var(--srf-4); }