Skip to content

Commit 16c8a23

Browse files
authored
Merge pull request #151 from CodeForPhilly/UI-fix
Quick fix for UI
2 parents 1489d27 + 63eb80d commit 16c8a23

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

src/client/src/pages/DataView360/components/Adoptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Adoptions extends Component {
4242
// todo: update when we add pet info
4343
// todo: clean array of animal_id
4444
return (<Container className={styles.adoptions} style={{"marginTop":"1em"}}>
45-
<Typography className={styles.adoptions_title} variant='h4'>Adoption/Foster Records(Top 3)</Typography>
45+
<Typography className={styles.adoptions_title} variant='h4'>Adoption/Foster Records (Top 3)</Typography>
4646
<TableContainer className="main_table_container" style={{"marginTop":"1em"}} component={Paper} variant='outlined'>
4747
<Table className="main_table">
4848
<TableHead>

src/client/src/pages/DataView360/components/ContactInfo.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,9 @@ class ContactInfo extends Component {
2020
let phone = _.isEmpty(phoneStr) ? '-' : phoneStr.split(" ").join("");
2121

2222
return (<Container className={styles.contact_info}>
23-
<Typography align='center' variant='h4'>Contact Info</Typography>
2423
<Paper variant='outlined' className={styles.contact_info_main} style={{padding:'1em'}}>
25-
<div style={{"display":"flex", "justifyContent":"space-between"}}>
24+
<div className={styles.contact_container}>
2625
<Typography className={styles.contact_info_name}>
27-
<span style={{'fontWeight':'600'}}>
28-
{'Name:\t'}
29-
</span>
3026
<span>
3127
{_.get(this.props, "participant.first_name")}{'\t'}
3228
{_.get(this.props, "participant.last_name")}

src/client/src/pages/DataView360/components/Donations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Donations extends Component {
5353
render() {
5454
return (
5555
<Container className={styles.donations} style={{"marginTop":"1em"}}>
56-
<Typography className={styles.donations_title} variant='h4'>Financial Support Activity(Top 3)</Typography>
56+
<Typography className={styles.donations_title} variant='h4'>Financial Support Activity (Top 3)</Typography>
5757
<TableContainer className="main_table_container" style={{"marginTop":"1em"}} component={Paper} variant='outlined'>
5858
<Table className="main_table">
5959
<TableHead>

src/client/src/pages/DataView360/components/Volunteer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Volunteer extends Component {
7272
</TableContainer>
7373
</Container>
7474
<Container className={styles.volonteer_history} style={{"marginTop":"1em"}}>
75-
<Typography className={styles.volonteer_history_title} variant='h4'>Volunteer History(Top 3)</Typography>
75+
<Typography className={styles.volonteer_history_title} variant='h4'>Volunteer History (Top 3)</Typography>
7676
<TableContainer className="main_table_container" style={{"marginTop":"1em"}} component={Paper} variant='outlined'>
7777
<Table className="main_table">
7878
<TableHead>

src/client/src/pages/DataView360/components/styles/ContactInfo.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ div.contact_info_main::before {
2727
overflow: hidden;
2828
transform: translate(-50%, 0);
2929
}
30+
div.contact_info_container {
31+
display: flex;
32+
flex-direction: column;
33+
justify-content: flex-start;
34+
}
3035
p.contact_info_name {
3136
margin-bottom: 10px;
3237
font-size: 20px;

src/client/src/pages/DataView360/components/styles/table.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ div.main_table_container {
1111
.main_table thead th,
1212
.main_table tbody td {
1313
padding: 12px 10px 12px 20px;
14+
text-align: left;
1415
}
1516
.main_table thead th:last-child,
1617
.main_table tbody td:last-child {

0 commit comments

Comments
 (0)