Skip to content

Commit cf427e4

Browse files
author
seraphimrose
committed
desc
1 parent e63243e commit cf427e4

File tree

8 files changed

+274
-124
lines changed

8 files changed

+274
-124
lines changed

app/action/detail.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@ import { fromJS } from 'immutable'
44
export const toggleDetail = createAction("Show card detail", data => fromJS(data))
55

66
export const editingBoardTitle = createAction("Editing board title")
7+
78
export const editingListTitle = createAction("Editing board title")
8-
export const editingCardTitle = createAction("Editing board title")
9+
10+
export const editingCardTitle = createAction("Editing board title")
11+
12+
export const editingDesc = createAction("Editing the description")

app/action/entity.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ export const addMember = createAction("Add members to card", data => fromJS(data
2323

2424
export const addTag = createAction("Add tags to card", data => fromJS(data))
2525

26-
export const changeDueDate = createAction("Change due date", data => fromJS(data))
26+
export const changeDueDate = createAction("Change due date", data => fromJS(data))
27+
28+
export const editDesc = createAction("Edit the description", data => fromJS(data))

app/component/app/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ export default (props) => (
1313
<div>
1414
<Detail
1515
user={props.user}
16+
height={props.height}
1617
card={props.card.get(props.detailIndex)}
1718
index={props.detailIndex}
1819
tag={props.tag}
1920
member={props.member}
2021
dispatch={props.dispatch}
2122
tempCardTitle={props.tempCardTitle}
23+
tempDesc={props.tempDesc}
2224
/>
2325
<div id="mask" onClick={() => props.dispatch(toggleDetail({}))}></div>
2426
</div>

app/component/detail/detail.css

+26-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
left: 265px;
44
top: 45px;
55
width: 730px;
6-
height: 520px;
76
z-index: 100;
87
background: #edeff0;
98
color: #000;
@@ -175,6 +174,32 @@
175174

176175
:local(.desc) {
177176
width: 520px;
177+
178+
:local(.editDesc) {
179+
textarea {
180+
resize: none;
181+
width: 500px;
182+
height: 75px;
183+
max-width: 500px;
184+
max-height: 75px;
185+
border: 1px #e2e4e6 solid;
186+
border-radius: 3px;
187+
box-shadow: 0 0 2px 2px #e2e4e6;
188+
}
189+
190+
button {
191+
margin: 5px 10px 0 0;
192+
}
193+
}
194+
195+
i {
196+
margin-left: 5px;
197+
cursor: pointer;
198+
}
199+
200+
.delete {
201+
color: #eb5a46;
202+
}
178203
}
179204
}
180205

0 commit comments

Comments
 (0)