diff --git a/src/assets/styles/main.css b/src/assets/styles/main.css index 6a80bbb..1b7d8a3 100644 --- a/src/assets/styles/main.css +++ b/src/assets/styles/main.css @@ -138,7 +138,9 @@ h2 { background: white; padding-top: 10px; } - +.map-list::-webkit-scrollbar { + display: none; +} /* .map-cell { border-top: solid #e0e0e0; background-color: white; @@ -220,7 +222,9 @@ h2 { padding-left: 12px; padding-right: 12px; } - +.padder::-webkit-scrollbar { + display: none; +} .point { cursor: pointer; background: white; @@ -670,12 +674,16 @@ h2 { flex-direction: row; } +.modal-image-col { + height: 50%; +} + .modal-hours-container { display: flex; flex-direction: column; font-size: 13px; padding-left: 15px; - width: 30vw; + width: 15vw; } .modal-hours-container h5 { diff --git a/src/components/collapsible/index.tsx b/src/components/collapsible/index.tsx index 2d768c8..9dfaa43 100644 --- a/src/components/collapsible/index.tsx +++ b/src/components/collapsible/index.tsx @@ -8,13 +8,17 @@ import { FaAngleDown, FaAngleUp } from "react-icons/fa"; interface Managed { style?: React.CSSProperties; titleStyle?: React.CSSProperties; + containerStyle?: React.CSSProperties; label: string; children: any; + defaultState?: boolean; } interface Unmanaged { style?: React.CSSProperties; + containerStyle?: React.CSSProperties; title: React.ReactElement; children: any; + defaultState?: boolean; } type PropTypes = Managed | Unmanaged; function isManaged(props: PropTypes): props is Managed { @@ -22,7 +26,7 @@ function isManaged(props: PropTypes): props is Managed { } const Collapsible = (props: PropTypes) => { - const [isOpen, setOpen] = useState(false) + const [isOpen, setOpen] = useState(props?.defaultState ?? true); const contentRef = useRef(null) const toogle = () => { setOpen(!isOpen) } return ( @@ -43,7 +47,7 @@ const Collapsible = (props: PropTypes) => {
{JSON.stringify(chartState, null, 2)}-