Skip to content

Commit a167fd1

Browse files
authored
Merge pull request #11 from peterjuma/master
Resize
2 parents 1d247fe + 419b985 commit a167fd1

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

public/javascript/script.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,9 @@ function editNote(notediv) {
348348
if (matching) {
349349
html = `<div name=${matching.noteid} class="editor" id="editpad">
350350
<input name="title" type="text" id="title">
351-
<textarea style="margin-top: 20px;" name="notebody" id="notebody"></textarea>
351+
<textarea name="notebody" id="notebody"></textarea>
352+
</div>
353+
<div class="editBtns">
352354
<button onclick='update(this)' name="${matching.noteid}" class="btn btnnote" style="float: left; background-color: #ddd; margin-top: 17px;" onMouseOut="this.style.color='crimson'" onMouseOver="this.style.color='green'"><i class="fa fa-check fa-lg" aria-hidden="true"></i> OK</button>
353355
<button onclick='cancelEdit(this)' name="${matching.noteid}" class="btn btnnote" style="float: right; background-color: #ddd;margin-top: 17px;" onMouseOut="this.style.color='crimson'" onMouseOver="this.style.color='green'"><i class="fas fa-window-close fa-lg"></i> Cancel</button>
354356
</div>`

public/styles/style.css

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ body {
6565
}
6666
}
6767

68-
.notebody {
68+
/* .notebody {
6969
height: 18px;
7070
width: 150px;
7171
padding: 0;
@@ -74,7 +74,7 @@ body {
7474
margin: 0 5px 0 5px;
7575
text-decoration: none;
7676
white-space: nowrap;
77-
}
77+
} */
7878

7979

8080
.column:hover {
@@ -134,23 +134,29 @@ body {
134134
}
135135

136136
.editor {
137-
padding: 10px;
138-
resize: none;
137+
padding-left: 10px;
138+
padding-right: 10px;
139+
padding-bottom: 10px;
140+
/* resize: none; */
141+
resize: vertical;
142+
overflow: auto;
139143
background: #F5F5F5;
140144
border-color: #D8D8D8;
141145
border-style: solid;
142146
border-radius: 5px;
143147
border-width: 1px;
144148
box-shadow: none;
145149
display: block;
146-
width: 99%;
147-
height: 90%;
150+
width: 100%;
151+
max-height: 85%;
152+
min-height: 30%;
153+
height: 80%;
148154
}
149155

150156
input[type="text"] {
151157
width: 100%;
152158
padding: 10px;
153-
margin-top: 20px;
159+
margin-top: 10px;
154160
outline: none;
155161
border-radius: 5px;
156162
box-shadow: none;
@@ -161,8 +167,8 @@ textarea {
161167
width: 100%;
162168
height: 90%;
163169
display: block;
164-
margin-top: 20px;
165-
padding: 20px;
170+
margin-top: 10px;
171+
padding: 20px;
166172
resize: none;
167173
border-radius: 5px;
168174
box-shadow: none;

0 commit comments

Comments
 (0)