@happy-nut/monacori 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/viewer.css CHANGED
@@ -186,19 +186,21 @@ body {
186
186
  .rail-gear { font-size: 16px; line-height: 1; }
187
187
  .rail-tip {
188
188
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
189
- display: flex; align-items: center; gap: 8px; white-space: nowrap;
189
+ display: flex; align-items: center; gap: 12px; white-space: nowrap;
190
190
  background: var(--panel); color: var(--text);
191
191
  border: 1px solid var(--border); border-radius: 6px;
192
- padding: 5px 9px; font-size: 12px;
192
+ padding: 6px 8px 6px 11px; font-size: 12.5px;
193
193
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
194
194
  opacity: 0; pointer-events: none; transition: opacity .12s ease;
195
195
  z-index: 90;
196
196
  }
197
197
  .rail-btn:hover .rail-tip, .rail-btn:focus-visible .rail-tip { opacity: 1; }
198
198
  .rail-tip kbd {
199
- font: 11px Monaco, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
200
- color: var(--muted); background: var(--bg);
201
- border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px;
199
+ /* System font + letter-spacing so ⌘⇧N reads clearly and the glyphs aren't cramped together. */
200
+ font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
201
+ font-size: 11.5px; font-weight: 500; letter-spacing: 1px;
202
+ color: var(--text); background: var(--bg);
203
+ border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px;
202
204
  }
203
205
  /* Current branch chip under the project name in the sidebar header. */
204
206
  .brand-branch { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; min-width: 0; color: var(--muted); font-size: 12px; }
@@ -328,11 +330,18 @@ body {
328
330
  .keys-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; align-items: center; margin-bottom: 2px; }
329
331
  .keys-grid kbd {
330
332
  justify-self: start;
331
- font: 12.5px Monaco, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
333
+ display: inline-block;
334
+ /* System font (NOT monospace): in monospace the ⌘/⇧/⌥ glyphs are squeezed into the cell and read tiny
335
+ next to letters, which is what made enlarging them look mismatched. The system font renders the
336
+ modifier glyphs at their natural size — like a macOS menu — so one uniform size looks right. */
337
+ font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
338
+ font-size: 13px;
339
+ font-weight: 500;
340
+ line-height: 1.3;
332
341
  background: var(--bg);
333
342
  border: 1px solid var(--border);
334
343
  border-radius: 0;
335
- padding: 3px 7px;
344
+ padding: 3px 8px;
336
345
  color: var(--text);
337
346
  white-space: nowrap;
338
347
  }
@@ -937,6 +946,52 @@ body:has(#settings-modal:not(.hidden)) .code-cursor { display: none; }
937
946
  .mc-btn { background: var(--active); color: #fff; border: 0; border-radius: 0; padding: 5px 12px; font-size: 12px; cursor: pointer; }
938
947
  .mc-btn:hover { filter: brightness(1.1); }
939
948
  .mc-btn.mc-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
949
+
950
+ /* ===== Git history view (Cmd+9): full-screen overlay, commit list (graph lanes) | commit detail+diff. ===== */
951
+ .history-view { position: fixed; inset: 0; z-index: 75; display: flex; flex-direction: column; background: var(--bg); }
952
+ .history-view.hidden { display: none; }
953
+ .history-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--sidebar); border-bottom: 1px solid var(--border); }
954
+ .history-title { font-weight: 650; font-size: 13px; letter-spacing: 0.02em; }
955
+ .history-search { flex: 1 1 auto; max-width: 440px; height: 28px; border: 1px solid var(--border); border-radius: 0; background: var(--bg); color: var(--text); padding: 0 10px; font-size: 13px; outline: none; }
956
+ .history-search:focus { border-color: var(--active); }
957
+ .history-bar .dock-btn { margin-left: auto; font-size: 16px; }
958
+ .history-body { flex: 1 1 auto; min-height: 0; display: flex; }
959
+ .history-list { flex: 1.3 1 0; min-width: 0; overflow: auto; padding: 4px 0; border-right: 1px solid var(--border); }
960
+ .history-detail { flex: 1 1 0; min-width: 0; overflow: auto; }
961
+ /* Rows are a fixed 24px so the per-row graph SVG (also 24px) tiles seamlessly and the lanes connect. */
962
+ .hrow { display: grid; grid-template-columns: var(--hgraph-w, 60px) minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; height: 24px; padding: 0 12px 0 0; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; font-size: 12.5px; }
963
+ .hrow:hover { background: color-mix(in srgb, var(--active) 8%, transparent); }
964
+ .hrow.active { background: color-mix(in srgb, var(--active) 16%, transparent); }
965
+ .hgraph-cell { height: 24px; line-height: 0; }
966
+ .hgraph { display: block; }
967
+ /* Filtering breaks the contiguous graph, so hide the lane column and show a flat list (IntelliJ does too). */
968
+ .history-list.filtering .hgraph-cell { display: none; }
969
+ .history-list.filtering .hrow { grid-template-columns: minmax(0, 1fr) auto auto; padding-left: 12px; }
970
+ .hmsg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
971
+ .hauthor, .hdate { color: var(--muted); font-size: 12px; white-space: nowrap; }
972
+ .hdate { font-variant-numeric: tabular-nums; }
973
+ .href { display: inline-block; font-size: 10.5px; line-height: 1.5; padding: 0 5px; margin-right: 6px; border-radius: 8px; border: 1px solid var(--border); vertical-align: middle; }
974
+ .href-head { color: var(--active); border-color: var(--active); }
975
+ .href-branch { color: #7faf6b; border-color: #7faf6b; }
976
+ .href-remote { color: var(--muted); }
977
+ .href-tag { color: #d4a857; border-color: #d4a857; }
978
+ .history-detail-head { padding: 12px 14px; border-bottom: 1px solid var(--border); }
979
+ .hd-msg { font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; margin-bottom: 8px; }
980
+ .hd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
981
+ .hd-hash { font-family: Monaco, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
982
+
983
+ /* Go-to-line (Cmd/Ctrl+L): a small numeric prompt near the top, like a command palette. */
984
+ .goto-line {
985
+ position: fixed; top: 13vh; left: 50%; transform: translateX(-50%); z-index: 80;
986
+ background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
987
+ box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5); padding: 8px;
988
+ }
989
+ .goto-line-input {
990
+ width: 220px; height: 30px; border: 1px solid var(--border); border-radius: 0;
991
+ background: var(--bg); color: var(--text); padding: 0 10px;
992
+ font: 14px ui-sans-serif, -apple-system, system-ui, sans-serif; outline: none;
993
+ }
994
+ .goto-line-input:focus { border-color: var(--active); }
940
995
  /* Terminal-send buttons in the merged modal: green to read as "send to the live session", with a clear
941
996
  focus ring so arrow-key selection between split panes is visible. */
942
997
  .mc-send-term { background: #2f8f46; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happy-nut/monacori",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Validation control plane for AI-generated code changes.",
5
5
  "type": "module",
6
6
  "main": "dist/app-main.js",