Restrict note container resizing to embedded notes
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user