Skip to content

Commit

Permalink
Merge pull request #133 from NIAEFEUP/fix/table-styling
Browse files Browse the repository at this point in the history
Fix table styling in classes page
  • Loading branch information
toni-santos authored Apr 11, 2024
2 parents 0055ca1 + 93f9ef4 commit ac0d538
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion content-scripts/src/modules/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export const addSortTableActions = () => {
return firstClass.startsWith("i") || firstClass.startsWith("p") || firstClass.startsWith("d");
})

console.log("rows", rowsToSort)
// console.log("rows", rowsToSort)

index += aditionalColspan-1;

Expand Down
4 changes: 2 additions & 2 deletions content-scripts/src/pages/class_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ const removeExtras = () => {
const titleClick = (table, title) => {
if (title.dataset.expand == "true") {
title.dataset.expand = "false";
table.style.gridTemplateRows = "0fr";
table.style.height = "0px";
} else {
title.dataset.expand = "true";
table.style.gridTemplateRows = "1fr";
table.style.height = "100%";
}
}

Expand Down
19 changes: 8 additions & 11 deletions css/classPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,8 @@
}

.tableWrapper {
overflow: hidden;
display: grid;
transition: grid-template-rows 0.5s ease-in-out;
grid-template-rows: 1fr;
}

.tableWrapper > table {
display: grid;
overflow: hidden;
overflow-y: hidden;
overflow-x: scroll;
}

.classWrapper {
Expand Down Expand Up @@ -74,13 +67,17 @@ dialog[id^="photosDialog"]::backdrop {
}

.titleWrapper[data-expand="true"] .rightChevron {
transform: rotate(0deg);
transform: rotate(-180deg);
}

.titleWrapper[data-expand="false"] .rightChevron {
transform: rotate(-180deg);
transform: rotate(0deg);
}

.tabela tr.k, .tabela td.k {
background-image: none;
}

.tabela tr:hover {
border: none !important;
}

0 comments on commit ac0d538

Please sign in to comment.