diff --git a/src/public/javascripts/services/mobile.js b/src/public/javascripts/services/mobile.js index 6f544b9cb..bde1bdbcc 100644 --- a/src/public/javascripts/services/mobile.js +++ b/src/public/javascripts/services/mobile.js @@ -46,6 +46,24 @@ async function showTree() { }, clones: { highlightActiveClones: true + }, + renderNode: function (event, data) { + const node = data.node; + const $nodeSpan = $(node.span); + + // check if span of node already rendered + if (!$nodeSpan.data('rendered')) { + const addNoteButton = $(''); + + addNoteButton.click(() => { + alert("Add new note"); + }); + + $nodeSpan.append(addNoteButton); + + // span rendered + $nodeSpan.data('rendered', true); + } } }); diff --git a/src/public/stylesheets/mobile.css b/src/public/stylesheets/mobile.css index e30d5742e..dbd97c9ee 100644 --- a/src/public/stylesheets/mobile.css +++ b/src/public/stylesheets/mobile.css @@ -16,6 +16,12 @@ html, body { overflow: auto; } +#tree .action-button { + position: relative; + top: -5px; + margin-left: 10px; +} + #detail { padding: 20px 20px 10px 35px; height: 100%; diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 3ce3a6b93..14a804dc8 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -619,13 +619,12 @@ table.promoted-attributes-in-tooltip td, table.promoted-attributes-in-tooltip th cursor: pointer; } -.modalless { - top: 15%; - left: 40%; - bottom: auto; - right: auto; - margin-left: -300px !important; -} +/*.modalless {*/ + /*top: 15%;*/ + /*left: 40%;*/ + /*bottom: auto;*/ + /*right: auto;*/ +/*}*/ .multiplicity { font-size: 1.3em; diff --git a/src/views/dialogs/protected_session_password.ejs b/src/views/dialogs/protected_session_password.ejs index 804ff138a..8ff50faa9 100644 --- a/src/views/dialogs/protected_session_password.ejs +++ b/src/views/dialogs/protected_session_password.ejs @@ -1,5 +1,5 @@