File tree 2 files changed +31
-16
lines changed
2 files changed +31
-16
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ const queryDB = () => {
114
114
date_diff . days > 0 ? ago [ 0 ] = ( date_diff . days + "d ago" ) : date_diff . hours > 0 ? ago [ 1 ] = ( date_diff . hours + "h ago" ) : date_diff . minutes > 0 ? ago [ 2 ] = ( date_diff . minutes + "m ago" ) : ago [ 2 ] = "now"
115
115
html = `<div class="column note" id="${ cursor . key } " onclick='showNote(this)'>
116
116
<h2>${ marked ( cursor . value . title ) } </h2>
117
- <caption>Created ${ ago [ 0 ] || "" } ${ ago [ 1 ] || "" } ${ ago [ 2 ] || "" } </caption>
117
+ <span>< caption>Created ${ ago [ 0 ] || "" } ${ ago [ 1 ] || "" } ${ ago [ 2 ] || "" } </caption></span >
118
118
</div>` ;
119
119
notesGrid . innerHTML += html ;
120
120
noteSelect ( )
Original file line number Diff line number Diff line change @@ -19,16 +19,23 @@ body {
19
19
.column {
20
20
float : left;
21
21
width : 100% ;
22
- height : auto ;
23
- border : # eee ;
22
+ height : 100 px ;
23
+ border : 2 px solid # eee ;
24
24
border-radius : 5% ;
25
25
}
26
26
27
+
28
+ .column p {
29
+ overflow : hidden;
30
+ text-overflow : ellipsis;
31
+ white-space : nowrap;
32
+ }
33
+
34
+
27
35
.note {
28
36
background-color : # f1f1f1 ;
29
37
border : solid 2px # bbb ;
30
38
font-size : 10px ;
31
- padding : 0% ;
32
39
padding-left : 5px ;
33
40
cursor : pointer;
34
41
text-align : left;
@@ -198,21 +205,13 @@ textarea {
198
205
font-size : 12px ;
199
206
}
200
207
201
- .column {
202
- word-wrap : break-word;
203
- font-size : 10px ;
204
- height : auto;
205
- }
206
-
207
- p {
208
+ .column p {
208
209
margin : 2px ;
209
- font-size : x -small;
210
+ font-size : xx -small;
210
211
}
211
212
212
- caption {
213
- margin : 1px ;
214
- font-size : xx-small;
215
- padding : 0px ;
213
+ .column span {
214
+ display : none;
216
215
}
217
216
218
217
.right {
@@ -231,5 +230,21 @@ textarea {
231
230
font-weight : 700 ;
232
231
}
233
232
233
+ .column : nth-of-type (odd ) {
234
+ float : left;
235
+ width : 100% ;
236
+ height : 50px ;
237
+ border : 2px solid # eee ;
238
+ border-radius : 5% ;
239
+ }
240
+
241
+ .column : nth-of-type (even ) {
242
+ float : right;
243
+ width : 100% ;
244
+ height : 50px ;
245
+ border : 2px solid # eee ;
246
+ border-radius : 5% ;
247
+ }
248
+
234
249
}
235
250
You can’t perform that action at this time.
0 commit comments