Files
AstrBot/dashboard
DFGHJ43 f220171057 fix(dashboard): stop the mobile browser UI covering the sidebar bottom (#10512)
* fix(dashboard): keep the mobile shell and sidebar inside the visible viewport

The app shell and the sidebar were sized with 100vh, which on mobile browsers is the largest viewport (browser UI retracted). The drawer bottom - the last navigation entries plus the Settings/version footer - was painted underneath the browser UI, and the oversized flex box left no scrollable overflow, so the list could not be scrolled either.

Size the shell, the content card and the sidebar with dynamic viewport units (100dvh) instead. Desktop is unaffected because dvh equals vh there.

* fix(dashboard): size the chat sidebar with dynamic viewport units

The chat drawer kept 100vh, so on mobile its bottom - the session list tail and the Settings entry - was painted underneath the browser UI, exactly like the main sidebar. Its top: 0 is anchored to the same containing block (.v-application__wrap), so 100dvh is the matching fix.
2026-10-11 22:46:55 +08:00
..
…

AstrBot 管理面板

基于 CodedThemes/Berry 模板开发。

本地开发

先在项目根目录启动后端:

uv sync
uv run main.py

在另一个终端启动 WebUI:

cd dashboard
pnpm install
pnpm dev

开发服务器默认运行在 http://localhost:3000,将 /api 请求代理到 http://127.0.0.1:6185。后端地址不同时,请修改 vite.config.ts 中的 server.proxy。

构建与 API 客户端

pnpm build

此命令检查 TypeScript 类型并生成 dist/。当后端 API 路由、请求/响应结构或 OpenAPI 定义发生变化时,在本目录运行 pnpm generate:api 重新生成前端客户端。

发布更新入口

WebUI 顶部的更新入口会打开更新对话框,通过后端 API 获取版本信息。VITE_ASTRBOT_RELEASE_BASE_URL 当前没有被前端代码读取,设置此变量不会改变更新入口。