Skip to content

Commit

Permalink
Fix margin issues caused by new navbar (#242)
Browse files Browse the repository at this point in the history
* Fix padding issues caused by new navbar.

* Remove unused import.

* Revert padding left changes.

* Update padding issues.
  • Loading branch information
ahmedhamodi authored Nov 10, 2020
1 parent a2bb215 commit da533ff
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Components/Admin/UserManagement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import NewUserDialog from "./NewUserDialog";
import UserManagementTable from "./UserManagementTable";

const Wrapper = styled.div`
margin-top: 148px;
margin-top: 50px;
text-align: left;
padding: 0 64px;
`;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/AllCandidates/AllCandidates.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Header = styled.div`
`;

const Wrapper = styled.div`
margin-top: 150px;
margin-top: 50px;
padding: 0 136px;
h1 {
font-family: Roboto;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/AllCandidates/CommitteeReview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Header = styled.div`
`;

const Wrapper = styled.div`
margin-top: 150px;
margin-top: 50px;
padding: 0 136px;
h1 {
font-family: Roboto;
Expand Down
9 changes: 2 additions & 7 deletions src/Components/FormCreation/CreateEditForm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useReducer, useEffect, useState, useContext } from "react";
import { HEADER_HEIGHT } from "../Header/Header";
import styled from "styled-components";
import FormSection from "./FormSection";
import { AuthContext } from "../../Authentication/Auth.js";
Expand All @@ -9,10 +8,6 @@ import CreateEditFormHeader from "./CreateEditFormHeader";
import { defaultFormState } from "./CreateEditFormStateManagement";
import customFormSectionsReducer from "../../Reducers/CustomFormSectionsReducer";

const Wrapper = styled.div`
margin-top: ${HEADER_HEIGHT}px;
`;

const FormWrapper = styled.div`
margin-top: 50px;
padding-left: 15%;
Expand Down Expand Up @@ -75,7 +70,7 @@ function CreateEditForm() {
}

return (
<Wrapper>
<div>
<CreateEditFormHeader {...headerData} onChange={setHeaderData} />
{sections &&
sections.map((section, key) => (
Expand All @@ -91,7 +86,7 @@ function CreateEditForm() {
/>
</FormWrapper>
))}
</Wrapper>
</div>
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Components/List/ApplicationList/AllApplications.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "../../../requests/get";

const Wrapper = styled.div`
margin-top: 150px;
margin-top: 100px;
padding: 0 136px;
text-align: left;
padding-bottom: 30px;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/StackedRankings/StackedRankings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const useStyles = makeStyles({
position: "relative"
},
root: {
marginTop: 136,
marginTop: 100,
padding: "0 168px",
textAlign: "left",
"& h1": {
Expand Down

0 comments on commit da533ff

Please sign in to comment.