refactor(planner): each card over the map sets its own left side again, where the reading direction check counts it

This commit is contained in:
Maurice
2026-10-12 21:14:28 +00:00
parent 8f6dab30a2
commit 8832632b4e
5 changed files with 28 additions and 18 deletions
+4 -2
View File
@@ -2,7 +2,7 @@ import type { ReactNode } from 'react'
import { X } from 'lucide-react'
import { NEUTRAL_TINT } from './DialogShell'
import { Tooltip } from './Tooltip'
import { centredMapCardBox } from '../Map/centredMapCard'
import { centredMapCard } from '../Map/centredMapCard'
interface DetailShellProps {
header: ReactNode
@@ -38,13 +38,15 @@ export default function DetailShell({
closeButtonClassName = '',
testId,
}: DetailShellProps) {
const mapCard = centredMapCard(leftWidth, rightWidth, { clearPill: clearMapPill })
return (
<div
style={{
position: 'absolute',
bottom: 20,
...centredMapCardBox(leftWidth, rightWidth, { clearPill: clearMapPill }),
left: mapCard.centre,
transform: 'translateX(-50%)',
width: mapCard.width,
zIndex: 50,
fontFamily: 'var(--font-system)',
}}