Skip to content

Commit 11f83ab

Browse files
committed
Merge branch 'dev' into main
2 parents 794a5b5 + d2250c0 commit 11f83ab

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

client/src/components/Journal/MarkdownEntry.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ function MarkdownEntry(props) {
3535
<div id="entry-text" onClick={props.clickHandler}>
3636
<h2 id="entry-title">{entry.title}</h2>
3737
<p>{format(new Date(entry.date), "dd-MM-yyyy")}</p>
38-
<ReactMarkdown
39-
components={components}
40-
remarkPlugins={[gfm]}
41-
>{entry.entry}</ReactMarkdown>
38+
<ReactMarkdown components={components} remarkPlugins={[gfm]}>
39+
{entry.entry}
40+
</ReactMarkdown>
4241
</div>
4342
</div>
4443
);

client/src/components/Scheduler/AddEventForm.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,13 @@ function AddEventForm(props) {
8888
}
8989

9090
const customStylesForDiscard = {
91-
overlay: { zIndex: 9999 },
91+
overlay: { zIndex: 9999, width: "100vw", height: "100vh" },
9292
content: {
93-
top: "43%",
93+
top: "44.5%",
9494
bottom: "42.5%",
95-
left: "41%",
96-
right: "41%",
95+
left: "42%",
96+
right: "42%",
97+
overflow: "auto",
9798
},
9899
};
99100

client/src/components/Scheduler/Scheduler.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -444,17 +444,16 @@
444444
height: 10%;
445445
background: transparent;
446446
border: none;
447-
position: fixed;
448447
}
449448

450449
#edit-event-close-button:after {
451450
font-family: FontAwesome;
452451
content: "\f410";
453452
font-size: 30px;
454453
cursor: pointer;
455-
position: fixed;
456-
top: 27%;
457-
right: 42%;
454+
position: relative;
455+
left: 10%;
456+
bottom: 10%;
458457
}
459458

460459
#edit-event-close-button:hover {
@@ -633,15 +632,16 @@
633632

634633
#discard-prompt p {
635634
font-weight: bold;
636-
margin-top: 1%;
635+
font-size: 0.9em;
636+
margin-top: -1%;
637637
}
638638

639639
#discard-prompt button {
640640
font-family: "Exo 2", sans-serif;
641641
padding: 5px;
642642
float: right;
643643
margin: 0 3px;
644-
margin-top: 6%;
644+
margin-top: 2.5%;
645645
cursor: pointer;
646646
border: none;
647647
border-radius: 10px;

client/src/components/Scheduler/Scheduler.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,25 @@ function Scheduler() {
5757

5858
// styling for Edit Form
5959
const customStylesForEdit = {
60-
overlay: { zIndex: 9999 },
60+
overlay: { zIndex: 9999, width: "100vw", height: "100vh" },
6161
content: {
6262
top: "25%",
6363
bottom: "15%",
6464
right: "40%",
6565
left: "15%",
66+
overflow: "auto",
6667
},
6768
};
6869

6970
// styling for Add Event Form
7071
const customStylesForAdd = {
71-
overlay: { zIndex: 9999 },
72+
overlay: { zIndex: 9999, width: "100vw", height: "100vh" },
7273
content: {
7374
top: "15%",
7475
bottom: "20%",
7576
left: "20%",
7677
right: "20%",
78+
overflow: "auto",
7779
},
7880
};
7981

@@ -113,12 +115,13 @@ function Scheduler() {
113115
}
114116

115117
const customStylesForDiscard = {
116-
overlay: { zIndex: 9999 },
118+
overlay: { zIndex: 9999, width: "100vw", height: "100vh" },
117119
content: {
118-
top: "43%",
120+
top: "44.5%",
119121
bottom: "42.5%",
120-
left: "41%",
121-
right: "41%",
122+
left: "42%",
123+
right: "42%",
124+
overflow: "auto",
122125
},
123126
};
124127

0 commit comments

Comments
 (0)