Commit b46a8211 by luoqi

fix(web): 助手钮/小窗 z-40→z-[60] — 高于左栏容器(z-50),拖到左侧不再被挡

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
parent 4a58cd0c
...@@ -36,7 +36,7 @@ export function AssistantWidget() { ...@@ -36,7 +36,7 @@ export function AssistantWidget() {
{/* 吸附窗:常驻挂载,关着时 invisible(状态不丢) */} {/* 吸附窗:常驻挂载,关着时 invisible(状态不丢) */}
<div <div
className={cn( className={cn(
'fixed bottom-4 right-4 z-40 flex flex-col overflow-hidden rounded-xl border border-slate-200 shadow-2xl', 'fixed bottom-4 right-4 z-[60] flex flex-col overflow-hidden rounded-xl border border-slate-200 shadow-2xl',
'h-[620px] max-h-[78vh] w-[400px] max-w-[calc(100vw-2rem)]', 'h-[620px] max-h-[78vh] w-[400px] max-w-[calc(100vw-2rem)]',
'transition-[opacity,transform] duration-150', 'transition-[opacity,transform] duration-150',
open ? 'translate-y-0 opacity-100' : 'pointer-events-none invisible translate-y-2 opacity-0', open ? 'translate-y-0 opacity-100' : 'pointer-events-none invisible translate-y-2 opacity-0',
...@@ -106,7 +106,7 @@ function DraggableFab({ onOpen }: { onOpen: () => void }) { ...@@ -106,7 +106,7 @@ function DraggableFab({ onOpen }: { onOpen: () => void }) {
onPointerUp={onPointerUp} onPointerUp={onPointerUp}
style={pos ? { left: pos.x, top: pos.y } : undefined} style={pos ? { left: pos.x, top: pos.y } : undefined}
className={cn( className={cn(
'fixed z-40 inline-flex h-12 w-12 touch-none items-center justify-center rounded-full bg-teal-600 text-white shadow-lg hover:bg-teal-700', 'fixed z-[60] inline-flex h-12 w-12 touch-none items-center justify-center rounded-full bg-teal-600 text-white shadow-lg hover:bg-teal-700',
!pos && 'bottom-4 right-4', !pos && 'bottom-4 right-4',
)} )}
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment