@@ -77,6 +77,7 @@ export function ProductionBoardKanbanComponent({
|
|||||||
setIsMoving(true);
|
setIsMoving(true);
|
||||||
|
|
||||||
const sameColumnTransfer = sourceLaneId === targetLaneId;
|
const sameColumnTransfer = sourceLaneId === targetLaneId;
|
||||||
|
|
||||||
const sourceLane = boardLanes.lanes.find((lane) => lane.id === sourceLaneId);
|
const sourceLane = boardLanes.lanes.find((lane) => lane.id === sourceLaneId);
|
||||||
const targetLane = boardLanes.lanes.find((lane) => lane.id === targetLaneId);
|
const targetLane = boardLanes.lanes.find((lane) => lane.id === targetLaneId);
|
||||||
|
|
||||||
|
|||||||
@@ -161,9 +161,9 @@ class Lane extends Component {
|
|||||||
} = this.props;
|
} = this.props;
|
||||||
const { addCardMode, collapsed } = this.state;
|
const { addCardMode, collapsed } = this.state;
|
||||||
|
|
||||||
const showableCards = collapsed ? [] : cards;
|
const stableCards = collapsed ? [] : cards;
|
||||||
|
|
||||||
const cardList = this.sortCards(showableCards, laneSortFunction).map((card, idx) => {
|
const cardList = this.sortCards(stableCards, laneSortFunction).map((card, idx) => {
|
||||||
const onDeleteCard = () => this.removeCard(card.id);
|
const onDeleteCard = () => this.removeCard(card.id);
|
||||||
const cardToRender = (
|
const cardToRender = (
|
||||||
<components.Card
|
<components.Card
|
||||||
@@ -191,7 +191,7 @@ class Lane extends Component {
|
|||||||
return (
|
return (
|
||||||
<components.ScrollableLane ref={this.laneDidMount} isDraggingOver={isDraggingOver}>
|
<components.ScrollableLane ref={this.laneDidMount} isDraggingOver={isDraggingOver}>
|
||||||
<Container
|
<Container
|
||||||
orientation="vertical"
|
orientation="vertical" // TODO This is where we would switch the card orientation.
|
||||||
groupName={this.groupName}
|
groupName={this.groupName}
|
||||||
dragClass={cardDragClass}
|
dragClass={cardDragClass}
|
||||||
dropClass={cardDropClass}
|
dropClass={cardDropClass}
|
||||||
|
|||||||
@@ -25,11 +25,9 @@ export const GlobalStyle = createGlobalStyle`
|
|||||||
.icon-overflow-menu-horizontal:before {
|
.icon-overflow-menu-horizontal:before {
|
||||||
content: "\\E91F";
|
content: "\\E91F";
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-lg, .icon-sm {
|
.icon-lg, .icon-sm {
|
||||||
color: #798d99;
|
color: #798d99;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-lg {
|
.icon-lg {
|
||||||
height: 32px;
|
height: 32px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@@ -60,7 +58,6 @@ export const CustomPopoverContent = styled(PopoverContent)`
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
|
|
||||||
${(props) =>
|
${(props) =>
|
||||||
props.active &&
|
props.active &&
|
||||||
`
|
`
|
||||||
@@ -70,13 +67,11 @@ export const CustomPopoverContent = styled(PopoverContent)`
|
|||||||
`} &::before {
|
`} &::before {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: rgba(255, 255, 255, 0.56);
|
color: rgba(255, 255, 255, 0.56);
|
||||||
padding: 0.5em 1em;
|
padding: 0.5em 1em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #00bcd4 !important;
|
background-color: #00bcd4 !important;
|
||||||
color: #37474f;
|
color: #37474f;
|
||||||
@@ -284,7 +279,6 @@ export const InlineInput = styled.textarea`
|
|||||||
border: 0;
|
border: 0;
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
|
|
||||||
${(props) =>
|
${(props) =>
|
||||||
props.border &&
|
props.border &&
|
||||||
css`
|
css`
|
||||||
|
|||||||
Reference in New Issue
Block a user