Streamline admin reply composer

This commit is contained in:
rajchales-monito
2026-07-24 10:59:56 +02:00
parent f63fb539d6
commit e1d213186c
3 changed files with 69 additions and 34 deletions
+11 -5
View File
@@ -58,12 +58,18 @@
<form id="replyForm" class="reply hidden">
<div class="reply-composer">
<textarea name="message" rows="3" placeholder="Napsat odpoved..."></textarea>
<button type="submit" title="Odeslat">Odeslat</button>
<label class="reply-icon-button attach-button" title="Pridat fotku" aria-label="Pridat fotku">
<input name="attachments" type="file" accept=".jpg,.jpeg,.png,.webp,.gif,.avif,image/jpeg,image/png,image/webp,image/gif,image/avif" multiple>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M7.5 18.5a5 5 0 0 1 0-7.1l7.7-7.7a3.5 3.5 0 0 1 5 5l-8.4 8.4a2.1 2.1 0 0 1-3-3l7.8-7.8 1.4 1.4-7.8 7.8a.1.1 0 0 0 .1.1l8.4-8.4a1.5 1.5 0 0 0-2.1-2.1l-7.7 7.7a3 3 0 0 0 4.2 4.2l7.5-7.5 1.4 1.4-7.5 7.5a5 5 0 0 1-7 0Z"></path>
</svg>
</label>
<button class="reply-icon-button send-button" type="submit" title="Odeslat" aria-label="Odeslat">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M3.7 20.3 21 12 3.7 3.7l2.5 7.1L14 12l-7.8 1.2-2.5 7.1Z"></path>
</svg>
</button>
</div>
<label class="admin-dropzone" tabindex="0">
<input name="attachments" type="file" accept=".jpg,.jpeg,.png,.webp,.gif,.avif,image/jpeg,image/png,image/webp,image/gif,image/avif" multiple>
<span>Pridat fotky nebo pretahnout</span>
</label>
<div id="replyAttachments" class="reply-attachments"></div>
</form>
</section>