Skip to content

Commit 84441c2

Browse files
Merge pull request #4536 from OneCommunityGlobal/venkataramanan_fix_progress_bar_width
Venkataramanan 🔥 Progress bar width in Tasks and Timelogs table
2 parents 5847556 + c902141 commit 84441c2

2 files changed

Lines changed: 15 additions & 21 deletions

File tree

src/components/TeamMemberTasks/TeamMemberTask.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ const TeamMemberTask = React.memo(
595595
darkMode ? 'bg-yinmn-blue text-light' : ''
596596
}`}
597597
>
598-
<>
598+
<div className={styles['progress-wrapper']}>
599599
<div className={styles['team-task-progress-container']}>
600600
<div
601601
data-testid={`times-${task.taskName}`}
@@ -661,7 +661,7 @@ const TeamMemberTask = React.memo(
661661
)}
662662
className={styles['team-task-progress-bar']}
663663
/>
664-
</>
664+
</div>
665665
</td>
666666
)}
667667
</tr>

src/components/TeamMemberTasks/style.module.css

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,21 @@
1111
overflow: hidden;
1212
}
1313

14+
.progress-wrapper {
15+
display: inline-block;
16+
}
1417

18+
.team-task-progress-container {
19+
display: flex;
20+
flex-direction: row;
21+
align-items: center;
22+
flex-wrap: wrap;
23+
}
1524

16-
25+
.team-task-progress-bar {
26+
width: 100%;
27+
margin-top: 4px;
28+
}
1729

1830

1931
.team-member-task-review-button {
@@ -491,13 +503,6 @@
491503
/* min-width: 150px; */
492504
}
493505

494-
.team-task-progress-container {
495-
display: flex;
496-
flex-direction: row;
497-
align-items: center;
498-
flex-wrap: wrap;
499-
}
500-
501506
.progress-text{
502507
margin: 0;
503508
/* border: green 1px solid; */
@@ -522,17 +527,6 @@
522527
align-self: center;
523528
}
524529

525-
.team-task-progress-bar {
526-
/* width: 60%;
527-
max-width: 180px;
528-
min-width: 100px; */
529-
align-self: flex-start;
530-
margin-top: 4px;
531-
height: 10px;
532-
border-radius: 4px;
533-
}
534-
535-
536530
.hours-btn-div {
537531
display: flex;
538532
flex-direction: row;

0 commit comments

Comments
 (0)