@michengai/dsh-codex-ui 2.0.2 → 2.0.3

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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.3 (2026-10-28)
4
+
5
+ - **Support iOS Safe Area Insets and Mobile Layout**: Introduce W3C standard `env(safe-area-inset-*)` safe-area padding into mobile settings skin overrides (`@media (max-width: 640px)`) and enforce single-column layout priorities. This eliminates the collision where the "← Back to app" button was covered by iPhone notches and the Dynamic Island (#61).
6
+
3
7
  ## 2.0.2 (2026-10-28)
4
8
 
5
9
  - **Fix Modal Overlay Selector Pollution**: Scope the fullscreen settings workbench overlay selector to target only the settings panel's own presentation layer. This eliminates CSS bleed where quota queries, confirmation dialogs, and other modal windows were inadvertently stretched and pinned to the top-left corner while settings were open.
@@ -1,5 +1,9 @@
1
1
  # 更新日志
2
2
 
3
+ ## 2.0.3 (2026-10-28)
4
+
5
+ - **适配移动端 iOS 安全区与单列排版**:在设置工作台移动端样式(`@media (max-width: 640px)`)中增加标准 `env(safe-area-inset-*)` 安全区边距,并强化移动端单列覆盖优先级,彻底解决 iPhone 灵动岛/刘海遮挡「← 返回应用」按钮导致无法点击的问题(#61)。
6
+
3
7
  ## 2.0.2 (2026-10-28)
4
8
 
5
9
  - **修复模态窗口全局样式污染**:收窄全屏设置工作台遮罩选择器,仅精确作用于设置面板自身;彻底修复在设置打开状态下,额度查询、二次确认及第三方插件弹窗等模态窗口被错误拉伸并移至左上角的问题。
package/lib/client.js CHANGED
@@ -4029,40 +4029,52 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
4029
4029
 
4030
4030
  @media (max-width: 640px) {
4031
4031
  body > [role="presentation"]:has(> [data-shortcut-modal="settings"]) {
4032
- padding: 0;
4032
+ padding: 0 !important;
4033
4033
  }
4034
4034
 
4035
4035
  [data-shortcut-modal="settings"] {
4036
- width: 100vw;
4037
- height: 100vh;
4038
- max-width: none;
4039
- max-height: none;
4040
- border-radius: 0;
4041
- border: none;
4042
- flex-direction: column;
4036
+ width: 100vw !important;
4037
+ height: 100vh !important;
4038
+ max-width: none !important;
4039
+ max-height: none !important;
4040
+ border-radius: 0 !important;
4041
+ border: none !important;
4042
+ flex-direction: column !important;
4043
+ padding-top: env(safe-area-inset-top, 0px) !important;
4044
+ padding-bottom: env(safe-area-inset-bottom, 0px) !important;
4045
+ padding-left: env(safe-area-inset-left, 0px) !important;
4046
+ padding-right: env(safe-area-inset-right, 0px) !important;
4047
+ box-sizing: border-box !important;
4043
4048
  }
4044
4049
 
4045
4050
  [data-shortcut-modal="settings"] > nav {
4046
- width: 100%;
4047
- min-width: 0;
4048
- gap: 10px;
4049
- padding: 12px 16px 8px;
4050
- border-right: 0;
4051
- border-bottom: 1px solid rgba(255, 255, 255, 0.08);
4051
+ width: 100% !important;
4052
+ min-width: 0 !important;
4053
+ max-width: none !important;
4054
+ gap: 10px !important;
4055
+ padding: 12px 16px 8px !important;
4056
+ border-right: 0 !important;
4057
+ border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
4052
4058
  }
4053
4059
 
4054
- [data-shortcut-modal="settings"] > nav > :first-child { padding-inline: 4px; }
4060
+ [data-shortcut-modal="settings"] > nav > :first-child { padding-inline: 4px !important; }
4055
4061
 
4056
4062
  [data-shortcut-modal="settings"] > nav > :nth-child(2) {
4057
- flex-direction: row;
4058
- overflow-x: auto;
4063
+ flex-direction: row !important;
4064
+ overflow-x: auto !important;
4059
4065
  }
4060
4066
 
4061
- [data-shortcut-modal="settings"] > nav > :nth-child(2) > button { flex: 0 0 auto; }
4067
+ [data-shortcut-modal="settings"] > nav > :nth-child(2) > button { flex: 0 0 auto !important; }
4062
4068
 
4063
- [data-shortcut-modal="settings"] > div > :first-child { height: 48px; min-height: 48px; padding: 0 16px; }
4069
+ [data-shortcut-modal="settings"] > div:not(nav) {
4070
+ flex: 1 1 auto !important;
4071
+ min-height: 0 !important;
4072
+ overflow-y: auto !important;
4073
+ }
4074
+
4075
+ [data-shortcut-modal="settings"] > div > :first-child { height: 48px !important; min-height: 48px !important; padding: 0 16px !important; }
4064
4076
 
4065
- [data-shortcut-modal="settings"] > div > :nth-child(2) { padding: 16px; }
4077
+ [data-shortcut-modal="settings"] > div > :nth-child(2) { padding: 16px !important; }
4066
4078
  }
4067
4079
  `;
4068
4080
  let lastSkinCheckTime = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-codex-ui",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "DSH Codex UI — 为 DeepSeek Harness 提供极速历史召回、全屏设置皮肤、原生物理毛玻璃换肤与模块化侧栏 · Input enhancement, settings skin, native glass theme, and modular sidebar for DSH",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {