Skip to content

Commit

Permalink
fixing styles
Browse files Browse the repository at this point in the history
  • Loading branch information
itsma3il committed Sep 22, 2024
1 parent a6f8b79 commit 51cdffb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function addUniversity() {
name: universityName,
type: universityType,
status: universityStatus,
createdAt: new Date().toISOString(),
createdAt: universities[editingIndex].createdAt,
updatedAt: new Date().toISOString()
};
editingIndex = null;
Expand Down Expand Up @@ -175,6 +175,8 @@ function updateUniversityList() {

universities.forEach((university, index) => {
const tr = document.createElement("tr");
console.log(university.status);
university.status == 'Rejected' && tr.classList.add('rejected');
tr.innerHTML = `
<td>${index + 1}</td>
<td>${university.name}</td>
Expand Down
7 changes: 5 additions & 2 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ code {
font-size: small;
z-index: 10001;
padding: 5px 8px 5px 2px;
background-color: #e5e5e5;
color: var(--text-color);
background-color: var(--text-color);
color: var(--background-color);
border-radius: 0.3rem;
}
.dropdown td {
Expand All @@ -536,3 +536,6 @@ code {
color: var(--text-color);
font-size: small;
}
.rejected {
opacity: 0.7 !important;
}

0 comments on commit 51cdffb

Please sign in to comment.