updated the ui for the mobile view

This commit is contained in:
2026-06-09 13:12:18 +05:30
parent 8513c7c2ec
commit f18b680247
29 changed files with 3664 additions and 225 deletions

View File

@@ -1,4 +1,5 @@
import React, { useMemo } from 'react';
import { useTheme, useMediaQuery } from '@mui/material';
import {
MdPublic,
MdSwapHoriz,
@@ -60,6 +61,13 @@ function CompareDataPanel({
setExpandedSeqGroups,
onClose
}) {
// Mobile flag — gates only layout (a className on the root <aside> that a
// scoped media-query block in Dispatch.css uses to stack the side-by-side
// timing/clock columns vertically and let stat chips wrap). No data,
// handler, or derivation behaviour changes on any breakpoint.
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down('md'));
// All derivations live in a single useMemo so the cost of re-running
// them is paid only when an upstream input actually changes — not on
// every parent render (e.g. cursor moving over the map, sync toggle
@@ -294,7 +302,10 @@ function CompareDataPanel({
} = view;
return (
<aside id="compare-data-panel" className="compare-data-panel">
<aside
id="compare-data-panel"
className={`compare-data-panel${isMobile ? ' cdp-is-mobile' : ''}`}
>
<div className="cdp-head">
<div className="cdp-head-title">
<span