dsh-maoying 0.1.20 → 0.1.22

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/lib/base.css CHANGED
@@ -461,9 +461,11 @@ html[data-dsh-maoying-active]:not([data-dsh-mnemon-active]):not([data-dsh-taskbo
461
461
  .myt-dimLabel { font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-tertiary); margin-bottom: 2px; }
462
462
  .myt-dimText { font-size: 12px; line-height: 18px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }
463
463
 
464
- /* ── 0.1.19:正文/章纲面板编辑态(textarea + 手动保存)────────────────────
465
- 与只读态的区分要一眼可辨:全宽等宽 textarea + 主题色边框强调;只读态是
466
- 无边框淡底的 pre(.myt-chapterBody)与 MdView。 */
464
+ /* ── 0.1.19 引入正文/章纲面板编辑态;0.1.22 起正文自动保存(2s 防抖)─────
465
+ 编辑态与只读态的区分靠主题色边框强调(只读态是无边框淡底的
466
+ .myt-chapterBody pre);正文 textarea 排版与只读正文对齐(同 UI 字体、
467
+ 13px/22px 行高)所见即所得,高度随内容自动长高——当年的等宽字体 +
468
+ resize: vertical 已成史。章纲编辑区(.myt-outlineArea)仍手动保存。 */
467
469
  .myt-bodyEdit { display: flex; flex-direction: column; gap: 8px; }
468
470
  .myt-chapterEditArea {
469
471
  width: 100%;
@@ -473,10 +475,11 @@ html[data-dsh-maoying-active]:not([data-dsh-mnemon-active]):not([data-dsh-taskbo
473
475
  border-radius: 10px;
474
476
  background: var(--dsw-alias-bg-layer-1, var(--dsw-alias-bg-layer-2));
475
477
  color: var(--dsw-alias-label-primary);
476
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
478
+ font-family: inherit; /* 所见即所得:与 .myt-chapterBody 同 UI 字体 */
477
479
  font-size: 13px;
478
- line-height: 1.7;
479
- resize: vertical;
480
+ line-height: 22px; /* 与 .myt-chapterBody 一致 */
481
+ resize: none; /* 高度由自动长高 effect 接管 */
482
+ overflow: hidden;
480
483
  min-height: 320px;
481
484
  }
482
485
  .myt-editHint { font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-tertiary); }
@@ -877,8 +880,9 @@ html[data-dsh-maoying-active]:not([data-dsh-mnemon-active]):not([data-dsh-taskbo
877
880
  }
878
881
  .myt-verBadge:hover { background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 22%, transparent); }
879
882
 
880
- /* 一键升级按钮:与版本徽章同形(描边胶囊),装完/安装中禁用降透明度 */
881
- .myt-verUpgrade {
883
+ /* 一键升级 / 手动检测更新按钮:同形(描边胶囊),安装中/检测中禁用降透明度 */
884
+ .myt-verUpgrade,
885
+ .myt-verCheck {
882
886
  margin-left: 6px;
883
887
  padding: 2px 10px;
884
888
  border: 1px solid color-mix(in srgb, var(--dsw-alias-state-business-primary) 45%, transparent);
@@ -892,8 +896,10 @@ html[data-dsh-maoying-active]:not([data-dsh-mnemon-active]):not([data-dsh-taskbo
892
896
  white-space: nowrap;
893
897
  cursor: pointer;
894
898
  }
895
- .myt-verUpgrade:hover:not(:disabled) { background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 12%, transparent); }
896
- .myt-verUpgrade:disabled { opacity: 0.6; cursor: default; }
899
+ .myt-verUpgrade:hover:not(:disabled),
900
+ .myt-verCheck:hover:not(:disabled) { background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 12%, transparent); }
901
+ .myt-verUpgrade:disabled,
902
+ .myt-verCheck:disabled { opacity: 0.6; cursor: default; }
897
903
 
898
904
  /* ── 版本号 + 系统设置(字号五档,面板整体 zoom)────────────────────────── */
899
905
  .myt-verTag {
@@ -1013,6 +1019,15 @@ html[data-dsh-maoying-active]:not([data-dsh-mnemon-active]):not([data-dsh-taskbo
1013
1019
  .myt-md a { color: var(--dsw-alias-state-business-primary); text-decoration: none; }
1014
1020
  .myt-md a:hover { text-decoration: underline; }
1015
1021
  .myt-md strong { color: var(--dsw-alias-label-primary); }
1022
+ .myt-md .myt-mdTableWrap { overflow-x: auto; margin: 6px 0 10px; }
1023
+ /* white-space: normal 必须有:落点容器(.myt-outlineBody / .myt-worldDesc)是
1024
+ pre-wrap,不覆盖则单元格内容按源码换行。 */
1025
+ .myt-md table.myt-mdTable { border-collapse: collapse; width: 100%; white-space: normal; font-size: 12px; line-height: 1.6; }
1026
+ .myt-md .myt-mdTable th, .myt-md .myt-mdTable td { border: 1px solid var(--dsw-alias-border-l1); padding: 5px 9px; text-align: left; vertical-align: top; }
1027
+ .myt-md .myt-mdTable th { background: var(--dsw-alias-bg-layer-3); color: var(--dsw-alias-label-primary); font-weight: 600; }
1028
+ .myt-md .myt-mdTable .myt-ta-l { text-align: left; }
1029
+ .myt-md .myt-mdTable .myt-ta-c { text-align: center; }
1030
+ .myt-md .myt-mdTable .myt-ta-r { text-align: right; }
1016
1031
 
1017
1032
  /* ── 书稿元信息表单(概览「编辑」态展开)────────────────────────────────── */
1018
1033
  .myt-setGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }