share dialog styling improvements

This commit is contained in:
Vinzenz
2016-06-04 01:13:46 +02:00
parent 6fa9b3c512
commit bc6235720b
3 changed files with 10 additions and 2 deletions

View File

@@ -155,12 +155,17 @@ div[data-placeholder]:not([data-placeholder=""]):empty::before {
#note-share-options { #note-share-options {
display: none; display: none;
padding-bottom: 5px;
} }
.selected-share:hover, .unselected-share:hover { .selected-share:hover, .unselected-share:hover, .unselected-share span:hover {
cursor: pointer; cursor: pointer;
} }
.selected-share, .unselected-share {
padding-left: 5px;
}
/* Modal Content */ /* Modal Content */
.modal-content { .modal-content {

View File

@@ -434,7 +434,8 @@ View.prototype = {
shareOptions.show(); shareOptions.show();
var modalNote = $('.note-active'); var modalNote = $('.note-active');
modalNote.outerHeight(modalNote.outerHeight(true) + shareOptions.outerHeight(true)); var startHeight = modalNote.outerHeight(true);
modalNote.outerHeight(startHeight + shareOptions.outerHeight(true));
sear.on('input', function() { sear.on('input', function() {
var val = $(this).val().toLowerCase().trim(); var val = $(this).val().toLowerCase().trim();
var lis = neg.children(); var lis = neg.children();
@@ -449,6 +450,7 @@ View.prototype = {
} }
} }
} }
modalNote.outerHeight(startHeight + shareOptions.outerHeight(true));
}); });
}); });
}); });

View File

@@ -10,6 +10,7 @@
<button id='cancel-button'><?php p($l->t('Cancel')); ?></button> <button id='cancel-button'><?php p($l->t('Cancel')); ?></button>
<button id='save-button'><?php p($l->t('Save')); ?></button> <button id='save-button'><?php p($l->t('Save')); ?></button>
</div> </div>
<div style="clear: both;"></div>
<div id="note-share-options"> <div id="note-share-options">
<ul id="share-pos"> <ul id="share-pos">
</ul> </ul>