Repository navigation
[Bug][2.0.15-next] sidebar.footer.action is a row flex with a display:contents anchor — multiple launchers crush each other (Desktop-only workaround exists) #8023
fomalhaut1998
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
环境
dsh-desktop-next)2.0.15-nexthttp://127.0.0.1:17866(普通 web 客户端)dsh-cost-meter(今日/余额卡)、dsh-mobile(移动访问)、dsh-context(上下文洞察)、@agents-anywhere/dsh-bridge-next(远程控制)@deepseek-ai/dsh-client-ui-renderer(槽锚点)、@deepseek-ai/dsh-client-ui-sidebar(槽容器)、dsh-desktop-next(workaround)症状(浏览器页侧边栏底部)
费用卡被压成窄条、内部出现横向滚动条;移动访问 / 上下文洞察 / 远程控制 三个启动器挤到同一行、标签全部变成「移…上…远…」省略号。桌面窗口里同样的四个占用者是正常竖排。
根因
display:contents—— 它自己不参与布局,槽内每个占用者被直接摊成父容器的兄弟节点:footArea→footerActions(sidebar.footer.action) +settingsArea(sidebar.settings),见同文件 405-414 行的renderSlot。)上游其实已经知道这件事
dsh-desktop-next自己的客户端 bundle 里带了一段专门修这个的样式,注释写得很直白:但安装点被桌面门挡住(
resources/app/lib/client.js):ctx.effect(installSidebarFooterStyles, …)原本写在if (window.desktopNext) { … }内部。桌面窗口有window.desktopNext,普通浏览器页没有(resources/app/cordis.patch.yml把dsh-desktop-next作为插件插进 Host,所以 bundle 在浏览器页照样加载,只是走不到那行)→ 浏览器页退回上游互挤版布局。期望行为
把"竖向堆叠"提升为槽的通用行为,而不是 Desktop 专属:
或者由槽机制本身提供保证:当某槽被"整行"占用者注册多个时自动堆叠 / 换行(
flex-wrap+flex-basis:100%),而不是把矛盾留给每个占用者。注意折叠态(rail)也要一起看:.x-Wl6W_collapsed .x-Wl6W_footerActions{justify-content:center;width:auto}仍应覆盖。本机绕过
把
installSidebarFooterStyles()的调用移出if (window.desktopNext)(函数自带STYLE_ID去重,不会重复安装),桌面端表现不变。详见resources/app/lib/client.js,锚点注释// DSH NEXT local patch: install for every client, not only the desktop window.上游仓库对应位置(master @ 477b4f4,都仍在)
installSidebarFooterStyles)只在打包版resources/app/lib/client.js里;其源注释指向
dsh-plugin-desktop-beta/src/client/sidebar-footer-styles.ts,未出现在本仓库 master。(本机为 DSH NEXT 2.0.15-next;以上路径与行号均按打包后的
resources/app/…与上游 master 对照核实。)All reactions