fix: 工作台窄屏工具区改为横向滚动避免竖排占高

This commit is contained in:
2026-09-28 17:43:28 +08:00
parent af0fec790c
commit 21efea8334
@@ -127,9 +127,9 @@ const customDateRange = ref<[dayjs.Dayjs, dayjs.Dayjs] | undefined>([
dateRange.value[1],
]);
/** 触发器:灰底外框 + 白底内面板(与改前一致) */
/** 触发器:灰底外框 + 白底内面板(窄屏也保持横向,避免 w-full 整行换行) */
const toolbarShellClass =
'flex w-full flex-col gap-2 rounded-2xl border border-slate-200 bg-slate-200/50 p-1.5 sm:w-auto sm:flex-row sm:items-center sm:gap-2 dark:border-[hsl(240deg_3.7%_22%)] dark:bg-[hsl(240deg_3.7%_15.9%/30%)]';
'flex w-auto shrink-0 flex-row items-center gap-2 rounded-2xl border border-slate-200 bg-slate-200/50 p-1.5 dark:border-[hsl(240deg_3.7%_22%)] dark:bg-[hsl(240deg_3.7%_15.9%/30%)]';
const toolbarPanelClass =
'rounded-xl bg-white dark:bg-[hsl(222.34deg_10.43%_14%)]';
@@ -862,7 +862,7 @@ onUnmounted(() => {
<template #extra>
<div
class="workbench-header-extra flex w-full max-w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center sm:gap-2"
class="workbench-header-extra flex w-full max-w-full flex-nowrap items-center gap-2 overflow-x-auto overscroll-x-contain [-ms-overflow-style:none] [scrollbar-width:none] sm:w-auto sm:overflow-visible [&::-webkit-scrollbar]:hidden"
>
<BiDataHealthToolbarButton
ref="biHealthRef"