From 837400b0d5df3410a24413509320e86685f6ce75 Mon Sep 17 00:00:00 2001 From: toni-santos Date: Sun, 17 Sep 2023 00:38:52 +0100 Subject: [PATCH 1/3] fix table styling in classes page --- css/classPage.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/css/classPage.css b/css/classPage.css index 35da8f1..a8e9c61 100644 --- a/css/classPage.css +++ b/css/classPage.css @@ -83,4 +83,13 @@ dialog[id^="photosDialog"]::backdrop { .tabela tr.k, .tabela td.k { background-image: none; +} + +.tabela > tbody > tr, .tabela > tr { + display: grid; + grid-template-columns: repeat(5, 1fr); +} + +.tabela tr:hover { + border: none !important; } \ No newline at end of file From 24a23585b51722de6e8a1157f4c0d276c06164d0 Mon Sep 17 00:00:00 2001 From: toni-santos Date: Tue, 21 Nov 2023 15:21:16 +0000 Subject: [PATCH 2/3] remove grid --- content-scripts/src/modules/initialize.js | 2 +- css/classPage.css | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/content-scripts/src/modules/initialize.js b/content-scripts/src/modules/initialize.js index c329175..7373e59 100644 --- a/content-scripts/src/modules/initialize.js +++ b/content-scripts/src/modules/initialize.js @@ -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; diff --git a/css/classPage.css b/css/classPage.css index a8e9c61..2ef1996 100644 --- a/css/classPage.css +++ b/css/classPage.css @@ -9,11 +9,6 @@ grid-template-rows: 1fr; } -.tableWrapper > table { - display: grid; - overflow: hidden; -} - .classWrapper { display: flex; flex-direction: column; @@ -85,9 +80,8 @@ dialog[id^="photosDialog"]::backdrop { background-image: none; } -.tabela > tbody > tr, .tabela > tr { - display: grid; - grid-template-columns: repeat(5, 1fr); +.tabela { + table-layout: auto; } .tabela tr:hover { From 93f9ef444643c6f1cba112d868245c7bc45b55c4 Mon Sep 17 00:00:00 2001 From: toni-santos Date: Mon, 18 Dec 2023 15:38:00 +0000 Subject: [PATCH 3/3] remove animation --- content-scripts/src/pages/class_page.js | 4 ++-- css/classPage.css | 14 ++++---------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/content-scripts/src/pages/class_page.js b/content-scripts/src/pages/class_page.js index ba15d7a..7534b3b 100644 --- a/content-scripts/src/pages/class_page.js +++ b/content-scripts/src/pages/class_page.js @@ -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%"; } } diff --git a/css/classPage.css b/css/classPage.css index 2ef1996..f0bb9f5 100644 --- a/css/classPage.css +++ b/css/classPage.css @@ -3,10 +3,8 @@ } .tableWrapper { - overflow: hidden; - display: grid; - transition: grid-template-rows 0.5s ease-in-out; - grid-template-rows: 1fr; + overflow-y: hidden; + overflow-x: scroll; } .classWrapper { @@ -69,21 +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 { - table-layout: auto; -} - .tabela tr:hover { border: none !important; } \ No newline at end of file