Unify attachment display and enable file uploads on all platforms (#1501)

Attachment pills were drawn by four separate style sets, so files,
images, GitHub items, and reviews rendered at different heights in the
same tray. Move the frame, the two-line label, and the image thumbnail
into shared components so every attachment lines up at one height,
across both the composer and sent messages.

Sent-message images now open the lightbox, and file uploads work on
iOS and Android via expo-document-picker instead of being gated to
desktop.
This commit is contained in:
Mohamed Boudra
2026-06-13 10:18:39 +08:00
committed by GitHub
parent a5c4ba4d89
commit ef750e0a85
15 changed files with 358 additions and 219 deletions
+6 -3
View File
@@ -110,7 +110,7 @@ export const ru: TranslationResources = {
removeFile: "Remove file attachment",
openGithub: "Открыть{{kind}}#{{number}}",
removeGithub: "Удалить{{kind}}#{{number}}",
browserElement: "Элемент ·{{tag}}",
element: "Элемент",
openBrowserElement: "Открыть вложение элемента браузера",
removeBrowserElement: "Удалить вложение элемента браузера",
openReview: "Открыть прикрепленный файл с отзывом",
@@ -257,9 +257,12 @@ export const ru: TranslationResources = {
imageUnavailable: "Изображение недоступно",
imagePreviewUnavailable: "Предварительный просмотр изображения недоступен.",
imagePreviewLoadFailed: "Невозможно загрузить предварительный просмотр изображения.",
reviewOne: "Отзыв · 1 комментарий",
reviewMany: "Обзор · Комментарии{{count}}",
review: "Ревью",
commentsOne: "1 комментарий",
commentsMany: "Комментарии: {{count}}",
textAttachment: "Текстовое вложение",
text: "Текст",
file: "Файл",
},
speak: {
header: "Говорил",