fix: Portrait abgeschnitten wenn Text danach kommt
- overflow: hidden → visible (bild wurde abgeschnitten) - max-width: 400px auf Container statt auf img (sauberere Größenkontrolle) - border-radius angepasst: 16px oben, 0 unten (Caption darunter)
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
+8
-6
@@ -83,8 +83,8 @@
|
||||
{% endif %}
|
||||
{% for h in history %}
|
||||
{% if '[PORTRAIT]' in h.content %}
|
||||
<div class="msg msg-bot" style="padding: 0; overflow: hidden;">
|
||||
<img src="{{ h.content | replace('[PORTRAIT]', '') | replace('[/PORTRAIT]', '') }}?t={{ range(1000, 9999) | random }}" style="width: 100%; max-width: 400px; border-radius: 16px 16px 16px 4px; display: block;">
|
||||
<div class="msg msg-bot" style="padding: 0; overflow: visible; max-width: 400px;">
|
||||
<img src="{{ h.content | replace('[PORTRAIT]', '') | replace('[/PORTRAIT]', '') }}?t={{ range(1000, 9999) | random }}" style="width: 100%; border-radius: 16px 16px 0 0; display: block;">
|
||||
<div style="padding: 8px 12px; font-size: 0.8rem; color: var(--muted);">🖼️ Neues Portrait generiert</div>
|
||||
</div>
|
||||
{% else %}
|
||||
@@ -285,9 +285,10 @@
|
||||
if (portraitMatch) {
|
||||
div.className = 'msg msg-bot';
|
||||
div.style.padding = '0';
|
||||
div.style.overflow = 'hidden';
|
||||
div.style.overflow = 'visible';
|
||||
div.style.maxWidth = '400px';
|
||||
div.innerHTML = `
|
||||
<img src="${portraitMatch[1]}?t=${Date.now()}" style="width: 100%; max-width: 400px; border-radius: 16px 16px 16px 4px; display: block;">
|
||||
<img src="${portraitMatch[1]}?t=${Date.now()}" style="width: 100%; border-radius: 16px 16px 0 0; display: block;">
|
||||
<div style="padding: 8px 12px; font-size: 0.8rem; color: var(--muted);">🖼️ Neues Portrait generiert</div>
|
||||
`;
|
||||
} else {
|
||||
@@ -360,9 +361,10 @@
|
||||
const portraitMsg = document.createElement('div');
|
||||
portraitMsg.className = 'msg msg-bot';
|
||||
portraitMsg.style.padding = '0';
|
||||
portraitMsg.style.overflow = 'hidden';
|
||||
portraitMsg.style.overflow = 'visible';
|
||||
portraitMsg.style.maxWidth = '400px';
|
||||
portraitMsg.innerHTML = `
|
||||
<img src="${imgUrl}" style="width: 100%; max-width: 400px; border-radius: 16px 16px 16px 4px; display: block;">
|
||||
<img src="${imgUrl}" style="width: 100%; border-radius: 16px 16px 0 0; display: block;">
|
||||
<div style="padding: 8px 12px; font-size: 0.8rem; color: var(--muted);">🖼️ Neues Portrait generiert</div>
|
||||
`;
|
||||
chat.appendChild(portraitMsg);
|
||||
|
||||
Reference in New Issue
Block a user