Skip to content

Commit 14220ef

Browse files
committed
Proposal Editor Responsiveness Fix
1 parent adf5134 commit 14220ef

File tree

3 files changed

+42
-8
lines changed

3 files changed

+42
-8
lines changed

src/user/proposals/ProposalEditor/EditorContent/EditorContent.scss

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.editor-content {
22
padding: 30px;
33
display: flex;
4-
height: 100vh;
4+
height: 100%;
55
flex-direction: column;
66
.editor-toppanel {
77
flex-grow: 1;
@@ -90,3 +90,24 @@
9090
}
9191
}
9292
}
93+
94+
@media (min-width: 320px) and (max-width: 1024px){
95+
.editor-content {
96+
padding: 0;
97+
display: flex;
98+
height: 100%;
99+
flex-direction: column;
100+
.editor-toppanel {
101+
flex-grow: 1;
102+
display: flex;
103+
flex-direction: column;
104+
.editor-title {
105+
width: 100%;
106+
}
107+
.editor-buttons {
108+
// text-align: center;
109+
margin: 20px auto;
110+
}
111+
}
112+
}
113+
}

src/user/proposals/ProposalEditor/ProposalEditor.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ class ProposalEditor extends Component {
1010
}
1111
render() {
1212
return (
13-
<div className="editor">
14-
<div className="editor__navigation">
15-
<Navigation dashboard={this.state.dashboard} />
13+
<>
14+
<Navigation dashboard={this.state.dashboard} />
15+
<div className="editor">
16+
<div className="editor__content">
17+
<EditorContent />
18+
</div>
1619
</div>
17-
<div className="editor__content">
18-
<EditorContent />
19-
</div>
20-
</div>
20+
</>
2121
);
2222
}
2323
}

src/user/proposals/ProposalEditor/ProposalEditor.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
min-height: 100vh;
44
height: auto;
55
font-family: Muli, sans-serif;
6+
margin-left: 13%;
67
.editor__navigation {
78
flex: 1;
89
border-right: solid 1px #dfe9f1;
@@ -11,3 +12,15 @@
1112
flex: 5.5;
1213
}
1314
}
15+
16+
@media (min-width: 320px) and (max-width: 1024px){
17+
.editor {
18+
padding: 2vh 2.5vw;
19+
width: 100%;
20+
margin-left: 0;
21+
.editor__content {
22+
padding: 0;
23+
width: 100%;
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)