diff --git a/css/style.css b/css/style.css index 38ce93c..e76bdc9 100644 --- a/css/style.css +++ b/css/style.css @@ -125,7 +125,7 @@ border: none; border-radius: 4px; cursor: pointer; - max-width: 200px; + max-width: 110px; } .media-modal #openModal { position: fixed; diff --git a/js/image-rights-html-generator.js b/js/image-rights-html-generator.js index 7d4cff6..babdd77 100644 --- a/js/image-rights-html-generator.js +++ b/js/image-rights-html-generator.js @@ -10,7 +10,7 @@ captionFields.forEach(field => { if (field.length && !field.next('#openModal').length) { - const buttonHtml = '
Bild Metarechte bearbeiten
'; + const buttonHtml = '
Bildrechte
'; field.after(buttonHtml); } }); @@ -19,7 +19,7 @@ $('#attachment_caption').ready(positionButton); // Event-Listener für das Öffnen der Mediathek - $(document).on('click change focus keydown mousedown', '.attachment, .upload-files-button, .attachment-info, .media-button, .edit-attachment', function() { + $(document).on('click change focus keydown mousedown resize', '.media-modal .attachment, .upload-files-button, .attachment-info, .media-button, .edit-attachment', function() { setTimeout(positionButton, 1); // Warte, bis die Mediathek geladen ist }); @@ -77,10 +77,10 @@ const licenseUrl = $('#licenseUrl').val(); // Erstellen des neuen HTML-Snippets für die Bildbeschriftung - let newCaption = `${imageTitle}`; + let newCaption = `${imageTitle} |`; if (imageAuthor) { - newCaption += ` von: ${imageAuthor}`; + newCaption += ` von: ${imageAuthor} |`; } newCaption += ` Lizenz/Rechte: ${imageLicense}`;