diff --git a/appinfo/info.xml b/appinfo/info.xml index 694e3d3..957bd1a 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ Quick notes with text, check lists and pictures AGPL Matias De lellis - 0.1.1 + 0.1.2 QuickNotes tool https://github.com/matiasdelellis @@ -14,6 +14,6 @@ 174716 - + diff --git a/css/style.css b/css/style.css index 812e951..820f5d2 100644 --- a/css/style.css +++ b/css/style.css @@ -51,10 +51,6 @@ /*width: 100%;*/ } -.note-active #content-editable { -/* margin-bottom: 60px;*/ -} - .save-button #unshare-button { display: none; } @@ -74,6 +70,10 @@ /* Grid Note */ +#div-content { + width: 100%; +} + #div-content .note-title { font-size: 18px; font-weight: bold; @@ -82,6 +82,11 @@ overflow: hidden; } + +.note-content { + margin: 4px; +} + #div-content .shared-title, #div-content .shared-title-owner, #div-content .icon-delete-note { @@ -110,6 +115,8 @@ width:20px; height:20px; min-width: 20px; + min-height: 16px; + padding: unset; border-radius:10px; border: 1px solid rgba(0, 0, 0, 0.2); } @@ -157,8 +164,17 @@ } #content-editable { + width: 100%; min-height: 50px; word-wrap: break-word; + background: none; + border: none; +} + +#title-editable { + width: 100%; + background: none; + border: none; } .note-options { diff --git a/js/script.js b/js/script.js index 2c99481..69a8a91 100644 --- a/js/script.js +++ b/js/script.js @@ -1,11 +1,11 @@ /** - * ownCloud - quicknotes + * NextCloud/ownCloud - quicknotes * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Matias De lellis - * @copyright Matias De lellis 2016-2017 + * @copyright Matias De lellis 2016-2018 */ (function (OC, window, $, undefined) { @@ -248,19 +248,11 @@ View.prototype = { buttons: [ 'bold', 'italic', - { - name: 'h1', - action: 'append-h2', - aria: 'header type 1', - tagNames: ['h2'], - contentDefault: 'H', - attrs: { - 'data-custom-attr': 'attr-value-h1' - } - }, - 'justifyLeft', 'justifyCenter', 'justifyRight', + 'underline', + 'strikethrough', 'unorderedlist','orderedlist', - 'quote' + 'quote', + 'removeFormat' ] }, autoLink: true, diff --git a/templates/part.navigation.php b/templates/part.navigation.php index 8535b33..7034eb1 100644 --- a/templates/part.navigation.php +++ b/templates/part.navigation.php @@ -6,8 +6,10 @@ t('New note'));?> t('All notes')); ?> + t('Colors')); ?> @@ -27,6 +29,7 @@ {{#each notes}} {{{ title }}} + {{/each}} diff --git a/templates/part.note-modal-editable.php b/templates/part.note-modal-editable.php index dccb146..1965180 100644 --- a/templates/part.note-modal-editable.php +++ b/templates/part.note-modal-editable.php @@ -5,11 +5,14 @@ + t('Cancel')); ?> t('Save')); ?> +