Restrict note container resizing to embedded notes

This commit is contained in:
BrokenEagle
2020-02-21 19:58:23 +00:00
parent 9c6ef424ef
commit 2b0d52b5bb

View File

@@ -174,9 +174,11 @@ let Note = {
if (was_visible) {
container.style.display = 'block';
}
const $image = $("#image");
const percentage = 100 * ($image.width() / parseFloat($image.data('large-width')));
$(container).css('font-size', percentage + '%');
if (Note.embed) {
const $image = $("#image");
const percentage = 100 * ($image.width() / parseFloat($image.data('large-width')));
$(container).css('font-size', percentage + '%');
}
},
toggle_all: function() {