diff --git a/src/assets/Shadow Down.svg b/src/assets/Shadow Down.svg
new file mode 100644
index 0000000..d16eb2d
--- /dev/null
+++ b/src/assets/Shadow Down.svg
@@ -0,0 +1,10 @@
+
diff --git a/src/components/Map/Column.jsx b/src/components/Map/Column.jsx
index cff130c..4ab9101 100644
--- a/src/components/Map/Column.jsx
+++ b/src/components/Map/Column.jsx
@@ -1,14 +1,25 @@
-import React from "react";
+import React, {useEffect, useRef} from "react";
import styles from "./style.module.css";
function Column({title, children, length}) {
+ const listRef = useRef(null);
+
+ useEffect(() => {
+ const el = listRef.current;
+ if (el && title == "To-do") {
+ el.scrollTop = el.scrollHeight;
+ }
+ }, []);
+
return (
{length} {title}
-
{children}
+
+ {children}
+
);
}
diff --git a/src/components/Map/style.module.css b/src/components/Map/style.module.css
index 80defe2..a498f0d 100644
--- a/src/components/Map/style.module.css
+++ b/src/components/Map/style.module.css
@@ -15,8 +15,10 @@
.cards {
display: flex;
flex-direction: column;
- gap: 5vh;
+ gap: 3vh;
width: 100%;
+ overflow-y: scroll;
+ padding: 1vh 0;
}
.easy {
@@ -116,9 +118,9 @@
}
.player-profile {
- position: fixed;
- z-index: 10;
- top: 126px;
+ position: relative;
+ z-index: 10;
+ top: 4dvh;
}
.name-tickets {
@@ -147,6 +149,7 @@
.column {
display: flex;
width: 100%;
+ max-height: 33%;
}
.column .title {
diff --git a/src/global.css b/src/global.css
index 9241eb7..44aff93 100644
--- a/src/global.css
+++ b/src/global.css
@@ -47,7 +47,7 @@ body::-webkit-scrollbar {
}
body::-webkit-scrollbar-track {
- background: #f1f1f1;
+ background: transparent;
border-radius: 10px;
}
@@ -60,9 +60,15 @@ body::-webkit-scrollbar-thumb:hover {
background: #555;
}
+body::-webkit-scrollbar-button {
+ display: none;
+ height: 0;
+ width: 0;
+}
+
body {
scrollbar-width: thin;
- scrollbar-color: #888 #f1f1f1;
+ scrollbar-color: #888 transparent;
}
button {
diff --git a/src/pages/Map/index.jsx b/src/pages/Map/index.jsx
index 3826e78..202ba96 100644
--- a/src/pages/Map/index.jsx
+++ b/src/pages/Map/index.jsx
@@ -9,7 +9,6 @@ import PlayerProfile from "@components/Map/PlayerProfile";
import styles from "./style.module.css";
const columns = [
- {id: 4, title: "Backlog"},
{id: 3, title: "To-do"},
{id: 2, title: "In progress"},
{id: 1, title: "Done"}
@@ -46,14 +45,11 @@ function Map() {
return cards.filter((card) => {
if (columnTitle === "In progress") return card.id === level;
if (columnTitle === "Done") return card.id < level;
- if (columnTitle === "To-do") return card.id === level + 1;
- if (columnTitle === "Backlog") return card.id > level + 1;
+ if (columnTitle === "To-do") return card.id > level;
return false;
});
};
- const visibleColumns = columns.filter((column) => getColumnCards(column.title).length > 0);
-
useEffect(() => {
if (lastCardRef.current) {
lastCardRef.current.scrollIntoView({behavior: "smooth", block: "end"});
@@ -62,19 +58,26 @@ function Map() {
return (
+
- {visibleColumns.map((column) => {
- const columnCards = getColumnCards(column.title);
- return (
-
- {columnCards.map((card, index) => (
-
-
-
- ))}
-
- );
- })}
+
+ {columns.map((column) => {
+ const columnCards = getColumnCards(column.title);
+ return (
+
+ {columnCards.map((card, index) => {
+ const disabled = column.title == "To-do";
+ return (
+
+
+
+ );
+ })}
+
+ );
+ })}
+
+
);
}
diff --git a/src/pages/Map/style.module.css b/src/pages/Map/style.module.css
index 5895523..1376f5d 100644
--- a/src/pages/Map/style.module.css
+++ b/src/pages/Map/style.module.css
@@ -1,7 +1,40 @@
.content {
- padding: 160px 40px 100px 40px;
+ padding: 6dvh 10%;
+ display: flex;
+ flex-direction: column;
+ gap: 4vh;
+ justify-content: center;
+}
+
+.collumnList {
display: flex;
+ height: 100%;
flex-direction: column;
- gap: 12vh;
- overflow-x: scroll;
+ justify-content: space-around;
+}
+
+.shadowUp {
+ width: 100%;
+ height: 30dvh;
+ object-fit: cover;
+ z-index: 10;
+ rotate: 180deg;
+ position: absolute;
+ top: 0;
+ left: 0;
+ opacity: 0.5;
+ pointer-events: none;
+}
+
+.shadowDown {
+ width: 100%;
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ opacity: 0.5;
+ pointer-events: none;
+}
+
+.disabled {
+ filter: brightness(0.7);
}