Browse Source

Fix notes layout columns bug

tags/v1.3.1
Skylar Ittner 8 months ago
parent
commit
2f1379d3ad
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      www/js/home.js
  2. +2
    -2
      www/pages/home.html

+ 1
- 1
www/js/home.js View File

@@ -83,7 +83,7 @@ function loadNotesToCards(notes, oldnotes, callback) {
continue;
}
if (reloadCards) {
$("#notecards-bin").append('<div class="col-100 tablet-50 desktop-33 notecard-col grid-item" id="notecard-col-' + note.noteid + '" data-favorite="' + (note.favorite ? "1" : "0") + '">'
$("#notecards-bin").append('<div class="col-100 medium-50 large-33 notecard-col grid-item" id="notecard-col-' + note.noteid + '" data-favorite="' + (note.favorite ? "1" : "0") + '">'
+ '<div class="card notecard" id="notecard-' + note.getID() + '" data-id="' + note.getID() + '" data-favorite="' + (note.getFavorite() ? "1" : "0") + '" data-bg="' + note.getColor() + '" data-fg="' + note.getTextColor() + '" style="background-color: #' + note.getColor() + '; color: #' + note.getTextColor() + ';">'
+ '<div class="editbtn">'
+ '<i class="material-icons">edit</i>'


+ 2
- 2
www/pages/home.html View File

@@ -50,9 +50,9 @@
</div>

<div class="row notecards-row" id="notecards-bin">
<div class="col-100 tablet-50 desktop-33" style="visibility: hidden;" id="notecard-col-sizer">
<div class="col-100 medium-50 large-33" style="visibility: hidden;" id="notecard-col-sizer">
</div>
<div class="col-100 tablet-50 desktop-33 grid-item" style="display: none;" id="offline-indicator">
<div class="col-100 medium-50 large-33 grid-item" style="display: none;" id="offline-indicator">
<div class="card">
<div class="card-content card-content-padding text-align-center text-color-gray">
<div><i class="material-icons" style="font-size: 40pt;">cloud_off</i></div>


Loading…
Cancel
Save