codex-work-receipt 0.10.0 → 0.10.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.1
4
+
5
+ - 修复宽屏 HTML 报告中“更多小票功能”向左覆盖小票主体的问题,展开面板现在与赞助商卡片保持中心对齐并随视口自适应宽度。
6
+ - 中小屏提前切换为单栏文档流,四个功能 Tab 改为两行展示;手机端命令列表改为单列,避免横向遮挡和拥挤。
7
+
3
8
  ## 0.10.0
4
9
 
5
10
  - 新增 `--custom-range`、`--from` 和 `--to`,支持自定义完整自然日或精确到时分的统计区间。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-work-receipt",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "type": "module",
5
5
  "description": "Generate a privacy-first Codex work receipt from local session metadata.",
6
6
  "author": "a-bai-2026",
@@ -719,10 +719,15 @@ export function renderHtml({ record, dataQrDataUrl = null, miniProgramCodeDataUr
719
719
  from { opacity: 0; transform: translateY(-3px); }
720
720
  to { opacity: 1; transform: translateY(0); }
721
721
  }
722
- @media (min-width: 1021px) {
722
+ @media (min-width: 1120px) {
723
+ .sidebar {
724
+ align-items: center;
725
+ }
726
+ .sidebar-card {
727
+ width: 100%;
728
+ }
723
729
  .sidebar-features[open] {
724
- width: 560px;
725
- margin-left: -380px;
730
+ width: clamp(360px, calc(100vw - 880px), 560px);
726
731
  }
727
732
  }
728
733
  @media (prefers-reduced-motion: reduce) {
@@ -1169,7 +1174,7 @@ export function renderHtml({ record, dataQrDataUrl = null, miniProgramCodeDataUr
1169
1174
  line-height: 1.6;
1170
1175
  text-align: center;
1171
1176
  }
1172
- @media (max-width: 1020px) {
1177
+ @media (max-width: 1119px) {
1173
1178
  .layout {
1174
1179
  grid-template-columns: 1fr;
1175
1180
  max-width: 540px;
@@ -1186,7 +1191,30 @@ export function renderHtml({ record, dataQrDataUrl = null, miniProgramCodeDataUr
1186
1191
  flex: 1 1 160px;
1187
1192
  min-width: 0;
1188
1193
  }
1189
- .sidebar-features { flex-basis: 100%; }
1194
+ .sidebar-features {
1195
+ width: 100%;
1196
+ max-width: 100%;
1197
+ margin-inline: 0;
1198
+ flex-basis: 100%;
1199
+ }
1200
+ .feature-tabs__list {
1201
+ display: grid;
1202
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1203
+ overflow: visible;
1204
+ }
1205
+ .feature-tab {
1206
+ width: 100%;
1207
+ min-width: 0;
1208
+ white-space: normal;
1209
+ }
1210
+ }
1211
+ @media (max-width: 560px) {
1212
+ .feature-panel ul { grid-template-columns: 1fr; }
1213
+ .feature-command:nth-child(2) {
1214
+ margin-top: 10px;
1215
+ padding-top: 10px;
1216
+ border-top: 1px dashed var(--feature-soft-line);
1217
+ }
1190
1218
  }
1191
1219
  @media (max-width: 420px) {
1192
1220
  .layout { padding-inline: 10px; }
@@ -1201,12 +1229,6 @@ export function renderHtml({ record, dataQrDataUrl = null, miniProgramCodeDataUr
1201
1229
  .structure-grid { grid-template-columns: 1fr; }
1202
1230
  .sidebar { flex-direction: column; }
1203
1231
  .sidebar-card { flex-basis: auto; }
1204
- .feature-panel ul { grid-template-columns: 1fr; }
1205
- .feature-command:nth-child(2) {
1206
- margin-top: 10px;
1207
- padding-top: 10px;
1208
- border-top: 1px dashed var(--feature-soft-line);
1209
- }
1210
1232
  }
1211
1233
  </style>
1212
1234
  </head>