Skip to content

Commit

Permalink
Merge pull request #109 from CS3219-AY2425S1/kervyn/ivans-fix
Browse files Browse the repository at this point in the history
Fix add/edit modal
  • Loading branch information
lynnetteeee authored Nov 13, 2024
2 parents 3f18483 + 9e27b2b commit 9fd0418
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
9 changes: 5 additions & 4 deletions peer-prep-fe/src/add-page/add-page.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
margin-left: auto;
margin-right: auto;
border: 1px solid #ccc;
overflow: visible;
}


Expand Down Expand Up @@ -108,13 +109,14 @@

.dropdown-menu {
display: none;
position: absolute;
width: 80%;
position: fixed;
width: 30%;
height: 100%;
border: 1px solid #ccc;
max-height: 100px;
overflow-y: auto;
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
z-index: 1;
z-index: 1000;
border-radius: 3px;
background-color: #333333;
}
Expand Down Expand Up @@ -241,4 +243,3 @@ input[type="checkbox"] {
overflow: hidden;
} */


1 change: 1 addition & 0 deletions peer-prep-fe/src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class LoginComponent {
})
.then((response) => {
if (!response.ok) {
this.isLoading = false;
if (response.status === 401) {
alert("Incorrect email or password.")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class QuestionBoxComponent {
},
panelClass: "custom-modalbox",
width: "800px",
height: "600px",
height: "400px",
position: {
top: "200px"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class SearchAndFilterComponent {
const dialogRef = this.dialog.open(AddPageComponent, {
panelClass: "custom-modalbox",
width: "800px",
height: "600px",
height: "400px",
position: {
top: "200px"
},
Expand Down
8 changes: 5 additions & 3 deletions peer-prep-fe/src/edit-page/edit-page.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
margin-left: auto;
margin-right: auto;
border: 1px solid #ccc;
overflow: visible;
}

.question-title {
Expand Down Expand Up @@ -100,13 +101,14 @@

.dropdown-menu {
display: none;
position: absolute;
width: 80%;
position: fixed;
width: 30%;
height: 100%;
border: 1px solid #ccc;
max-height: 100px;
overflow-y: auto;
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
z-index: 1;
z-index: 1000;
border-radius: 3px;
background-color: #333333;

Expand Down

0 comments on commit 9fd0418

Please sign in to comment.