refine: 页面背景贯通整页布局,统一卡片圆角并更新 Edi 形象
All checks were successful
Build and Deploy Front / deploy (push) Successful in 4m31s

页面背景联动顶栏与内容壳;去掉块级描边;侧栏/面板圆角统一 8px;上下文条淡橙底;Edi FAB 换新立绘并保留眨眼与跳动。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zzh 2026-11-25 12:33:15 +08:00
parent 188675e9bf
commit c4f7144f47
22 changed files with 203 additions and 198 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 791 KiB

View File

@ -9,12 +9,18 @@
--app-sidebar-bg: #054f74;
--app-page-bg: #f0f3f4;
/*
* 极淡主色浅雾:上沿略提亮,约 220px 内回到灰底。
* 用 background-attachment: fixed 让顶栏与内容共享同一张底。
* 极淡主色浅雾:上沿略提亮,约 220px 内回到所选页面底。
* 顶色必须混入 --app-page-bg,否则换背景时顶栏区域几乎不变。
* background-attachment: fixed 让顶栏与内容共享同一张底。
*/
--app-page-bg-gradient: linear-gradient(
180deg,
color-mix(in srgb, var(--app-primary-color, #054f74) 5%, #f5f8f9) 0%,
color-mix(
in srgb,
var(--app-primary-color, #054f74) 5%,
var(--app-page-bg, #f0f3f4)
)
0%,
var(--app-page-bg, #f0f3f4) 220px,
var(--app-page-bg, #f0f3f4) 100%
);
@ -26,7 +32,8 @@
var(--app-page-padding-bottom);
--app-page-padding-list: var(--app-page-padding-top) var(--app-page-padding-x) 16px;
--app-card-bg: #ffffff;
--app-card-border: #e5e6eb;
/* 块级外壳不要描边,靠底色/圆角区分层次 */
--app-card-border: transparent;
--app-elevated-bg: #ffffff;
/* Mac 优先 SF Mono/Menlo,Windows 回落 Consolas;业务侧统一用 var(--app-font-mono) */
--app-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
@ -342,15 +349,32 @@ body {
/*
* 运营端主内容:全局收紧「顶栏页签 → 页面内容」间距;
* 根容器背景透出全局浅雾,避免各页实色灰底盖住渐变。
* 根容器透出布局壳上的 --app-page-bg,避免各页写死 #f0f3f4 / color-bg-1 盖住换色。
*/
.layout-content .page-layout-root {
background-color: var(--app-page-bg, #f0f3f4) !important;
background-image: none !important;
}
.layout-content .page-layout-root > [class*='-container'],
.layout-content .page-layout-root > [class*='-page'] {
.layout-content .page-layout-root > [class*='-page'],
.layout-content .page-layout-root > [class*='-layout'] {
padding-top: var(--app-page-padding-top, 8px) !important;
background-color: transparent !important;
background-image: none !important;
}
/* 块级外壳统一去描边(侧栏 / 列表卡 / 表格壳 / 内容面板) */
.layout-content .custom-left-menu,
.layout-content .warehouse-list-page-card,
.layout-content .content-panel,
.layout-content .handsontable-pro-container,
.layout-content [class*='-page-card'],
.layout-content [class*='-list-page-card'] {
border: none !important;
box-shadow: none;
}
/* 夜间关闭浅雾,回到实色壳 */
html[data-theme='dark'],
html[data-theme='dark'] body {

View File

@ -17,7 +17,7 @@
</div> -->
<div class="h-100% w-100% flex">
<div
class="trb-transform-left m-r-12px bg-white"
class="trb-transform-left m-r-12px"
:style="{ width: `${props.leftWidth}px` }"
>
<slot name="left" />

View File

@ -616,6 +616,7 @@
--clm-selected-text: var(--app-primary-color);
--clm-selected-border: color-mix(in srgb, var(--app-primary-color) 40%, transparent);
--clm-border: rgba(15, 16, 17, 0.12);
/* 与设计规范卡片圆角一致(Card / 列表壳 8px) */
--clm-radius: 8px;
/* 列表卡片统一高度 */
--clm-node-title-line-height: 18px;
@ -635,14 +636,14 @@
overflow: hidden;
color: var(--clm-text);
background: var(--clm-bg);
border: 1px solid var(--clm-border);
border-radius: 12px;
border: none;
border-radius: var(--clm-radius);
box-shadow: none;
}
.sidebar-header {
padding: 2px 4px 10px;
border-bottom: 1px solid var(--clm-border);
border-bottom: none;
min-height: 40px;
display: flex;
flex-direction: column;
@ -1019,7 +1020,7 @@
padding: 8px 4px 2px;
display: flex;
justify-content: center;
border-top: 1px solid var(--clm-border);
border-top: none;
}
.menu-pagination-capsule {

View File

@ -30,7 +30,7 @@ const props = withDefaults(
defineProps<{
size?: 'sm' | 'md' | 'lg';
pulse?: boolean;
/** 待机动效;lg 默认开,会话小头像默认关 */
/** 待机动效;lg 默认开(眨眼 live + 宿主跳动) */
animated?: boolean;
}>(),
{
@ -44,7 +44,7 @@ const animated = computed(() =>
props.animated === undefined ? props.size === 'lg' : props.animated,
);
/** 动图加载失败 / 系统减动效时回退静态 PNG */
/** 动图失败 / 系统减动效时回退静态 PNG */
const liveFailed = ref(false);
const reduceMotion = ref(false);
let motionMq: MediaQueryList | null = null;

View File

@ -2026,6 +2026,18 @@
height: 72px;
}
/* FAB 新立绘偏满幅,略缩小图形,点击热区仍 72 */
.edi-fab-host .edi-fab-wrap--lg {
display: flex;
align-items: center;
justify-content: center;
}
.edi-fab-host .edi-fab-wrap--lg .edi-fab__img {
width: 78%;
height: 78%;
}
.edi-fab-wrap--sm .edi-fab__pulse {
inset: 1px;
border-width: 1px;
@ -2045,45 +2057,15 @@
transition: transform 0.2s ease, filter 0.2s ease;
}
/*
* 更好的静态图做法:
* 1) 轻呼吸(持续但克制)
* 2) 近场跟视(由 --edi-lean-* 驱动)
* 避免一直左右晃,那种更像廉价循环。
*/
/* FAB 常态静止;眨眼靠 live webp;跳动由宿主 .is-attention 触发 */
.edi-fab-wrap.is-animated {
transform: translate3d(
calc(var(--edi-lean-x, 0) * 5px),
calc(var(--edi-lean-y, 0) * 4px),
0
)
rotate(calc(var(--edi-lean-x, 0) * 6deg));
transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
will-change: transform;
}
/* 静态图才叠 CSS 呼吸;live webp 自带呼吸+眨眼,避免双重动效 */
.edi-fab-wrap.is-animated:not(.is-live) .edi-fab__img {
animation: edi-idle-breathe 4.6s ease-in-out infinite;
will-change: transform, filter;
transform: none;
}
.edi-fab-wrap.is-live .edi-fab__img {
animation: none;
}
@keyframes edi-idle-breathe {
0%,
100% {
transform: translateY(0) scale(1);
filter: drop-shadow(0 6px 14px rgba(255, 122, 24, 0.3));
}
50% {
transform: translateY(-3px) scale(1.035);
filter: drop-shadow(0 10px 18px rgba(255, 122, 24, 0.4));
}
}
.edi-fab__pulse {
position: absolute;
inset: 4px;
@ -2122,22 +2104,7 @@
cursor: grabbing;
}
.edi-fab-host.is-dragging .edi-fab-wrap.is-animated,
.edi-fab-host.is-attention .edi-fab-wrap.is-animated,
.edi-fab-host.is-idle-nod .edi-fab-wrap.is-animated {
transition: none;
transform: none;
}
.edi-fab-host.is-dragging .edi-fab-wrap.is-animated .edi-fab__img,
.edi-fab-host.is-attention .edi-fab-wrap.is-animated .edi-fab__img,
.edi-fab-host.is-idle-nod .edi-fab-wrap.is-animated .edi-fab__img {
animation: none;
}
@media (prefers-reduced-motion: reduce) {
.edi-fab-wrap.is-animated,
.edi-fab-wrap.is-animated .edi-fab__img,
.edi-fab__pulse {
animation: none !important;
}

View File

@ -9,7 +9,6 @@
'is-menu-open': menuOpen,
'is-panel-open': batchPanelVisible,
'is-attention': attentionActive,
'is-idle-nod': idleNodActive,
}"
:style="fabStyle"
:title="isOpsAudience ? t('ediAssistant.ops.actionAdvisor') : t('ediAssistant.title')"
@ -168,10 +167,6 @@ const ediY = ref(0);
const viewport = ref({ width: window.innerWidth, height: window.innerHeight });
const menuOpen = ref(false);
const attentionActive = ref(false);
const idleNodActive = ref(false);
/** 指针相对 FAB 中心,-1..1,用于轻跟视 */
const leanX = ref(0);
const leanY = ref(0);
const RING_R = 32;
const RING_C = 2 * Math.PI * RING_R;
@ -184,8 +179,6 @@ const ringOffset = computed(() => {
});
let attentionTimer: ReturnType<typeof setTimeout> | null = null;
let idleNodTimer: ReturnType<typeof setTimeout> | null = null;
let idleNodLoopTimer: ReturnType<typeof setInterval> | null = null;
let jobPollTimer: ReturnType<typeof setInterval> | null = null;
/** Active job ids we are watching; used to detect finish without nagging on first load. */
let trackedActiveIds = new Set<number>();
@ -250,8 +243,6 @@ const fabStyle = computed(() => ({
top: `${ediY.value}px`,
width: `${FAB_SIZE}px`,
height: `${FAB_SIZE}px`,
'--edi-lean-x': String(leanX.value),
'--edi-lean-y': String(leanY.value),
}));
const floatHostStyle = computed(() => ({
@ -504,7 +495,6 @@ function openBatchPanel() {
function playAttention() {
attentionActive.value = false;
idleNodActive.value = false;
// restart CSS animation
requestAnimationFrame(() => {
attentionActive.value = true;
@ -516,71 +506,6 @@ function playAttention() {
});
}
function playIdleNod() {
if (
dragState.value.active ||
menuOpen.value ||
batchPanelVisible.value ||
attentionActive.value ||
document.hidden ||
window.matchMedia('(prefers-reduced-motion: reduce)').matches
) {
return;
}
idleNodActive.value = false;
requestAnimationFrame(() => {
idleNodActive.value = true;
if (idleNodTimer) clearTimeout(idleNodTimer);
idleNodTimer = setTimeout(() => {
idleNodActive.value = false;
idleNodTimer = null;
}, 700);
});
}
function startIdleNodLoop() {
stopIdleNodLoop();
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
idleNodLoopTimer = setInterval(playIdleNod, 9000);
}
function stopIdleNodLoop() {
if (idleNodLoopTimer) {
clearInterval(idleNodLoopTimer);
idleNodLoopTimer = null;
}
if (idleNodTimer) {
clearTimeout(idleNodTimer);
idleNodTimer = null;
}
idleNodActive.value = false;
}
/** 近场跟视:指针靠近才 lean,远处回正 */
function onWindowPointerMove(e: PointerEvent) {
if (dragState.value.active || attentionActive.value) {
leanX.value = 0;
leanY.value = 0;
return;
}
const cx = ediX.value + FAB_SIZE / 2;
const cy = ediY.value + FAB_SIZE / 2;
const dx = e.clientX - cx;
const dy = e.clientY - cy;
const dist = Math.hypot(dx, dy);
const reach = 220;
if (dist > reach) {
leanX.value *= 0.82;
leanY.value *= 0.82;
if (Math.abs(leanX.value) < 0.02) leanX.value = 0;
if (Math.abs(leanY.value) < 0.02) leanY.value = 0;
return;
}
const falloff = 1 - dist / reach;
leanX.value = Math.max(-1, Math.min(1, (dx / reach) * falloff * 1.35));
leanY.value = Math.max(-1, Math.min(1, (dy / reach) * falloff * 1.15));
}
function onDocPointerDown(e: PointerEvent) {
if (!menuOpen.value) return;
const el = fabRef.value;
@ -734,11 +659,9 @@ watch(attentionToken, () => {
onMounted(() => {
initEdiPosition();
window.addEventListener('resize', onViewportResize);
window.addEventListener('pointermove', onWindowPointerMove, { passive: true });
document.addEventListener('visibilitychange', onVisibilityChange);
document.addEventListener('pointerdown', onDocPointerDown, true);
document.addEventListener('keydown', onKeydown);
startIdleNodLoop();
bridgeAssistantRoute();
// No mount-time /order/batch/jobs poll — wait for FAB click or job submit.
});
@ -747,12 +670,10 @@ onUnmounted(() => {
onFloatDragEnd();
onFloatResizeEnd();
window.removeEventListener('resize', onViewportResize);
window.removeEventListener('pointermove', onWindowPointerMove);
document.removeEventListener('visibilitychange', onVisibilityChange);
document.removeEventListener('pointerdown', onDocPointerDown, true);
document.removeEventListener('keydown', onKeydown);
stopJobPoll();
stopIdleNodLoop();
if (attentionTimer) clearTimeout(attentionTimer);
});
</script>
@ -768,23 +689,6 @@ onUnmounted(() => {
animation: edi-fab-bounce 0.55s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.edi-fab-host.is-idle-nod:not(.is-attention) {
animation: edi-fab-idle-nod 0.7s cubic-bezier(0.34, 1.25, 0.64, 1);
}
@keyframes edi-fab-idle-nod {
0%,
100% {
transform: translateY(0) scale(1);
}
35% {
transform: translateY(-5px) scale(1.03);
}
60% {
transform: translateY(1px) scale(0.985);
}
}
@keyframes edi-fab-bounce {
0% {
transform: translateY(0) scale(1);

View File

@ -2990,7 +2990,7 @@
position: relative;
width: 100%;
height: 100%;
border: 0.5px solid var(--color-border-2) !important;
border: none !important;
border-radius: 4px;
overflow: hidden; // 不出现外层滚动条;滚动仅发生在 Handsontable .ht_master .wtHolder
flex: 1;

View File

@ -1387,8 +1387,8 @@ onUnmounted(() => {
padding-top: @headerInsetTop;
box-sizing: border-box;
z-index: 100;
/* 透出全局固着浅雾,与主内容同一张底 */
background: transparent;
/* 与页面背景联通:日间跟 --app-navbar-bg(= 页面底),夜间由 dark-mode 覆盖 */
background: var(--app-navbar-bg, var(--app-page-bg, #f0f3f4));
box-shadow: none;
border-bottom: none;

View File

@ -100,14 +100,14 @@
height: 100vh;
display: flex;
flex-direction: column;
background: transparent;
background: var(--app-page-bg, #f0f3f4);
}
/* 运营端:与改前一致 */
/* 运营端:整页壳跟页面背景走(含顶栏下方主区) */
.layout-content {
flex: 1;
overflow: hidden;
background-color: transparent;
background-color: var(--app-page-bg, #f0f3f4);
transition: padding 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
margin-top: 0;
display: flex;
@ -117,6 +117,7 @@
flex: 1;
overflow: hidden;
height: 100%;
background-color: var(--app-page-bg, #f0f3f4);
}
}

View File

@ -8,7 +8,7 @@ export default {
'settings.themeBrand.blue': 'Blue',
'settings.themeBrand.cyan': 'Cyan',
'settings.pageBg': 'Page Background',
'settings.pageBgHint': 'Admin content area and official site homepage',
'settings.pageBgHint': 'Admin full layout (incl. top nav) and official site homepage',
'settings.pageBg.ningzhi': 'Cream',
'settings.pageBg.default': 'Default Gray',
'settings.pageBg.mist': 'Mist Blue',

View File

@ -8,7 +8,7 @@ export default {
'settings.themeBrand.blue': '海蓝',
'settings.themeBrand.cyan': '青蓝',
'settings.pageBg': '页面背景',
'settings.pageBgHint': '管理端内容区与官网首页背景色',
'settings.pageBgHint': '管理端整页(含顶栏)与官网首页背景色',
'settings.pageBg.ningzhi': '凝脂',
'settings.pageBg.default': '默认灰',
'settings.pageBg.mist': '雾蓝',

View File

@ -60,6 +60,10 @@ const useAppStore = defineStore('app', {
const mode = (partial.theme === 'dark' ? 'dark' : 'light') as ThemeMode;
setStoredThemeMode(mode);
applyThemeMode(mode);
// light 模式会清掉内联 --app-page-bg,需按当前预设重刷(含顶栏)
if (mode === 'light') {
applyPageBackgroundColor(this.pageBackgroundColor);
}
}
if (partial.pageBackgroundColor !== undefined) {
setStoredPageBackground(partial.pageBackgroundColor);
@ -82,6 +86,9 @@ const useAppStore = defineStore('app', {
this.theme = mode;
setStoredThemeMode(mode);
applyThemeMode(mode);
if (!dark) {
applyPageBackgroundColor(this.pageBackgroundColor);
}
},
/** 日间 / 夜间一键切换 */

View File

@ -6,7 +6,7 @@
:root {
--app-page-bg: #f0f3f4;
--app-card-bg: #ffffff;
--app-card-border: #e5e6eb;
--app-card-border: transparent;
--app-elevated-bg: #ffffff;
}
@ -15,7 +15,7 @@ body[arco-theme='dark'] {
--app-page-bg: var(--color-bg-1);
--app-card-bg: var(--color-bg-2);
--app-card-border: var(--color-border-2);
--app-card-border: transparent;
--app-elevated-bg: var(--color-bg-3);
/* 覆盖 :root 内联主色浅底,夜间改为与深色底混合 */
--app-primary-color-light: color-mix(in srgb, var(--app-primary-color) 24%, var(--color-bg-2));

View File

@ -17,7 +17,7 @@
flex-direction: column;
background: var(--app-card-bg);
border-radius: 8px;
border: 1px solid var(--app-card-border);
border: none;
padding: 0;
box-sizing: border-box;
overflow: hidden;

View File

@ -63,18 +63,38 @@ export function setStoredPageBackground(hex: string): void {
}
}
/** 写入 OMS + 官网首页共用的背景 CSS 变量 */
/** 写入 OMS + 官网首页共用的背景 CSS 变量(含顶栏 / 整页壳) */
export function applyPageBackgroundColor(hex: string): void {
const color = hex.startsWith('#') ? hex : `#${hex}`;
const root = document.documentElement;
const isDark = document.body.getAttribute('arco-theme') === 'dark';
const warmPageBgs = new Set(['#f6f1e7', '#f5f4f1', '#faf9f7']);
const soft = softenHex(color, warmPageBgs.has(color.toLowerCase()) ? 0.42 : 0.55);
// 夜间模式由 themeColor.applyThemeMode 接管底色,避免日间预设冲掉深色壳
if (isDark) {
root.style.setProperty('--kc-page-bg', color);
root.style.setProperty('--kc-neutral', soft);
return;
}
root.style.setProperty('--app-page-bg', color);
root.style.setProperty('--app-navbar-bg', color);
// Arco 布局 / 大量业务页用 --color-bg-1,不同步则只有顶栏变、内容区仍是默认灰
root.style.setProperty('--color-bg-1', color);
root.style.setProperty(
'--app-page-bg-gradient',
`linear-gradient(180deg, color-mix(in srgb, var(--app-primary-color, #054f74) 5%, ${color}) 0%, ${color} 220px, ${color} 100%)`,
);
root.style.setProperty('--kc-page-bg', color);
root.style.setProperty('--kc-neutral', soft);
root.style.setProperty('--ai-bg', color);
root.style.setProperty('--ai-canvas', color);
root.style.setProperty('--ai-bg-soft', soft);
root.style.setProperty('--ai-header-bg', `color-mix(in srgb, ${color} 94%, transparent)`);
// 直接刷 html/body,避免仅靠变量时被实色壳盖住
root.style.backgroundColor = color;
document.body.style.backgroundColor = color;
document.body.style.backgroundImage = `linear-gradient(180deg, color-mix(in srgb, var(--app-primary-color, #054f74) 5%, ${color}) 0%, ${color} 220px, ${color} 100%)`;
}

View File

@ -160,6 +160,11 @@ export function applyThemeMode(mode: ThemeMode): void {
if (mode === 'dark') {
document.body.setAttribute('arco-theme', 'dark');
root.setAttribute('data-theme', 'dark');
// 清掉日间页背景对 Arco --color-bg-1 / body 的内联覆盖,交给暗色 token
root.style.removeProperty('--color-bg-1');
root.style.removeProperty('background-color');
document.body.style.removeProperty('background-color');
document.body.style.removeProperty('background-image');
// 同步写到 :root,避免仅依赖 body 变量时列表壳仍读到 global.less 的浅色默认值
root.style.setProperty('--app-page-bg', 'var(--color-bg-1)');
root.style.setProperty('--app-page-bg-gradient', 'none');
@ -172,10 +177,14 @@ export function applyThemeMode(mode: ThemeMode): void {
root.setAttribute('data-theme', 'light');
root.style.removeProperty('--app-page-bg');
root.style.removeProperty('--app-page-bg-gradient');
root.style.removeProperty('--color-bg-1');
root.style.removeProperty('--app-card-bg');
root.style.removeProperty('--app-card-border');
root.style.removeProperty('--app-elevated-bg');
// 恢复日间透明浅顶栏
root.style.removeProperty('background-color');
document.body.style.removeProperty('background-color');
document.body.style.removeProperty('background-image');
// 恢复日间顶栏随页面底
const primary =
getComputedStyle(root).getPropertyValue('--app-primary-color').trim() ||
DEFAULT_THEME_COLOR;

View File

@ -30,6 +30,24 @@
height: 100%;
}
/* BasicLayoutLeftRight 默认 bg-white 无圆角,会盖住侧栏 8px 圆角,这里透出给 custom-left-menu */
:deep(.trb-transform-left) {
background: transparent !important;
border: none !important;
box-shadow: none !important;
border-radius: 8px !important;
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
}
:deep(.trb-transform-left > *:first-child) {
flex: 1;
min-height: 0;
height: 100%;
}
:deep(.flex-1) {
min-width: 0;
width: 100%;

View File

@ -1099,7 +1099,7 @@ onMounted(async () => {
height: 100%;
min-height: 0;
padding: 16px 16px 24px;
background: #f0f3f4;
background: var(--app-page-bg, #f0f3f4);
box-sizing: border-box;
gap: 12px;
overflow: hidden;

View File

@ -6863,7 +6863,7 @@
height: 100%;
padding: 16px;
gap: 16px;
background-color: var(--color-fill-2);
background-color: var(--app-page-bg, #f0f3f4);
overflow: hidden;
}
@ -6922,8 +6922,8 @@
.right-content.content-panel {
flex: 1;
background-color: var(--color-bg-1);
border-radius: 24px;
background-color: var(--app-card-bg, #fff);
border-radius: 8px;
display: flex;
flex-direction: column;
overflow: hidden;
@ -6934,8 +6934,8 @@
}
.tabs-section {
border-bottom: 1px solid #e8e8e8;
padding: 10px 24px;
border-bottom: none;
padding: 10px 24px 4px;
display: flex;
justify-content: space-between;
align-items: center;
@ -6948,37 +6948,64 @@
padding: 0;
}
/* 贴合白面板,不做灰条+底边,避免拦腰切断感 */
.product-context-bar {
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
align-items: center;
gap: 8px 12px;
padding: 10px 24px;
background: var(--color-fill-1);
border-bottom: 1px solid #e8e8e8;
font-size: 13px;
color: #595959;
gap: 6px 10px;
min-height: 28px;
margin-top: 6px;
margin-left: 16px;
margin-right: 16px;
padding: 6px 12px;
background: color-mix(in srgb, #ff7a18 8%, #fff);
border-radius: 6px;
border-bottom: none;
font-size: 12px;
color: var(--color-text-3);
overflow: hidden;
.context-item {
display: inline-flex;
align-items: baseline;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.context-label {
color: var(--color-text-3);
font-weight: 400;
}
.context-value {
color: var(--color-text-1);
color: var(--color-text-2);
font-weight: 500;
}
.context-code {
margin-left: 4px;
color: var(--color-text-3);
font-weight: 400;
}
.context-divider {
color: #d9d9d9;
flex-shrink: 0;
width: 3px;
height: 3px;
margin: 0 2px;
border-radius: 50%;
background: var(--color-border-3, #c9cdd4);
color: transparent;
font-size: 0;
overflow: hidden;
}
.context-dirty-tag {
margin-left: auto;
flex-shrink: 0;
}
}

View File

@ -5365,7 +5365,7 @@ const handleConfirmPublish = async () => {
height: 100%;
padding: 16px;
gap: 16px;
background-color: var(--color-fill-2);
background-color: var(--app-page-bg, #f0f3f4);
overflow: hidden;
}
@ -5425,8 +5425,8 @@ const handleConfirmPublish = async () => {
.channel-content.content-panel {
flex: 1;
background-color: var(--color-bg-1);
border-radius: 24px;
background-color: var(--app-card-bg, #fff);
border-radius: 8px;
display: flex;
flex-direction: column;
overflow: hidden;
@ -5437,8 +5437,8 @@ const handleConfirmPublish = async () => {
}
.tabs-section {
border-bottom: 1px solid #e8e8e8;
padding: 10px 24px;
border-bottom: none;
padding: 10px 24px 4px;
display: flex;
justify-content: space-between;
align-items: center;
@ -5451,37 +5451,64 @@ const handleConfirmPublish = async () => {
padding: 0;
}
/* 贴合白面板,不做灰条+底边,避免拦腰切断感 */
.channel-context-bar {
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
align-items: center;
gap: 8px 12px;
padding: 10px 24px;
background: var(--color-fill-1);
border-bottom: 1px solid #e8e8e8;
font-size: 13px;
color: #595959;
gap: 6px 10px;
min-height: 28px;
margin-top: 6px;
margin-left: 16px;
margin-right: 16px;
padding: 6px 12px;
background: color-mix(in srgb, #ff7a18 8%, #fff);
border-radius: 6px;
border-bottom: none;
font-size: 12px;
color: var(--color-text-3);
overflow: hidden;
.context-item {
display: inline-flex;
align-items: baseline;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.context-label {
color: var(--color-text-3);
font-weight: 400;
}
.context-value {
color: var(--color-text-1);
color: var(--color-text-2);
font-weight: 500;
}
.context-code {
margin-left: 4px;
color: var(--color-text-3);
font-weight: 400;
}
.context-divider {
color: #d9d9d9;
flex-shrink: 0;
width: 3px;
height: 3px;
margin: 0 2px;
border-radius: 50%;
background: var(--color-border-3, #c9cdd4);
color: transparent;
font-size: 0;
overflow: hidden;
}
.context-dirty-tag {
margin-left: auto;
flex-shrink: 0;
}
}