Skip to content

Commit

Permalink
bug(interface):
Browse files Browse the repository at this point in the history
- Fix the delete comment pop up style
- Fix broken user table
- Fix search functionality
[Finishes #171434652]
  • Loading branch information
hezronkimutai authored and victkarangwa committed Feb 28, 2020
1 parent 339a4cc commit f7e4337
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 97 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
.profile-row{
background-color: white;
margin-left: 0px;
height: 100%;
* {
box-sizing: border-box;
}

}
.profile-column-form {
float: left;
width: 75%;
width: 64%;
padding: 10px;
background-color: white;
}
Expand All @@ -16,29 +19,21 @@
.edit-profile-column-picture {
float: left;
width: 35%;
height: 461px;
height: 450px;
background-color: white;
padding: 5px 20px 15px 20px;
border: 1px solid lightgrey;
border-radius: 3px;
margin-top: 99px;
}

.profile-row:after {
content: "";
display: table;
clear: both;
}

.profile-row {
background-color: white;
margin-left: 0px;
}

.edit-profile-title {
margin: 35px;
padding-top: 35px;
margin-left: 20px;
text-align: center;

}

.edit-profile-title-details {
Expand Down Expand Up @@ -66,11 +61,11 @@
}

.profile-details-row {
display: -ms-flexbox; /* IE10 */
display: -ms-flexbox; /* IE10 */
display: flex;
-ms-flex-wrap: wrap; /* IE10 */
flex-wrap: wrap;
margin: 0 -16px;
padding: 20px;
}

.col-25 {
Expand All @@ -92,7 +87,7 @@
.col-25,
.col-50,
.col-75 {
padding: 0 16px;
padding: 0 16px 0 0;
}

.profile-container {
Expand Down Expand Up @@ -123,15 +118,15 @@ select {
label {
margin-bottom: 10px;
display: block;
}
}

.icon-container {
margin-bottom: 20px;
padding: 7px 0;
font-size: 24px;
}

.btn {
.btn {
background-color: #00B9F2;
color: white;
padding: 12px;
Expand All @@ -142,16 +137,13 @@ label {
border-radius: 3px;
cursor: pointer;
font-size: 17px;
}
}

.edit-btn {
background-color: #00B9F2;
color: white;
padding: 12px;
margin: 10px;
margin-left: 17px;
border: none;
width: 100px;
width: 250px;
height: 50px;
border-radius: 3px;
cursor: pointer;
Expand Down Expand Up @@ -220,14 +212,26 @@ hr {
margin-left: 30px;
}

}
.profile-row:after {
content: "";
display: table;
clear: both;
}

/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other (also change the direction - make the "cart" column go on top) */
@media (max-width: 800px) {
.profile-row {
display: flex;
flex-direction: column-reverse;

}
.profile-row div{
.profile-column-form {
width: 100%;
}
.edit-profile-column-picture {
width: 100%;
}
div{
width: 100%;
}
.col-25 {
Expand All @@ -241,5 +245,5 @@ hr {
width: 400px;
height: 70px;
}

}
}
38 changes: 18 additions & 20 deletions src/assets/css/profile.css → src/assets/css/profile.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
* {
box-sizing: border-box;
}

.main-profile-row{
background-color: white;
height: 94%;
* {
box-sizing: border-box;
}
.profile-column-form {
float: left;
width: 64%;
Expand All @@ -20,20 +23,9 @@
padding: 5px 20px 15px 20px;
border: 1px solid lightgrey;
border-radius: 3px;
margin-top: 79px;
margin-top: 70px;
}

.main-profile-row:after {
content: "";
display: table;
clear: both;
}

.main-profile-row {
background-color: white;
margin-bottom: 100px;
margin-top: 40px;
}

.profile-title {
margin: 10px;
Expand Down Expand Up @@ -95,13 +87,12 @@
.col-75 {
padding: 0 16px;
}

.container {
background-color: white;
border: 1px solid lightgrey;
border-radius: 3px;
}


input[type=text] {
width: 100%;
margin-bottom: 20px;
Expand All @@ -122,7 +113,7 @@ select {
label {
margin-bottom: 10px;
display: block;
}
}

.icon-container {
margin-bottom: 20px;
Expand All @@ -140,7 +131,7 @@ label {
border-radius: 3px;
cursor: pointer;
font-size: 17px;
}
}

.edit-btn {
background-color: #00B9F2;
Expand Down Expand Up @@ -217,6 +208,13 @@ hr {
margin-left: 30px;
}


}
.main-profile-row:after {
content: "";
display: table;
clear: both;
}
/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other (also change the direction - make the "cart" column go on top) */
@media (max-width: 800px) {
.main-profile-row {
Expand All @@ -239,4 +237,4 @@ hr {
height: 70px;
}

}
}
1 change: 1 addition & 0 deletions src/assets/css/selectOption.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

.selectOption {
height: 30px !important;
margin-right: 15px;
width: 100%;
border: 1px solid $logo-color;
outline: none;
Expand Down
1 change: 1 addition & 0 deletions src/assets/css/statsTrip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
border-radius: 5px;
outline: none;
border: 1px solid #34c6f3;
padding: 10px;
}
label {
font-family: Muli;
Expand Down
91 changes: 47 additions & 44 deletions src/assets/css/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ $attributes: tripId tripType tripOrigin tripDestination createdAt status action
margin-left: 10px;
height: 40px;
}
margin-right: 20px;
outline: none;
width: 235px;
height: 40px;
Expand Down Expand Up @@ -754,50 +755,6 @@ $attributes: tripId tripType tripOrigin tripDestination createdAt status action
}
}
}

.popupContainer {
border-radius: 5px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
flex-direction: column;
width: 300px !important;
height: 150px !important;
margin: auto;
background-color: white;
.popupMessage {
padding: 5px;
}
.popupButtons {
width: 40%;
display: flex;
margin-right: 50px;
}
div {
margin-top: 13px;
height: 40px;
width: 90%;
margin: auto;
display: flex;
justify-content: space-evenly;
div {
width: 80px;
padding: 10px;
button {
width: 80px;
margin: 3px;
border: 0px;
color: white;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
border-radius: 5px;
}
#delete {
background-color: red;
}
#cancel {
background-color: #00b9f2;
}
}
}
}
}
}
.pagination-buttons {
Expand Down Expand Up @@ -895,3 +852,49 @@ height: 50px;
}
}
}

.popupContainer {
border-radius: 5px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
flex-direction: column !important;
width: 300px !important;
height: 150px !important;
margin: auto;
background-color: white;
.popupMessage {
padding: 5px;
}
.popupButtons {
width: 40%;
display: flex;
margin-right: 50px;
}
div {
margin-top: 13px;
height: 20px;
width: 80% !important;
margin: auto;
display: flex;
justify-content: space-evenly;
div {
width: 60px;
padding: 1px;
height: 40px;
button {
height: 40px;
width: 80px;
margin: 1px;
border: 0px;
color: white;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
border-radius: 5px;
}
#delete {
background-color: red;
}
#cancel {
background-color: #00b9f2;
}
}
}
}
4 changes: 2 additions & 2 deletions src/components/CreateProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import getProfile, { updateSpinnerStatus } from '../redux/actions/profileActions
import updateProfile, {
uploadImage,
} from '../redux/actions/updateProfileActions';
import '../assets/css/createProfile.css';
import '../assets/css/createProfile.scss';
import Navbar from './Navbar';
import profilePicture from '../assets/images/profile-picture2.png';
import TextInput from './common/TextInput';
Expand Down Expand Up @@ -175,8 +175,8 @@ export class CreateProfile extends Component {
} = this.state;
return (
<>
<h2 className="edit-profile-title">EDIT PROFILE</h2>
<div className="profile-row">
<h2 className="edit-profile-title">EDIT PROFILE</h2>
<div className="profile-column-form">
<div className="profile-details-row">
<div className="col-75">
Expand Down
2 changes: 1 addition & 1 deletion src/components/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import getProfile, { updateSpinnerStatus } from '../redux/actions/profileActions
import updateProfile, {
uploadImage,
} from '../redux/actions/updateProfileActions';
import '../assets/css/profile.css';
import '../assets/css/profile.scss';
import Navbar from './Navbar';
import profilePicture from '../assets/images/profile-picture2.png';
import TextInput from './common/TextInput';
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/TextInput.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import '../../assets/css/profile.css';
import '../../assets/css/profile.scss';

const TextInput = ({
placeholder, name, value, disabled, onChange, pattern, title,
Expand Down
Loading

0 comments on commit f7e4337

Please sign in to comment.