css fixes

This commit is contained in:
Joachim Happel 2024-06-04 10:24:26 +02:00
parent 87d6f42f0b
commit 032efa8262
2 changed files with 5 additions and 5 deletions

View file

@ -125,7 +125,7 @@
border: none; border: none;
border-radius: 4px; border-radius: 4px;
cursor: pointer; cursor: pointer;
max-width: 200px; max-width: 110px;
} }
.media-modal #openModal { .media-modal #openModal {
position: fixed; position: fixed;

View file

@ -10,7 +10,7 @@
captionFields.forEach(field => { captionFields.forEach(field => {
if (field.length && !field.next('#openModal').length) { if (field.length && !field.next('#openModal').length) {
const buttonHtml = '<div id="openModal" class="bg-blue-500 text-white px-4 py-2 rounded-md">Bild Metarechte bearbeiten</div>'; const buttonHtml = '<div id="openModal" class="bg-blue-500 text-white px-4 py-2 rounded-md">Bildrechte</div>';
field.after(buttonHtml); field.after(buttonHtml);
} }
}); });
@ -19,7 +19,7 @@
$('#attachment_caption').ready(positionButton); $('#attachment_caption').ready(positionButton);
// Event-Listener für das Öffnen der Mediathek // 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 setTimeout(positionButton, 1); // Warte, bis die Mediathek geladen ist
}); });
@ -77,10 +77,10 @@
const licenseUrl = $('#licenseUrl').val(); const licenseUrl = $('#licenseUrl').val();
// Erstellen des neuen HTML-Snippets für die Bildbeschriftung // Erstellen des neuen HTML-Snippets für die Bildbeschriftung
let newCaption = `<a href="${imageSourceUrl}" target="_blank" rel="noreferrer noopener">${imageTitle}</a>`; let newCaption = `<a href="${imageSourceUrl}" target="_blank" rel="noreferrer noopener">${imageTitle}</a> |`;
if (imageAuthor) { if (imageAuthor) {
newCaption += ` von: <a href="${authorImageUrl}" target="_blank" rel="noreferrer noopener">${imageAuthor}</a>`; newCaption += ` von: <a href="${authorImageUrl}" target="_blank" rel="noreferrer noopener">${imageAuthor}</a> |`;
} }
newCaption += ` Lizenz/Rechte: <a href="${licenseUrl}" target="_blank" rel="noreferrer noopener">${imageLicense}</a>`; newCaption += ` Lizenz/Rechte: <a href="${licenseUrl}" target="_blank" rel="noreferrer noopener">${imageLicense}</a>`;