Skip to content

Commit

Permalink
fix(time-slider): update left and right panel width #1494
Browse files Browse the repository at this point in the history
  • Loading branch information
kaminderpal committed Nov 16, 2023
1 parent a50f521 commit 2fcaaff
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const getSxClasses = (theme: Theme) => ({
[theme.breakpoints.up('md')]: {
paddingRight: '1rem',
},
[theme.breakpoints.up('lg')]: {
[theme.breakpoints.up('xl')]: {
paddingRight: '2rem',
},
'& .MuiListItemText-primary': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,15 @@ export function Datapanel({ layerData, mapId, projectionConfig, language }: Data
<ResponsiveGrid.Left
isLayersPanelVisible={isLayersPanelVisible}
xs={isLayersPanelVisible ? 12 : 0}
md={!isEnlargeDataTable ? 4 : 1.25}
md={!isEnlargeDataTable ? 4 : 2}
lg={!isEnlargeDataTable ? 4 : 1.25}
>
{renderList()}
</ResponsiveGrid.Left>
<ResponsiveGrid.Right
xs={!isLayersPanelVisible ? 12 : 0}
md={!isEnlargeDataTable ? 8 : 10.75}
md={!isEnlargeDataTable ? 8 : 10}
lg={!isEnlargeDataTable ? 8 : 10.75}
isLayersPanelVisible={isLayersPanelVisible}
sxProps={{ minHeight: '250px' }}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,15 @@ export function Detailspanel({ mapId }: DetailsPanelProps): JSX.Element {
<ResponsiveGrid.Left
isLayersPanelVisible={isLayersPanelVisible}
xs={isLayersPanelVisible ? 12 : 0}
md={!isEnlargeDataTable ? 4 : 1.25}
md={!isEnlargeDataTable ? 4 : 2}
lg={!isEnlargeDataTable ? 4 : 1.25}
>
{renderLayerList()}
</ResponsiveGrid.Left>
<ResponsiveGrid.Right
xs={!isLayersPanelVisible ? 12 : 0}
md={!isEnlargeDataTable ? 8 : 10.75}
md={!isEnlargeDataTable ? 8 : 10}
lg={!isEnlargeDataTable ? 8 : 10.75}
isLayersPanelVisible={isLayersPanelVisible}
>
<Box sx={sxClasses.rightPanleContainer}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,15 @@ export function TimeSliderPanel(props: TypeTimeSliderProps): JSX.Element {
<ResponsiveGrid.Left
isLayersPanelVisible={isLayersPanelVisible}
xs={isLayersPanelVisible ? 12 : 0}
md={!isEnlargeDataTable ? 4 : 1.25}
md={!isEnlargeDataTable ? 4 : 2}
lg={!isEnlargeDataTable ? 4 : 1.25}
>
{renderLayerList()}
</ResponsiveGrid.Left>
<ResponsiveGrid.Right
xs={!isLayersPanelVisible ? 12 : 0}
md={!isEnlargeDataTable ? 8 : 10.75}
md={!isEnlargeDataTable ? 8 : 10}
lg={!isEnlargeDataTable ? 8 : 10.75}
isLayersPanelVisible={isLayersPanelVisible}
>
<TimeSlider mapId={mapId} layerPath={selectedLayer} sliderFilterProps={timeSliderData[selectedLayer]} key={selectedLayer} />
Expand Down

0 comments on commit 2fcaaff

Please sign in to comment.