diff --git a/public/mobile.css b/public/mobile.css index 74476fb..6f609fc 100644 --- a/public/mobile.css +++ b/public/mobile.css @@ -122,6 +122,7 @@ h1 { .offline-panel, .device-panel, .app-settings-panel, +.device-settings-panel, .batch-panel, .history-strip, .results { @@ -149,6 +150,59 @@ h1 { gap: 10px; } +.device-settings-panel { + padding: 0; + overflow: hidden; +} + +.device-settings-panel > summary { + min-height: 46px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 10px; + padding: 0 12px; + color: var(--accent); + font-weight: 900; + cursor: pointer; + list-style: none; +} + +.device-settings-panel > summary::-webkit-details-marker { + display: none; +} + +.device-settings-panel > summary::before { + content: ">"; + display: inline-grid; + place-items: center; + width: 20px; + height: 20px; + border-radius: 999px; + background: var(--accent-soft); + color: var(--accent); + transition: transform 0.16s ease; +} + +.device-settings-panel[open] > summary::before { + transform: rotate(90deg); +} + +.device-settings-panel > summary span:first-child { + margin-right: auto; +} + +.device-settings-panel .device-panel, +.device-settings-panel .app-settings-panel, +.device-settings-panel .install-hint, +.device-settings-panel .network { + border: 0; + border-top: 1px solid var(--line); + border-radius: 0; + margin: 0; + background: transparent; +} + .settings-head { display: flex; justify-content: space-between; @@ -298,11 +352,15 @@ textarea:focus { .actions { display: grid; - grid-template-columns: 1fr 118px 92px; + grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; } +#collect-button { + grid-column: 1 / -1; +} + button { height: 44px; border: 1px solid var(--accent); @@ -332,6 +390,12 @@ button:disabled, color: var(--muted); } +.mobile-status-stack { + display: grid; + gap: 8px; + margin-bottom: 10px; +} + .offline-status, .install-hint { background: var(--panel); @@ -343,6 +407,10 @@ button:disabled, font-size: 13px; } +.mobile-status-stack .offline-status { + margin-bottom: 0; +} + .install-hint { display: grid; grid-template-columns: minmax(0, 1fr) auto; @@ -726,3 +794,36 @@ button:disabled, padding: 22px 4px; text-align: center; } + +@media (max-width: 420px) { + .mobile-shell { + padding-left: 10px; + padding-right: 10px; + } + + .mobile-header { + align-items: flex-start; + } + + h1 { + font-size: 20px; + } + + .actions, + .setting-actions, + .device-panel, + .install-hint { + grid-template-columns: 1fr; + } + + .draft-actions { + display: grid; + grid-template-columns: 1fr; + } + + .desktop-link, + .secondary, + button { + min-height: 42px; + } +} diff --git a/public/mobile.html b/public/mobile.html index 0f2e029..a21909a 100644 --- a/public/mobile.html +++ b/public/mobile.html @@ -18,33 +18,6 @@ 桌面版 -
- - -
- -
-
-
-
手机 App 设置
-

绑定电脑或 NAS 地址后,离开局域网再回来也能快速同步。

-
- 检测中 -
- -
- - -
-
尚未绑定固定地址,默认使用当前打开页面。
-
-