agent-loft 0.2.124 → 0.2.125
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/package.json +1 -1
- package/web/css/mobile.css +4 -4
- package/web/css/topbar.css +1 -1
- package/web/settings/index.js +7 -4
package/package.json
CHANGED
package/web/css/mobile.css
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
padding-left: 12px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.
|
|
10
|
+
.menu-btn.icon-btn,
|
|
11
11
|
.top-actions {
|
|
12
12
|
border-radius: 999px;
|
|
13
13
|
background: var(--bg-input);
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@media (prefers-color-scheme: dark) {
|
|
18
|
-
.
|
|
18
|
+
.menu-btn.icon-btn,
|
|
19
19
|
.top-actions {
|
|
20
20
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), 0 2px 5px rgba(0, 0, 0, 0.12);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.
|
|
24
|
+
.menu-btn.icon-btn {
|
|
25
25
|
width: 44px;
|
|
26
26
|
height: 44px;
|
|
27
27
|
color: var(--fg);
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.
|
|
130
|
+
.menu-btn.icon-btn {
|
|
131
131
|
display: inline-grid;
|
|
132
132
|
}
|
|
133
133
|
|
package/web/css/topbar.css
CHANGED
package/web/settings/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { fill, h, icon } from "../lib/dom.js";
|
|
|
2
2
|
import { api } from "../lib/api.js";
|
|
3
3
|
import { contentHash, isAdmin, ui } from "../state.js";
|
|
4
4
|
import { closeMenu, confirmDialog } from "../lib/overlay.js";
|
|
5
|
-
import { closeSide, renderSidebar } from "../views/sidebar.js";
|
|
5
|
+
import { closeSide, openSide, renderSidebar } from "../views/sidebar.js";
|
|
6
6
|
import { syncDesktopMenu } from "../views/topbar.js";
|
|
7
7
|
import { WS } from "../lib/ws.js";
|
|
8
8
|
import { hasDirty, markDirty } from "./common.js";
|
|
@@ -64,9 +64,12 @@ export async function openSettings(tab) {
|
|
|
64
64
|
if (previousFocus?.isConnected) previousFocus.focus({ preventScroll: true });
|
|
65
65
|
return true;
|
|
66
66
|
};
|
|
67
|
-
const
|
|
67
|
+
const title = h("h1", { tabindex: "-1" }, "设置");
|
|
68
68
|
const pane = h("main", { class: "settings-view", "aria-label": "设置" },
|
|
69
|
-
h("header", { class: "settings-header" },
|
|
69
|
+
h("header", { class: "settings-header" },
|
|
70
|
+
h("button", { class: "icon-btn menu-btn", onclick: openSide, title: "会话列表" }, icon("menu")),
|
|
71
|
+
title,
|
|
72
|
+
),
|
|
70
73
|
h("div", { class: "settings" }, nav, panel),
|
|
71
74
|
);
|
|
72
75
|
const settings = { close, isDirty, selectTab: (name) => { tab = name; } };
|
|
@@ -77,7 +80,7 @@ export async function openSettings(tab) {
|
|
|
77
80
|
syncDesktopMenu();
|
|
78
81
|
renderSidebar();
|
|
79
82
|
WS.presence();
|
|
80
|
-
|
|
83
|
+
title.focus({ preventScroll: true });
|
|
81
84
|
|
|
82
85
|
// 带 data-form 的表单里改了东西:标成没保存(common.js 的 saveButton)
|
|
83
86
|
const onEdit = (e) => {
|