Skip to content

Commit 404aa45

Browse files
author
喜喜懒羊羊
committed
number and name col position fixed
1 parent 675e2c6 commit 404aa45

2 files changed

Lines changed: 12 additions & 13 deletions

File tree

src/components/Projects/WBS/WBSItem/WBSItem.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ const WBSItem = ({ darkMode, index, name, wbsId, projectId, getPopupById, delete
3434
return (
3535
<React.Fragment>
3636
<tr>
37-
<th scope="row">
38-
<div>{index}</div>
37+
<th scope="row" style={{ width: '150px', textAlign: 'center' }}>
38+
{index}
3939
</th>
40-
<td className="members__name taskName">
40+
<td style={{ textAlign: 'left' }}>
4141
<NavItem tag={Link} to={`/wbs/tasks/${wbsId}/${projectId}/${name}`} className={darkMode ? 'text-azure' : ''}>
4242
{name}
4343
</NavItem>
4444
</td>
45-
{canDeleteWBS ? (
46-
<td className="members__assign">
45+
<td style={{ width: '50px', textAlign: 'center' }}>
46+
{canDeleteWBS ? (
4747
<button
4848
className="btn btn-outline-danger btn-sm"
4949
type="button"
@@ -52,8 +52,8 @@ const WBSItem = ({ darkMode, index, name, wbsId, projectId, getPopupById, delete
5252
>
5353
<i className="fa fa-minus" aria-hidden="true"></i>
5454
</button>
55-
</td>
56-
) : null}
55+
) : null}
56+
</td>
5757
</tr>
5858

5959
<ModalDelete

src/components/Projects/WBS/wbs.jsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const WBS = props => {
6868
width: '100%',
6969
textAlign: 'center',
7070
fontWeight: 'bold',
71-
fontSize: '1.5rem' // 相当于 24px
71+
fontSize: '1.5rem'
7272
}}>{projectName}</div>
7373
</div>
7474
</nav>
@@ -89,10 +89,8 @@ const WBS = props => {
8989
<table className={`table table-bordered table-responsive-sm ${darkMode ? 'bg-yinmn-blue text-light dark-mode' : '' }`}>
9090
<thead>
9191
<tr className={darkMode ? 'bg-space-cadet' : ''}>
92-
<th scope="col" id="members__order">
93-
#
94-
</th>
95-
<th scope="col" id="members__name">
92+
<th scope="col" style={{ width: '150px' }}>#</th>
93+
<th scope="col" style={{ textAlign: 'left' }}>
9694
Name
9795
<span style={{ marginLeft: '8px', cursor: 'pointer' }}>
9896
<i
@@ -101,7 +99,7 @@ const WBS = props => {
10199
></i>
102100
</span>
103101
</th>
104-
<th scope="col" id="members__name"></th>
102+
<th scope="col" style={{ width: '50px' }}></th>
105103
</tr>
106104
</thead>
107105
<tbody>
@@ -113,6 +111,7 @@ const WBS = props => {
113111
wbsId={item._id}
114112
projectId={projectId}
115113
name={item.wbsName}
114+
darkMode={darkMode}
116115
/>
117116
) : null,
118117
)}

0 commit comments

Comments
 (0)