diff --git a/src/components/KanbanCard.tsx b/src/components/KanbanCard.tsx
index 67f9896..eed4480 100644
--- a/src/components/KanbanCard.tsx
+++ b/src/components/KanbanCard.tsx
@@ -121,6 +121,14 @@ export const KanbanCard = (props: KanbanCardProps) => {
{
+ clearTimeout(timer);
+ timer = setTimeout(() => {
+ getCardDetails(card.id).then((val) => {
+ setCardDetailsStore(val);
+ });
+ }, 300);
+ }}
ON_mousedown={(ev: PointerEvent) => {
if (!isInput && !editLock) {
setDragStart([ev.x, ev.y]);
@@ -169,9 +177,10 @@ export const KanbanCard = (props: KanbanCardProps) => {
});
}}
>
-
+
)}
+
{card.coverImageUrl !== undefined ? (
) : undefined}
@@ -202,14 +211,6 @@ export const KanbanCard = (props: KanbanCardProps) => {
editCallback();
ev.stopPropagation();
}}
- ON_click={() => {
- clearTimeout(timer);
- timer = setTimeout(() => {
- getCardDetails(card.id).then((val) => {
- setCardDetailsStore(val);
- });
- }, 300);
- }}
>
{card.title}
diff --git a/src/components/kanbanCard.scss b/src/components/kanbanCard.scss
index 943bdb0..0c3be0a 100644
--- a/src/components/kanbanCard.scss
+++ b/src/components/kanbanCard.scss
@@ -7,6 +7,7 @@
flex-direction: column;
align-items: start;
justify-content: start;
+ cursor: pointer;
box-shadow: 0px 1px 1px #091e4240, 0px 0px 1px #091e424f,
0px 1px 1px #091e4240, 0px 0px 1px #091e424f; // Позаимствовали у Trello
}
@@ -41,6 +42,7 @@
}
.kanban-card__title {
user-select: none;
+ cursor: text;
}
.kanban-card__textarea {
diff --git a/src/containers/CardDetails.tsx b/src/containers/CardDetails.tsx
index cc5297b..14d2462 100644
--- a/src/containers/CardDetails.tsx
+++ b/src/containers/CardDetails.tsx
@@ -218,120 +218,129 @@ export const CardDetailsContainer = (props: ComponentProps) => {
return (
-
Чеклист
- {cardDetails.checkList.map((field) => {
- return (
-
- );
- })}
-
{
- setNewCheckListField(newText);
- }}
- />
-
-
Комментарии
-
-
- {cardDetails.comments.map((comment) => {
- return (
-
-
{comment.createdBy.name}
+
+
Чеклист
+ {cardDetails.checkList.map((field) => {
+ return (
+
+ );
+ })}
+ {
+ setNewCheckListField(newText);
+ }}
+ />
+
+
+
+
Комментарии
+
+
+ {cardDetails.comments.map((comment) => {
+ return (
+
+
{comment.createdBy.name}
-
{comment.text}
-
{
- deleteComment(comment.id).then((t) => {
- if (t) {
- cardDetails.comments = cardDetails.comments.filter(
- (c) => {
- return c.id !== comment.id;
- }
- );
- setCardDetailsStore(cardDetails);
- }
- });
- }}
- >
-
+
{comment.text}
+
{
+ deleteComment(comment.id).then((t) => {
+ if (t) {
+ cardDetails.comments = cardDetails.comments.filter(
+ (c) => {
+ return c.id !== comment.id;
+ }
+ );
+ setCardDetailsStore(cardDetails);
+ }
+ });
+ }}
+ >
+
+
-
- );
- })}
+ );
+ })}
+
-
Дедлайн
-
- Пожалуйста, вводите дату и время! Если Вы не введёте время, оно не
- сработает
+
+
Дедлайн
+
+ Пожалуйста, вводите дату и время! Если Вы не введёте время, оно не
+ сработает
+
+
+
+
-
-
-
Назначенные пользователи
- {cardDetails.assignedUsers.map((u) => {
- return (
-
-
{u.name}
-
{
- deassignUser(cardDetails.card.id, u.id).then((t) => {
- if (t) {
- cardDetails.assignedUsers =
- cardDetails.assignedUsers.filter((au) => {
- return au.id !== u.id;
- });
- setCardDetailsStore(cardDetails);
- }
- });
- }}
- >
-
+
+
Назначенные пользователи
+ {cardDetails.assignedUsers.map((u) => {
+ return (
+
+
{u.name}
+
{
+ deassignUser(cardDetails.card.id, u.id).then((t) => {
+ if (t) {
+ cardDetails.assignedUsers =
+ cardDetails.assignedUsers.filter((au) => {
+ return au.id !== u.id;
+ });
+ setCardDetailsStore(cardDetails);
+ }
+ });
+ }}
+ >
+
+
-
- );
- })}
-
{
- setNewAssigned(newText);
- }}
- />
-
+ );
+ })}
+
{
+ setNewAssigned(newText);
+ }}
+ />
+
+
);
diff --git a/src/containers/cardDetails.scss b/src/containers/cardDetails.scss
index 41034a5..ab6203f 100644
--- a/src/containers/cardDetails.scss
+++ b/src/containers/cardDetails.scss
@@ -2,6 +2,12 @@
display: flex;
flex-direction: row;
min-width: 70vw;
+ gap: 20px;
+}
+
+.card-details_block {
+ min-height: 140px;
+ max-width: 450px;
}
.card-details__left-section {
diff --git a/static/img/KarlMarks.jpg b/static/img/KarlMarks.jpg
index 85c59b2..2a7e178 100644
Binary files a/static/img/KarlMarks.jpg and b/static/img/KarlMarks.jpg differ
diff --git a/static/img/KarlMarks1.jpg b/static/img/KarlMarks1.jpg
new file mode 100644
index 0000000..85c59b2
Binary files /dev/null and b/static/img/KarlMarks1.jpg differ