Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swathi Fix resources dot centering on Tasks pages #2789

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/Projects/WBS/WBSDetail/WBSTasks.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*********************************************************************************
* Component: TASK
* Author: Henry Ng - 21/03/20 ≢
Expand Down
28 changes: 25 additions & 3 deletions src/components/Projects/WBS/WBSDetail/wbs.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,15 @@
width: 24px;
background-color: #bbb;
border-radius: 50%;
display: flex;
display: inline-flex;
justify-content: center; /* Center horizontally */
align-items: center;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
line-height: 1;
margin: 2px;
flex-shrink: 0;

}

Expand Down Expand Up @@ -120,9 +123,20 @@
.table td {
padding: 4px 8px;
line-height: 1.2;
height: 40px
height: 40px;
text-align: center;
vertical-align: middle;
}
.table th {
text-align: center; /* Centers the text horizontally */
vertical-align: middle; /* Centers the text vertically */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments for CSS classes are not required. they are self explanatory

padding: 4px 8px; /* Adds padding for spacing */
line-height: 1.2; /* Adjusts the line height */
height: 40px; /* Matches the height of the table rows */
}



.taskNum {
width: 80px;
}
Expand All @@ -143,11 +157,19 @@

.resourceMoreToggle {
display: flex;

justify-content: center; /* Centers horizontally */
align-items: center; /* Centers vertically */
height: 100%; /* Ensures it takes up the full height of the cell */
gap: 6px;
overflow: hidden;
transition: max-height 0.3s ; /* Smooth transition */
max-width: 100%;
}

.resourceMoreToggle.expanded {
max-height: 1000px; /* Large enough to accommodate content dynamically */
padding: 10px; /* Optional: add spacing during expansion */
}
.resourceMore {
display: none;
justify-content: center; /* Centers the element horizontally */
Expand Down
Loading