diff --git a/css/style.scss b/css/style.scss index 5f05c50..23cc29b 100644 --- a/css/style.scss +++ b/css/style.scss @@ -34,11 +34,10 @@ min-height: 150px; width: 250px; border-radius: 8px; - box-shadow: 0 4px 6px #c1c1c1; } .quicknote:hover { - box-shadow: 0px 0px 6px #808080; + box-shadow: 0px 0px 4px #808080; } #title-editable:empty:before { @@ -95,11 +94,9 @@ } #div-content .note-title { - margin-right: 52px; font-size: 18px; font-weight: bold; - text-overflow: ellipsis; - overflow: hidden; + overflow-wrap: break-word; } .note-content { @@ -117,8 +114,9 @@ background-size: 22px; min-width: 28px; min-height: 28px; - opacity: 0.54; border-radius: 50%; + -moz-transition: opacity 0.218s ease-in; + transition: opacity 0.218s ease-in; } .icon-header-note:hover { @@ -127,12 +125,12 @@ } .hide-header-icon { - display: none; + opacity: 0; } .fixed-header-icon, .show-header-icon { - display: block; + opacity: 0.54; } .noselect { @@ -227,7 +225,7 @@ div[contenteditable="true"] { } #title-editable { - width: 90%; + width: 100%; background: none; color: unset; border: none; diff --git a/js/qn-colorpick.js b/js/qn-colorpick.js index c2787f5..0a6e3ca 100644 --- a/js/qn-colorpick.js +++ b/js/qn-colorpick.js @@ -1,3 +1,24 @@ +/* + * @copyright 2022 Matias De lellis + * + * @author 2022 Matias De lellis + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + 'use strict'; function QnColorPick(parentSelector, onSelectColor) { diff --git a/js/script.js b/js/script.js index ef7c6f2..47efd03 100644 --- a/js/script.js +++ b/js/script.js @@ -361,7 +361,7 @@ View.prototype = { $('#notes-grid-div').on("click", ".icon-delete-note", function (event) { event.stopPropagation(); - var gridnote = $(this).parent().parent().parent(); + var gridnote = $(this).parent().parent(); var id = parseInt(gridnote.attr('data-id'), 10); var note = self._notes.read(id); @@ -408,7 +408,7 @@ View.prototype = { event.stopPropagation(); var icon = $(this); - var gridNote = icon.parent().parent().parent(); + var gridNote = icon.parent().parent(); var id = parseInt(gridNote.attr('data-id'), 10); var note = self._notes.read(id); @@ -432,7 +432,7 @@ View.prototype = { event.stopPropagation(); var icon = $(this); - var gridNote = icon.parent().parent().parent(); + var gridNote = icon.parent().parent(); var id = parseInt(gridNote.attr('data-id'), 10); var note = self._notes.read(id); diff --git a/js/templates/note-item.handlebars b/js/templates/note-item.handlebars index bc23b76..d6166a4 100644 --- a/js/templates/note-item.handlebars +++ b/js/templates/note-item.handlebars @@ -10,16 +10,14 @@
-
- {{#if isPinned}} -
- {{else}} -
- {{/if}} -
-
- {{{ title }}} -
+ {{#if isPinned}} +
+ {{else}} +
+ {{/if}} +
+
+ {{{ title }}}
{{{ content }}} diff --git a/js/templates/notes.handlebars b/js/templates/notes.handlebars index d4886e0..fcd09f6 100644 --- a/js/templates/notes.handlebars +++ b/js/templates/notes.handlebars @@ -13,21 +13,19 @@
-
- {{#if sharedBy}} -
-
+ {{#if sharedBy}} +
+
+ {{else}} + {{#if isPinned}} +
{{else}} - {{#if isPinned}} -
- {{else}} -
- {{/if}} -
+
{{/if}} -
- {{{ title }}} -
+
+ {{/if}} +
+ {{{ title }}}
{{{ content }}} @@ -56,10 +54,8 @@
-
-
-
-
+
+