minecodex 2.0.50 → 2.0.51

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.
@@ -10,9 +10,13 @@ style.textContent = `
10
10
  [data-mcx-quick-chat-history]>svg,[data-mcx-quick-chat-close]>svg{width:16px;height:16px}
11
11
  [data-mcx-quick-chat-close]{margin-inline-end:0}
12
12
  [data-mcx-quick-chat-minimize]{border-radius:calc(infinity * 1px)}
13
- /* 单行输入沿用控件中线,消除原生编辑区换行布局留下的底部间距。 */
14
- [data-mcx-quick-chat-compact] [data-composer-input]:has(>[data-composer-input-layout="single-line"]){margin-block:0;align-self:center}
15
- [data-mcx-quick-chat-compact] [data-composer-input-layout="single-line"]{margin-block:0;align-self:center}
13
+ /* footer 底部对齐;编辑器与按钮共用高度,避免文字中线偏高。 */
14
+ [data-mcx-quick-chat] [data-composer-input][data-composer-layout="single-line"]:has(>[data-composer-input-layout="single-line"]){--composer-editor-single-line-height:var(--spacing-token-button-composer,calc(var(--spacing,4px)*9));margin-block:0}
15
+ /* 保留原生横条总高度,移除不对称留白,让整组内容在 wrapper 内居中。 */
16
+ [data-mcx-quick-chat] [data-composer-rows="inline"][data-composer-layout="single-line"]:not([data-dictation-view]):has([data-composer-input-layout="single-line"]){height:auto;min-block-size:calc(var(--composer-editor-single-line-height,calc(var(--spacing,4px)*9)) + var(--padding-composer-single-line-footer-block,0px) + var(--spacing-composer-footer-bottom,0px));padding-block:0;margin-block:0;align-items:center}
17
+ @media (width>=40rem){
18
+ [data-mcx-quick-chat] [data-composer-rows="responsive"][data-composer-layout="single-line"]:not([data-dictation-view]):has([data-composer-input-layout="single-line"]){height:auto;min-block-size:calc(var(--composer-editor-single-line-height,calc(var(--spacing,4px)*9)) + var(--padding-composer-single-line-footer-block,0px) + var(--spacing-composer-footer-bottom,0px));padding-block:0;margin-block:0;align-items:center}
19
+ }
16
20
  [data-mcx-quick-chat-project-rail]{display:none!important}
17
21
  /* 隐藏唯一的项目栏时,一并收起原生 rail 的圆角留白与负 margin。 */
18
22
  [data-composer-rail]:has(>[data-mcx-quick-chat-project-rail]):not(:has(>:not([data-mcx-quick-chat-project-rail]):not(:empty))){display:none!important}
@@ -25,7 +29,7 @@ function releaseBackground(instance) {
25
29
  instance.background = null;
26
30
  }
27
31
  function releaseProjectRail(instance) { instance.projectRail?.removeAttribute('data-mcx-quick-chat-project-rail'); instance.projectRail = null; }
28
- function remove(instance) { instance.surface?.removeAttribute('data-mcx-quick-chat-compact'); releaseBackground(instance); releaseProjectRail(instance); instance.minimize?.removeAttribute('data-mcx-quick-chat-minimize'); instance.unsubscribe(); instance.button?.remove(); instance.tracker.clear(); instance.historyTracker.clear(); }
32
+ function remove(instance) { instance.surface?.removeAttribute('data-mcx-quick-chat'); releaseBackground(instance); releaseProjectRail(instance); instance.minimize?.removeAttribute('data-mcx-quick-chat-minimize'); instance.unsubscribe(); instance.button?.remove(); instance.tracker.clear(); instance.historyTracker.clear(); }
29
33
  function sync() {
30
34
  if (disposed) return;
31
35
  shortcut.sync();
@@ -43,7 +47,7 @@ function sync() {
43
47
  }
44
48
  if (selected || instance.tracker.accepted(snapshot)) snapshot.expand();
45
49
  instance.historyTracker.open(snapshot);
46
- snapshot.surface.toggleAttribute('data-mcx-quick-chat-compact', !snapshot.expanded);
50
+ snapshot.surface.setAttribute('data-mcx-quick-chat', '');
47
51
  if (instance.projectRail !== snapshot.projectRail) {
48
52
  releaseProjectRail(instance);
49
53
  instance.projectRail = snapshot.projectRail;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecodex",
3
- "version": "2.0.50",
3
+ "version": "2.0.51",
4
4
  "description": "Lightweight, local-first plugins for the Codex desktop app.",
5
5
  "license": "MIT",
6
6
  "type": "module",