style(webui): emphasize active compare pane topbar

The active version's topbar now uses an inverted bar (bg-foreground /
text-background) so it reads as black background with white text in the
light theme, while the inactive pane keeps the card background with muted
text. Filename/version text color now differs between active and inactive
panes.
This commit is contained in:
yiling
2026-07-04 11:19:50 +08:00
parent 78c8a56183
commit a4e25db0f7
2 changed files with 27 additions and 12 deletions
@@ -7,8 +7,8 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { CompareControlBar } from './compare-control-bar'
import { CompareImagePane } from './compare-image-pane'
import { ComparePaneTopbar } from './compare-pane-topbar'
import { isSameType, kindOf } from './compare-utils'
import { CompareVideoPane } from './compare-video-pane'
import { kindOf, isSameType } from './compare-utils'
import type { ComparePaneHandle, CompareSide, PaneKind, PaneReportedState } from './types'
interface VersionItem {
@@ -274,7 +274,7 @@ export function CompareViewer({
<div ref={rootRef} className="flex h-full flex-1 flex-col bg-background">
<div className="flex min-h-0 flex-1">
{/* Left pane */}
<div className="flex min-w-0 flex-1 flex-col border-r border-border">
<div className="flex min-w-0 flex-1 flex-col border-r border-zinc-800">
{leftAsset && (
<ComparePaneTopbar
side="left"