File tree Expand file tree Collapse file tree 2 files changed +31
-16
lines changed Expand file tree Collapse file tree 2 files changed +31
-16
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ const queryDB = () => {
114114 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"
115115 html = `<div class="column note" id="${ cursor . key } " onclick='showNote(this)'>
116116 <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 >
118118 </div>` ;
119119 notesGrid . innerHTML += html ;
120120 noteSelect ( )
Original file line number Diff line number Diff line change @@ -19,16 +19,23 @@ body {
1919.column {
2020 float : left;
2121 width : 100% ;
22- height : auto ;
23- border : # eee ;
22+ height : 100 px ;
23+ border : 2 px solid # eee ;
2424 border-radius : 5% ;
2525}
2626
27+
28+ .column p {
29+ overflow : hidden;
30+ text-overflow : ellipsis;
31+ white-space : nowrap;
32+ }
33+
34+
2735.note {
2836 background-color : # f1f1f1 ;
2937 border : solid 2px # bbb ;
3038 font-size : 10px ;
31- padding : 0% ;
3239 padding-left : 5px ;
3340 cursor : pointer;
3441 text-align : left;
@@ -198,21 +205,13 @@ textarea {
198205 font-size : 12px ;
199206 }
200207
201- .column {
202- word-wrap : break-word;
203- font-size : 10px ;
204- height : auto;
205- }
206-
207- p {
208+ .column p {
208209 margin : 2px ;
209- font-size : x -small;
210+ font-size : xx -small;
210211 }
211212
212- caption {
213- margin : 1px ;
214- font-size : xx-small;
215- padding : 0px ;
213+ .column span {
214+ display : none;
216215 }
217216
218217 .right {
@@ -231,5 +230,21 @@ textarea {
231230 font-weight : 700 ;
232231 }
233232
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+
234249}
235250
You can’t perform that action at this time.
0 commit comments