Skip to content

Commit

Permalink
fix: horizontal scoll for wagon layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
marudor committed Jan 18, 2025
1 parent 598ba05 commit dbc2234
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/client/Common/Components/VehicleMap/VehicleMapDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ const LinkSpan = styled('span')(({ theme }) => ({
color: theme.vars.palette.common.blue,
}));

const NonSrollableDialogContent = styled(DialogContent)`
overflow-x: hidden;
`;

export const VehicleMapDialog: FCC<Props> = ({
vehicleLayout,
fahrzeug,
Expand All @@ -40,12 +44,12 @@ export const VehicleMapDialog: FCC<Props> = ({
Layout von Wagen {fahrzeug.identificationNumber} (Fahrzeug{' '}
{fahrzeug.uic})
</DialogTitle>
<DialogContent>
<NonSrollableDialogContent>
<VehicleMap
layout={vehicleLayout}
orientation={fahrzeug.orientation!}
/>
</DialogContent>
</NonSrollableDialogContent>
</Dialog>
</>
);
Expand Down

0 comments on commit dbc2234

Please sign in to comment.