Skip to content

Commit 6d517df

Browse files
author
Joe Niemi
authored
Merge pull request #1983 from HSLdevcom/develop
Update master
2 parents 863ac84 + 80b77cc commit 6d517df

File tree

7 files changed

+25
-6
lines changed

7 files changed

+25
-6
lines changed

src/components/overlays/ModalContainer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ const ModalContainer = observer((props: IModalProps) => {
1616

1717
return (
1818
<div className={s.modalContainer} onClick={onExteriorDivClick} data-cy='modalContainer'>
19-
<div className={s.wrapper}>{props.children}</div>
19+
<div className={s.wrapper}>
20+
<div className={s.modalInnerWrapper}>{props.children}</div>
21+
</div>
2022
</div>
2123
);
2224
});

src/components/overlays/confirm.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
.confirmView {
44
display: flex;
55
flex-direction: column;
6-
max-width: 600px;
6+
position: relative;
7+
height: 100%;
8+
max-height: 100%;
9+
width: 100%;
710

811
.content {
912
display: flex;
1013
justify-content: center;
1114
flex-direction: column;
1215
align-items: center;
16+
height: 100%;
1317
}
1418

1519
.padding {

src/components/overlays/modalContainer.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,26 @@
1010
z-index: 9999;
1111
width: 100%;
1212
height: 100%;
13+
max-height: 100%;
1314
background-color: rgba(0, 0, 0, 0.4);
1415

1516
.wrapper {
16-
position: fixed;
1717
position: fixed;
1818
top: 50%;
1919
left: 50%;
2020
transform: translate(-50%, -50%);
2121
background-color: $backgroundlightGrey;
2222
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 3px 14px rgba(0, 0, 0, 0.4);
2323
border-radius: 7px;
24+
max-width: 50%;
25+
max-height: 90%;
26+
overflow-y: auto;
27+
28+
.modalInnerWrapper {
29+
display: flex;
30+
position: relative;
31+
height: 100%;
32+
max-height: 100%;
33+
}
2434
}
2535
}

src/components/overlays/savePrompt.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ $savePromptContentPadding: 5px 15px 5px 15px;
3939
}
4040

4141
.savePromptContent {
42-
max-height: 450px;
43-
overflow-y: auto;
4442
padding: $savePromptContentPadding;
4543
font-size: $smallFontSize;
4644

src/components/shared/RouteActiveSchedules.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class RouteActiveSchedules extends React.Component<IRouteActiveSchedulesProps> {
128128
return isCurrentDateWithinTimeSpan(schedule.startDate, schedule.endDate);
129129
});
130130
let currentSchedule: ISchedule | null = null;
131+
131132
const futureSchedules: ISchedule[] = _.cloneDeep(activeSchedules);
132133
if (currentScheduleIndex >= 0) {
133134
currentSchedule = activeSchedules[currentScheduleIndex];

src/components/sidebar/routeListView/RoutePathConfirm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface IRoutePathConfirmProps {
1616
const RoutePathConfirm = inject()(
1717
observer((props: IRoutePathConfirmProps) => {
1818
return (
19-
<div>
19+
<div className={s.routePathConfirm}>
2020
<SavePrompt savePromptSections={props.savePromptSections} />
2121
<div className={s.routeActiveSchedulesWrapper}>
2222
<RouteActiveSchedules

src/components/sidebar/routeListView/routePathConfirm.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@
66
padding: 10px;
77
width: routeListViewStyle.$sidebarWidth;
88
}
9+
10+
.routePathConfirm {
11+
height: 100%;
12+
}

0 commit comments

Comments
 (0)