fix(ui): neaten large text paste toast
Drop the grey description and info icon, and widen the toast so the title and two actions sit on one clean row. Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
This commit is contained in:
co-authored by
Serhii Dziupin
parent
ef11ab5b14
commit
471d0a8ecb
@@ -1829,8 +1829,8 @@ const ChatInputComponent: React.FC<ChatInputProps> = ({ onOpenSettings, scrollTo
|
||||
largeTextPasteToastIdRef.current = toast.info(
|
||||
t('chat.chatInput.toast.largeTextPaste.title'),
|
||||
{
|
||||
description: t('chat.chatInput.toast.largeTextPaste.description'),
|
||||
duration: Infinity,
|
||||
className: '!min-w-[22rem] !w-auto [&_[data-icon]]:!hidden',
|
||||
action: {
|
||||
label: t('chat.chatInput.toast.largeTextPaste.attach'),
|
||||
onClick: () => resolveLargePaste('attach'),
|
||||
|
||||
@@ -1965,7 +1965,6 @@ export const dict = {
|
||||
'chat.chatInput.toast.clipboardAttachFailed': 'Fehler beim Anhängen des Bildes aus der Zwischenablage',
|
||||
'chat.chatInput.toast.clipboardTextAttachFailed': 'Fehler beim Anhängen des eingefügten Texts als Datei',
|
||||
'chat.chatInput.toast.largeTextPaste.title': 'Großes Texteinfügen',
|
||||
'chat.chatInput.toast.largeTextPaste.description': 'Als Datei anhängen, um das Eingabefeld übersichtlich zu halten, oder den Text direkt einfügen.',
|
||||
'chat.chatInput.toast.largeTextPaste.attach': 'Als Datei anhängen',
|
||||
'chat.chatInput.toast.largeTextPaste.inline': 'Direkt einfügen',
|
||||
'chat.chatInput.toast.addedFileMentions': '{count} Datei(er) hinzugefügt',
|
||||
|
||||
@@ -2126,7 +2126,6 @@ export const dict = {
|
||||
'chat.chatInput.toast.clipboardAttachFailed': 'Failed to attach image from clipboard',
|
||||
'chat.chatInput.toast.clipboardTextAttachFailed': 'Failed to attach pasted text as a file',
|
||||
'chat.chatInput.toast.largeTextPaste.title': 'Large text paste',
|
||||
'chat.chatInput.toast.largeTextPaste.description': 'Attach as a file to keep the composer clear, or paste the text inline.',
|
||||
'chat.chatInput.toast.largeTextPaste.attach': 'Attach as file',
|
||||
'chat.chatInput.toast.largeTextPaste.inline': 'Paste inline',
|
||||
'chat.chatInput.toast.addedFileMentions': 'Added {count} file mention(s)',
|
||||
|
||||
@@ -2092,7 +2092,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
"chat.chatInput.toast.clipboardAttachFailed": "No se pudo adjuntar la imagen desde el portapapeles",
|
||||
"chat.chatInput.toast.clipboardTextAttachFailed": "No se pudo adjuntar el texto pegado como archivo",
|
||||
"chat.chatInput.toast.largeTextPaste.title": "Pegado de texto grande",
|
||||
"chat.chatInput.toast.largeTextPaste.description": "Adjunta como archivo para mantener el compositor despejado, o pega el texto en línea.",
|
||||
"chat.chatInput.toast.largeTextPaste.attach": "Adjuntar como archivo",
|
||||
"chat.chatInput.toast.largeTextPaste.inline": "Pegar en línea",
|
||||
"chat.chatInput.toast.addedFileMentions": "Se añadieron {count} mención(es) de archivo",
|
||||
|
||||
@@ -1895,7 +1895,6 @@ export const dict = {
|
||||
'chat.chatInput.toast.clipboardAttachFailed': 'Échec de la pièce jointe de l\'image du presse-papiers',
|
||||
'chat.chatInput.toast.clipboardTextAttachFailed': 'Échec de la pièce jointe du texte collé comme fichier',
|
||||
'chat.chatInput.toast.largeTextPaste.title': 'Collage de texte volumineux',
|
||||
'chat.chatInput.toast.largeTextPaste.description': 'Joindre comme fichier pour garder la zone de saisie claire, ou coller le texte en ligne.',
|
||||
'chat.chatInput.toast.largeTextPaste.attach': 'Joindre comme fichier',
|
||||
'chat.chatInput.toast.largeTextPaste.inline': 'Coller en ligne',
|
||||
'chat.chatInput.toast.addedFileMentions': 'Ajout des mentions du fichier {count}',
|
||||
|
||||
@@ -2122,7 +2122,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.chatInput.toast.clipboardAttachFailed': 'クリップボードからの画像添付に失敗しました',
|
||||
'chat.chatInput.toast.clipboardTextAttachFailed': '貼り付けたテキストのファイル添付に失敗しました',
|
||||
'chat.chatInput.toast.largeTextPaste.title': '大きなテキストの貼り付け',
|
||||
'chat.chatInput.toast.largeTextPaste.description': '入力欄をすっきり保つためにファイルとして添付するか、そのまま貼り付けます。',
|
||||
'chat.chatInput.toast.largeTextPaste.attach': 'ファイルとして添付',
|
||||
'chat.chatInput.toast.largeTextPaste.inline': 'そのまま貼り付け',
|
||||
'chat.chatInput.toast.addedFileMentions': '{count}件のファイルメンションを追加しました',
|
||||
|
||||
@@ -2126,7 +2126,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.chatInput.toast.clipboardAttachFailed': '클립보드 이미지 첨부 실패',
|
||||
'chat.chatInput.toast.clipboardTextAttachFailed': '붙여넣은 텍스트를 파일로 첨부하지 못했습니다',
|
||||
'chat.chatInput.toast.largeTextPaste.title': '긴 텍스트 붙여넣기',
|
||||
'chat.chatInput.toast.largeTextPaste.description': '입력창을 깔끔하게 유지하려면 파일로 첨부하거나, 본문에 붙여넣으세요.',
|
||||
'chat.chatInput.toast.largeTextPaste.attach': '파일로 첨부',
|
||||
'chat.chatInput.toast.largeTextPaste.inline': '본문에 붙여넣기',
|
||||
'chat.chatInput.toast.addedFileMentions': '파일 멘션 {count}개 추가됨',
|
||||
|
||||
@@ -1223,7 +1223,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.chatInput.toast.clipboardAttachFailed': 'Nie udało się dołączyć obrazu ze schowka',
|
||||
'chat.chatInput.toast.clipboardTextAttachFailed': 'Nie udało się dołączyć wklejonego tekstu jako pliku',
|
||||
'chat.chatInput.toast.largeTextPaste.title': 'Wklejanie dużego tekstu',
|
||||
'chat.chatInput.toast.largeTextPaste.description': 'Dołącz jako plik, aby nie zaśmiecać pola wiadomości, albo wklej tekst w treści.',
|
||||
'chat.chatInput.toast.largeTextPaste.attach': 'Dołącz jako plik',
|
||||
'chat.chatInput.toast.largeTextPaste.inline': 'Wklej w treści',
|
||||
'chat.chatInput.toast.compactFailed': 'Nie udało się skompaktować sesji',
|
||||
|
||||
@@ -2092,7 +2092,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
"chat.chatInput.toast.clipboardAttachFailed": "Não foi possível anexar a imagem da área de transferência",
|
||||
"chat.chatInput.toast.clipboardTextAttachFailed": "Não foi possível anexar o texto colado como arquivo",
|
||||
"chat.chatInput.toast.largeTextPaste.title": "Colagem de texto grande",
|
||||
"chat.chatInput.toast.largeTextPaste.description": "Anexe como arquivo para manter o compositor limpo, ou cole o texto no corpo da mensagem.",
|
||||
"chat.chatInput.toast.largeTextPaste.attach": "Anexar como arquivo",
|
||||
"chat.chatInput.toast.largeTextPaste.inline": "Colar no corpo",
|
||||
"chat.chatInput.toast.addedFileMentions": "Foram adicionadas {count} menção(es) de arquivo",
|
||||
|
||||
@@ -2092,7 +2092,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
"chat.chatInput.toast.clipboardAttachFailed": "Не вдалося вкласти зображення з буфера обміну",
|
||||
"chat.chatInput.toast.clipboardTextAttachFailed": "Не вдалося долучити вставлений текст як файл",
|
||||
"chat.chatInput.toast.largeTextPaste.title": "Вставлення великого тексту",
|
||||
"chat.chatInput.toast.largeTextPaste.description": "Долучіть як файл, щоб не захаращувати поле вводу, або вставте текст у повідомлення.",
|
||||
"chat.chatInput.toast.largeTextPaste.attach": "Долучити як файл",
|
||||
"chat.chatInput.toast.largeTextPaste.inline": "Вставити в повідомлення",
|
||||
"chat.chatInput.toast.addedFileMentions": "Додано згадки файлів {count}",
|
||||
|
||||
@@ -2092,7 +2092,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.chatInput.toast.clipboardAttachFailed': '从剪贴板附加图片失败',
|
||||
'chat.chatInput.toast.clipboardTextAttachFailed': '无法将粘贴的文本附加为文件',
|
||||
'chat.chatInput.toast.largeTextPaste.title': '粘贴大段文本',
|
||||
'chat.chatInput.toast.largeTextPaste.description': '附加为文件以保持输入框简洁,或直接粘贴到输入框。',
|
||||
'chat.chatInput.toast.largeTextPaste.attach': '附加为文件',
|
||||
'chat.chatInput.toast.largeTextPaste.inline': '直接粘贴',
|
||||
'chat.chatInput.toast.addedFileMentions': '已添加 {count} 个文件提及',
|
||||
|
||||
@@ -2096,7 +2096,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.chatInput.toast.clipboardAttachFailed': '從剪貼簿附加圖片失敗',
|
||||
'chat.chatInput.toast.clipboardTextAttachFailed': '無法將貼上的文字附加為檔案',
|
||||
'chat.chatInput.toast.largeTextPaste.title': '貼上大段文字',
|
||||
'chat.chatInput.toast.largeTextPaste.description': '附加為檔案以保持輸入框簡潔,或直接貼到輸入框。',
|
||||
'chat.chatInput.toast.largeTextPaste.attach': '附加為檔案',
|
||||
'chat.chatInput.toast.largeTextPaste.inline': '直接貼上',
|
||||
'chat.chatInput.toast.addedFileMentions': '已加入 {count} 個檔案提及',
|
||||
|
||||
Reference in New Issue
Block a user