fix(ui): Copilot 浮窗按钮被 F7 全局 width:100% 撑满,显式覆盖为 width:auto
Framework7 自带 button { width: 100% } 且打包后排在 Copilot 规则之后,把
面板内 ✕ 与发送按钮拉满父容器,input 被挤成 21px、✕ 跑到面板中部。
在 .copilot-close / .copilot-compose button 上显式 width:auto + flex 固定,
重建并同步 backend/static 产物(main.00d05e81.css)。
This commit is contained in:
@@ -74,6 +74,11 @@
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
padding: 0 0.2rem;
|
||||
/* Framework7's bare `button { width: 100% }` ships after this file in the
|
||||
bundle, so without `width: auto` the close button would stretch across
|
||||
the whole header and push the title to the left. */
|
||||
width: auto;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.copilot-body {
|
||||
@@ -180,6 +185,7 @@
|
||||
|
||||
.copilot-compose button {
|
||||
flex: none;
|
||||
width: auto;
|
||||
padding: 0.45rem 0.8rem;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
|
||||
Reference in New Issue
Block a user