Skip to content

Commit 6411f91

Browse files
Merge pull request #4268 from OneCommunityGlobal/julia_fix_dashboard_responsiveness_merge_development
Julia - Fix dashboard responsiveness - Merge to development
2 parents 3347d3e + 77b53cc commit 6411f91

23 files changed

Lines changed: 427 additions & 401 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Header/Header.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ export function Header(props) {
159159
const [hasProfileLoaded, setHasProfileLoaded] = useState(false);
160160
const dismissalKey = `lastDismissed_${userId}`;
161161
const [lastDismissed, setLastDismissed] = useState(localStorage.getItem(dismissalKey));
162-
const [isAckLoading, setIsAckLoading] = useState(false);
163162
const unreadNotifications = props.notification?.unreadNotifications; // List of unread notifications
164163
const dispatch = useDispatch();
165164
const history = useHistory();

src/components/LeaderBoard/Leaderboard.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ function LeaderBoard({
672672
</div>
673673
</Alert>
674674
)}
675-
<div id="leaderboard" className="my-custom-scrollbar table-wrapper-scroll-y">
675+
<div id="leaderboard" className="my-custom-scrollbar table-wrapper-scroll-y mb-5">
676676
<div className="search-container mx-1">
677677
<input
678678
className={`form-control col-12 mb-2 ${
@@ -689,6 +689,7 @@ function LeaderBoard({
689689
className={`leaderboard table-fixed ${
690690
darkMode ? 'text-light dark-mode bg-yinmn-blue' : ''
691691
} ${isAbbreviatedView ? 'abbreviated-mode' : ''}`}
692+
style={{ minWidth: '500px' }}
692693
>
693694
<thead className="responsive-font-size">
694695
<tr className={darkMode ? 'bg-space-cadet' : ''} style={darkModeStyle}>

src/components/Projects/AddProject/AddProject.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,13 @@ const AddProject = (props) => {
151151
<div>
152152
<button
153153
type="button"
154-
className="btn btn-outline-success"
154+
className="btn btn-outline-success m-2"
155155
onClick={toggleModal}
156156
style={{
157157
borderColor: '#8ec233',
158158
color: '#8ec233',
159159
borderWidth: '1px',
160+
marginBottom: '10px'
160161
}}
161162
>
162163
<i className="fa fa-plus" aria-hidden="true"></i> Add New Project

src/components/Projects/Overview/Overview.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
********************************************************************************/
66
import React from 'react';
77
import { TOTAL_PROJECTS, ACTIVE_PROJECTS } from './../../../languages/en/ui';
8-
import "./Overview.css"
8+
import styles from "./Overview.module.css"
99

1010
const Overview = props => {
1111
return (
1212
<div className="projects__overview--top">
13-
<div className="card" id="card_project">
14-
<div className="card-body">
15-
<h6 className='card-text ml-3'>
13+
<div className={`${styles["card_project"]} m-2`} id="card_project">
14+
<div className={`${styles["card-body"]} card-body`}>
15+
<h6 className={`${styles["card-text"]} card-text ml-3`}>
1616
<i className="fa fa-folder" aria-hidden="true"></i> {TOTAL_PROJECTS}: {props.numberOfProjects}
1717
</h6>
1818
</div>
1919
</div>
2020

21-
<div className="card" id="card_active">
22-
<div className="card-body">
23-
<h6 className='card-text ml-3'>
21+
<div className={`${styles["card_active"]} m-2`} id="card_active">
22+
<div className={`${styles["card-body"]} card-body`}>
23+
<h6 className={`${styles["card-text"]} card-text ml-3`}>
2424
<i className="fa fa-circle fa-circle-isActive" aria-hidden="true"></i> {ACTIVE_PROJECTS}: {props.numberOfActive}
2525
</h6>
2626
</div>

src/components/Projects/Overview/Overview.css renamed to src/components/Projects/Overview/Overview.module.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
.card#card_project {
1+
.card_project {
22
display: flex;
33
justify-content: center;
44
align-items: center;
55
text-align: center;
6-
background: linear-gradient(to bottom, #87CEEB, #1E90FF, #4169E1);
6+
background: linear-gradient(to bottom, #87CEEB, #1E90FF, #4169E1) !important;
77
border-radius: 8px;
88
height: 40px;
99
width: 300px;
10-
margin: 10px;
10+
/* margin: 10px; */
1111
padding: 10px;
12+
float: left;
1213
}
1314

14-
.card#card_active {
15+
.card_active {
1516
display: flex;
1617
justify-content: center;
1718
align-items: center;
1819
text-align: center;
19-
background: linear-gradient(to bottom, #FFD700, #FFA500, #FF8C00);
20+
background: linear-gradient(to bottom, #FFD700, #FFA500, #FF8C00) !important;
2021
border-radius: 8px;
2122
height: 40px;
2223
width: 300px;
23-
margin: 10px;
24+
/* margin: 10px; */
2425
padding: 10px;
2526
}
2627

src/components/Projects/Projects.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ const projectFetchStatus = useSelector(state => state.allProjects.status);
283283
return (
284284
<>
285285
<div className={darkMode ? 'bg-oxford-blue text-light' : ''}>
286-
<div className="container py-3 border border-secondary rounded" style={darkMode ? { backgroundColor: '#1B2A41' } : {}}>
286+
<div className="container py-3 mb-5 border border-secondary rounded" style={darkMode ? { backgroundColor: '#1B2A41' } : {}}>
287287
{fetching || !fetched ? <Loading align="center" /> : null}
288-
<div className="d-flex justify-content-center align-items-center">
288+
<div className="d-flex align-items-center flex-wrap w-100">
289289
<h3 style={{ display: 'inline-block', marginRight: 10 }}>Projects</h3>
290290
<EditableInfoModal
291291
areaName="projectsInfoModal"
@@ -300,7 +300,7 @@ const projectFetchStatus = useSelector(state => state.allProjects.status);
300300
</div>
301301

302302
<SearchProjectByPerson onSearch={handleSearchName} />
303-
303+
<div style={{ overflowX: 'auto', overflowY: 'auto', maxHeight: '500px' }}>
304304
<table className="table table-bordered table-responsive-sm">
305305
<thead>
306306
<ProjectTableHeader
@@ -315,6 +315,7 @@ const projectFetchStatus = useSelector(state => state.allProjects.status);
315315
</thead>
316316
<tbody className={darkMode ? 'bg-yinmn-blue dark-mode' : ''}>{projectList}</tbody>
317317
</table>
318+
</div>
318319
</div>
319320

320321
<ModalTemplate

0 commit comments

Comments
 (0)