Replace ImageAttachmentStrip with AttachmentStrip in App.jsx

This commit is contained in:
2026-04-17 13:03:27 +02:00
parent f34aa9b150
commit ab2424dbd8

View File

@@ -3178,7 +3178,7 @@ async function createNewChat() {
<div className="user-message-wrapper"> <div className="user-message-wrapper">
{isEditingThis ? ( {isEditingThis ? (
<> <>
<ImageAttachmentStrip attachments={m.attachments} className="message-attachment-strip" /> <AttachmentStrip attachments={m.attachments} className="message-attachment-strip" />
<div className="msg-content msg-content--user editing"> <div className="msg-content msg-content--user editing">
<div className="user-edit-shadow" aria-hidden="true"> <div className="user-edit-shadow" aria-hidden="true">
{editText} {editText}
@@ -3211,7 +3211,7 @@ async function createNewChat() {
return ( return (
<> <>
<ImageAttachmentStrip attachments={attachments} className="message-attachment-strip" /> <AttachmentStrip attachments={attachments} className="message-attachment-strip" />
{hasText && <div className="msg-content msg-content--user">{displayText}</div>} {hasText && <div className="msg-content msg-content--user">{displayText}</div>}
{hasText && needsCollapse && ( {hasText && needsCollapse && (
<button <button
@@ -3266,7 +3266,7 @@ async function createNewChat() {
onChange={handleComposerImageSelection} onChange={handleComposerImageSelection}
tabIndex={-1} tabIndex={-1}
/> />
<ImageAttachmentStrip <AttachmentStrip
attachments={composerAttachments} attachments={composerAttachments}
className="composer-attachment-strip" className="composer-attachment-strip"
removable removable