Fix modal not visible on map planner mobile

position: fixed breaks Radix popover location calculation. Only relevant
for desktop anyway (there we have it on the right side of the
screen).
This commit is contained in:
Kalle
2026-03-29 17:27:36 +03:00
parent d8ba888343
commit e3e6a41bd9

View File

@@ -334,7 +334,7 @@ export default function Planner() {
// Formats the style panel so it can have classnames, this is needed so it can be moved below the header bar which blocks clicks (idk why this is different to the old version)
function CustomStylePanel(props: TLUiStylePanelProps) {
return (
<div className={styles.stylePanel}>
<div className={props.isMobile ? undefined : styles.stylePanel}>
<DefaultStylePanel {...props} />
</div>
);