Auto-deploy: 2026-05-26 17:51:21

This commit is contained in:
Hamza-Ayed
2026-05-26 17:51:21 +03:00
parent 1711d5ec1d
commit 64bd970d9a
2 changed files with 7 additions and 4 deletions

View File

@@ -100,6 +100,8 @@
const existing = postEl.querySelector('.' + BOX_CLASS);
if (existing) existing.remove();
const isRTL = /[\u0600-\u06FF]/.test(commentText);
const box = document.createElement('div');
box.className = BOX_CLASS;
box.innerHTML = `
@@ -116,8 +118,8 @@
</div>
<textarea
class="lja-cb-text"
dir="ltr"
style="text-align: left; font-family: monospace; font-size: 13px;"
dir="${isRTL ? 'rtl' : 'ltr'}"
style="text-align: ${isRTL ? 'right' : 'left'}; font-family: monospace; font-size: 13px;"
>${commentText}</textarea>
<div class="lja-cb-actions">
<button class="lja-cb-copy">📋 Copy</button>