diff --git a/client/src/components/cards/Card/Card.jsx b/client/src/components/cards/Card/Card.jsx
index cddcb18d..c1c7c5c7 100755
--- a/client/src/components/cards/Card/Card.jsx
+++ b/client/src/components/cards/Card/Card.jsx
@@ -3,8 +3,6 @@
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
-import upperFirst from 'lodash/upperFirst';
-import camelCase from 'lodash/camelCase';
import React, { useCallback, useContext, useMemo, useRef, useState } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
@@ -25,15 +23,12 @@ import EditName from './EditName';
import CardActionsStep from '../CardActionsStep';
import styles from './Card.module.scss';
-import globalStyles from '../../../styles.module.scss';
const Card = React.memo(({ id, isInline }) => {
const selectCardById = useMemo(() => selectors.makeSelectCardById(), []);
const selectIsCardWithIdRecent = useMemo(() => selectors.makeSelectIsCardWithIdRecent(), []);
- const selectListById = useMemo(() => selectors.makeSelectListById(), []);
const card = useSelector((state) => selectCardById(state, id));
- const list = useSelector((state) => selectListById(state, card.listId));
const isHighlightedAsRecent = useSelector((state) => {
const { turnOffRecentCardHighlighting } = selectors.selectCurrentUser(state);
@@ -133,15 +128,6 @@ const Card = React.memo(({ id, isInline }) => {
}
}
- const colorLineNode = list.color && (
-
- );
-
return (
{
onContextMenu={handleContextMenu}
>
- {colorLineNode}
{canUseActions && (
@@ -175,7 +160,6 @@ const Card = React.memo(({ id, isInline }) => {
) : (
- {colorLineNode}
)}
diff --git a/client/src/components/cards/Card/Card.module.scss b/client/src/components/cards/Card/Card.module.scss
index 8eaf47d3..130ea9a9 100644
--- a/client/src/components/cards/Card/Card.module.scss
+++ b/client/src/components/cards/Card/Card.module.scss
@@ -29,11 +29,6 @@
}
}
- .colorLine {
- border-radius: 0 0 3px 3px;
- height: 4px;
- }
-
.content {
cursor: pointer;
diff --git a/client/src/components/lists/List/List.jsx b/client/src/components/lists/List/List.jsx
index 64079613..e6658d30 100755
--- a/client/src/components/lists/List/List.jsx
+++ b/client/src/components/lists/List/List.jsx
@@ -201,6 +201,7 @@ const List = React.memo(({ id, index }) => {
className={classNames(
styles.outerWrapper,
isFavoritesActive && styles.outerWrapperWithFavorites,
+ list.color && globalStyles[`background${upperFirst(camelCase(list.color))}Soft`],
)}
onTransitionEnd={handleWrapperTransitionEnd}
>
@@ -261,7 +262,11 @@ const List = React.memo(({ id, index }) => {