dsh-codinput 0.3.0 → 0.3.2

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.
@@ -50,8 +50,14 @@ const CSS = `
50
50
  .dci-body { position: relative; display: flex; gap: 0; min-height: 60px; max-height: var(--dci-body-max, 46vh); overflow: hidden; }
51
51
  .dci-body[style*="--dci-body-h"] { height: var(--dci-body-h); }
52
52
  /* 分屏:grid 等宽两栏(fr 计入 padding/border,两栏边界严格居中;flex
53
- * 会把预览栏的横向 padding 泄漏进空间分配,做不到对半)。 */
54
- .dci-body[data-split="true"] { display: grid; grid-template-columns: 1fr 1fr; }
53
+ * 会把预览栏的横向 padding 泄漏进空间分配,做不到对半)。行高必须
54
+ * minmax(0,1fr)+两栏 min-height:0:隐式 auto 行随内容撑高、不受 max-height
55
+ * 钳制,内容一高整行溢出被 overflow:hidden 裁掉,两栏都出不了滚动条。 */
56
+ .dci-body[data-split="true"] { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); }
57
+ .dci-body[data-split="true"] > * { min-height: 0; }
58
+ /* 分屏同步滚动:只留编辑栏一个滚动条,预览栏藏起但滚轮仍可反向带动编辑器。 */
59
+ .dci-body[data-split="true"] .dci-preview { scrollbar-width: none; }
60
+ .dci-body[data-split="true"] .dci-preview::-webkit-scrollbar { display: none; }
55
61
  .dci-body[data-split="true"] .dci-editor-wrap { border-right: 1px solid var(--dsw-alias-border-l2, color-mix(in srgb, currentColor 12%, transparent)); }
56
62
  .dci-editor-wrap { position: relative; flex: 1 1 100%; min-width: 0; box-sizing: border-box; display: flex; flex-direction: column; }
57
63
  .dci-editor-wrap[data-solo="true"] { flex-basis: 100%; }
@@ -96,10 +102,13 @@ const CSS = `
96
102
  .dci-add:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover-solid, color-mix(in srgb, currentColor 14%, transparent)); }
97
103
  .dci-add:disabled { opacity: 0.5; cursor: default; }
98
104
 
99
- /* 下拉触发(官方 PermissionSelect / ModelSelection .trigger)*/
105
+ /* 下拉触发(官方 PermissionSelect / ModelSelect .trigger)。radius 官方走
106
+ * --dsw-radius-sm,无 token 的旧宿主(0.1.5-rc.3)回退原 24px 视觉;
107
+ * 模型触发器官方 font-weight 400(权限 500),经 [data-model] 区分。*/
100
108
  .dci-trigger { min-width: 0; max-width: 220px; height: 28px; color: var(--dsw-alias-label-secondary, currentColor); cursor: pointer;
101
- background: transparent; border: none; border-radius: 24px; outline: none; align-items: center; gap: 4px;
109
+ background: transparent; border: none; border-radius: var(--dsw-radius-sm, 24px); outline: none; align-items: center; gap: 4px;
102
110
  padding: 0 4px 0 8px; font-size: 13px; font-weight: 500; line-height: 20px; display: inline-flex; }
111
+ .dci-trigger[data-model] { font-weight: 400; }
103
112
  .dci-trigger:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover, color-mix(in srgb, currentColor 8%, transparent)); }
104
113
  .dci-trigger:focus-visible { box-shadow: 0 0 0 2px var(--dsw-alias-border-l3, transparent); }
105
114
  .dci-trigger:disabled { color: var(--dsw-alias-label-dimmed, currentColor); cursor: default; opacity: 0.5; }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file