Compare commits

...
Author SHA1 Message Date
Codex 998225ae04 fix(fuc): stabilize support widget layers 2026-11-08 15:46:14 +08:00
4 changed files with 80 additions and 9 deletions

No files matched your search

+4
View File
@@ -1,5 +1,9 @@
# Fuc:新版 FUC 用户主题适配
2026-11-08 Fuc 0.12.22 客服外层样式修复:稳定面板与启动/关闭按钮层级,隐藏后立即释放点击,菜单和业务弹窗遮挡实际控件;统一 667px 手机断点和短横屏高度。仅修改 Fuc 主题 CSS、缓存引用与版本,不改共享客服或业务。上一轮本地 57 项回归、连续开关及多尺寸/菜单/弹窗/回顶组合检查通过;本发布候选现有 55 项主题测试通过。
用户同时要求移除客服“常见问题”卡片和置顶公告中“注册免费试用3天,签到可获得1天试用时间,一直签到可以一直试用。”段落。卡片通过 FUC 独立收件箱取消 portal_id 关联处理,保留文章和会话;公告只删除匹配的旧段落。生产变更须先保存各自字段备份并逐项回读,不恢复整库。此提交记录方案,最终发布与配置回执在 `codex/output/fuc-theme/support-release-20261108/` 及服务器私有同任务目录,不能仅凭提交推定已部署。
2026-11-07 Fuc 0.12.21:按用户要求移除用户中心置顶公告旁的每日签到按钮,同时删除旧模板按钮与禁用适配。置顶公告内容、XB 业务和其他页面保持;更新主题及首页模板缓存引用。基于正式 `9971b6fab5197e64c31316dcfae86aaa5ce34d6a` 独立发布,保留已上线客服集成,验收与实际切换状态以任务回执为准。
2026-11-07 原生标志发布候选 Fuc 0.12.20:用户选择 Cool 主题原生折叠标志,登录/注册/找回密码、侧栏、首页和浏览器图标统一使用旧 FUC `cool1.png` 原始图案。原 PNG 字节嵌入 SVG,首页保留正式「福云」字标。资源引用更新缓存版本。发布范围仅品牌素材及其缓存引用;不包含本地折福试稿或其他未发布 UI/客服修改。回退基线为 `2c92a857e8da54c16c4861b25ea420f560ccc032`;发布验收以任务回执为准。
+74 -7
View File
@@ -43,15 +43,82 @@
padding-inline-end: min(160px, 44vw);
}
:root[data-fuc-support-palette] body[data-native-mode='user'].modal-open > .woot-widget-holder {
visibility: hidden;
/* Keep SDK controls in stable layers. Its .woot--hide otherwise sends them
behind the page and below the viewport before the exit animation finishes.
Content / return-to-top < support < navigation / business modals. */
:root[data-fuc-support-palette] body > .woot-widget-holder {
z-index: 1000 !important;
transition: opacity .2s ease, transform .2s ease !important;
}
/* The SDK's launcher z-index otherwise covers the mobile navigation drawer. */
:root[data-fuc-support-palette] body[data-native-mode='user'].menu-open > :is(#cw-bubble-holder, .woot-widget-holder) {
visibility: hidden;
:root[data-fuc-support-palette] #cw-bubble-holder > button.woot-widget-bubble {
z-index: 1001 !important;
top: auto !important;
bottom: calc(var(--xb-support-bottom-gap, 24px) + env(safe-area-inset-bottom, 0px)) !important;
transition: opacity .15s ease, transform .2s ease, background-color .15s ease !important;
}
:root[data-fuc-support-palette] body[data-native-mode='user']:not(.modal-open):has(> .woot-widget-holder:not(.woot--hide)) #app .scroll-top {
visibility: hidden;
:root[data-fuc-support-palette] #cw-bubble-holder > .woot-elements--right {
right: calc(20px + env(safe-area-inset-right, 0px));
}
/* Hidden controls must never catch clicks during rapid open/close reversals. */
:root[data-fuc-support-palette] body > .woot-widget-holder.woot--hide,
:root[data-fuc-support-palette] #cw-bubble-holder > button.woot--hide {
visibility: hidden !important;
pointer-events: none !important;
}
@media (min-width: 668px) {
:root[data-fuc-support-palette] body > .woot-widget-holder {
top: auto !important;
bottom: calc(var(--xb-support-bottom-gap, 24px) + var(--xb-support-button-height, 48px) + var(--xb-support-panel-gap, 12px) + env(safe-area-inset-bottom, 0px)) !important;
min-height: 0 !important;
max-height: min(640px, calc(100vh - 100px - env(safe-area-inset-bottom, 0px))) !important;
max-height: min(640px, calc(100dvh - 100px - env(safe-area-inset-bottom, 0px))) !important;
max-width: calc(100vw - 40px);
}
:root[data-fuc-support-palette] body > .woot-widget-holder.woot-elements--right {
right: calc(20px + env(safe-area-inset-right, 0px));
}
}
/* The SDK includes 667px in both mobile and desktop rules. Choose one layout. */
@media (max-width: 667px) {
:root[data-fuc-support-palette] body > .woot-widget-holder:not(.has-unread-view) {
inset: 0 !important;
width: 100% !important;
height: 100vh !important;
height: 100dvh !important;
min-height: 0 !important;
max-height: 100vh !important;
max-height: 100dvh !important;
border-radius: 0;
}
:root[data-fuc-support-palette] body > .woot-widget-holder.has-unread-view {
top: auto !important;
bottom: 84px !important;
}
:root[data-fuc-support-palette] #cw-bubble-holder > button.woot--close {
visibility: hidden !important;
pointer-events: none !important;
}
}
/* Target the actual controls, not only their parent: SDK visibility rules on
children can override inherited visibility while a menu/modal is open. */
:root[data-fuc-support-palette] body[data-native-mode='user']:is(.modal-open, .menu-open) > .woot-widget-holder,
:root[data-fuc-support-palette] body[data-native-mode='user']:is(.modal-open, .menu-open) > #cw-bubble-holder > button {
visibility: hidden !important;
pointer-events: none !important;
}
@media (prefers-reduced-motion: reduce) {
:root[data-fuc-support-palette] body > .woot-widget-holder,
:root[data-fuc-support-palette] #cw-bubble-holder > button.woot-widget-bubble {
transition: none !important;
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "Fuc",
"description": "直接复用新版FUC原始用户模板、样式、图标及素材,接入XB接口;XB管理员后台保持原样。",
"version": "0.12.21",
"version": "0.12.22",
"images": "",
"configs": [
{
+1 -1
View File
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<meta name="referrer" content="same-origin">
<title>{{ $title }}</title>
<link rel="stylesheet" href="/theme/{{ $theme }}/assets/customer-service.css?v=29">
<link rel="stylesheet" href="/theme/{{ $theme }}/assets/customer-service.css?v=ui-support-layers-1">
<script>
try {
const route = location.hash.match(/^#\/?([^/?]+)/)?.[1];