Skip to content

Commit

Permalink
Full length sliding panel
Browse files Browse the repository at this point in the history
  • Loading branch information
wtcarter committed Sep 23, 2024
1 parent 5090a8c commit b30accd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/cccv/src/components/InfoPanel/SlidingPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ interface InfoPanelProps {
children?: React.ReactNode;
}


export default function SlidingPanel({ showPanel, contentChanged, onResize, children }: InfoPanelProps) {
const panelRef = useRef<HTMLDivElement>(null)
const isResizing = useRef(false)
Expand Down Expand Up @@ -88,8 +87,8 @@ export default function SlidingPanel({ showPanel, contentChanged, onResize, chil
className={`sliding-panel ${stateClass} absolute bg-white font-mono shadow-black ${signalUpdatedInfoPanel} ${revealOrHideInfoPanel} transition ease-in-out duration-500 z-10`}
style={{
width: isLargeScreen ? `${panelWidth}px` : '100%', // Full width for small screens
maxHeight: isLargeScreen ? '100%' : '60vh', // No taller than half the screen on small screens
height: isPanelVisible ? 'auto' : '0',
height: '100vh', // Full height of the viewport
maxHeight: '100vh', // Full height of the viewport
display: isPanelVisible ? 'block' : 'none',
}}
data-testid="sliding-panel"
Expand Down

0 comments on commit b30accd

Please sign in to comment.