From b3805123b59dcb8706fc71f987ee58c1e4f2e635 Mon Sep 17 00:00:00 2001 From: h Date: Mon, 19 Oct 2026 03:45:23 +0000 Subject: [PATCH] fix(frontend): english storage and policy labels fit on mobile, phone placeholder no longer peeks out from under its label --- .../src/lib/components/disk/ScopeFiles.svelte | 3 ++- .../components/settings/AddAccountDialog.svelte | 4 ++++ frontend/src/lib/i18n/messages/policy.ts | 2 +- frontend/src/lib/i18n/messages/storage.ts | 17 ++++++++--------- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/frontend/src/lib/components/disk/ScopeFiles.svelte b/frontend/src/lib/components/disk/ScopeFiles.svelte index 2719e6c..2513481 100644 --- a/frontend/src/lib/components/disk/ScopeFiles.svelte +++ b/frontend/src/lib/components/disk/ScopeFiles.svelte @@ -14,7 +14,7 @@ import Icon from "#lib/components/ui/Icon.svelte"; import { formatBytes } from "#lib/format/media.js"; import { filesLabel } from "#lib/format/storage.js"; - import { t } from "#lib/i18n/locale.svelte.js"; + import { locale, t } from "#lib/i18n/locale.svelte.js"; import type { MessageKey } from "#lib/i18n/messages.js"; interface Props { @@ -164,6 +164,7 @@ {t("storage.scope.kept", { count: files.kept, files: filesLabel(files.kept), + n: files.kept.toLocaleString(locale.tag), })} {/if} diff --git a/frontend/src/lib/components/settings/AddAccountDialog.svelte b/frontend/src/lib/components/settings/AddAccountDialog.svelte index 217b6ec..3e515aa 100644 --- a/frontend/src/lib/components/settings/AddAccountDialog.svelte +++ b/frontend/src/lib/components/settings/AddAccountDialog.svelte @@ -248,6 +248,10 @@ color: var(--color-text-secondary); } + .form-control:not(:focus)::placeholder { + color: transparent; + } + .qr-slot { display: grid; place-items: center; diff --git a/frontend/src/lib/i18n/messages/policy.ts b/frontend/src/lib/i18n/messages/policy.ts index 1831000..af363a3 100644 --- a/frontend/src/lib/i18n/messages/policy.ts +++ b/frontend/src/lib/i18n/messages/policy.ts @@ -134,7 +134,7 @@ export const policy = { }, "policy.toggle.reactions": { en: "Reactions", ru: "Реакции" }, "policy.toggle.self_destruct_media": { - en: "Disappearing media", + en: "Disappearing", ru: "Исчезающие", }, "policy.toggle.stories": { en: "Stories", ru: "Сторис" }, diff --git a/frontend/src/lib/i18n/messages/storage.ts b/frontend/src/lib/i18n/messages/storage.ts index e947870..c451be3 100644 --- a/frontend/src/lib/i18n/messages/storage.ts +++ b/frontend/src/lib/i18n/messages/storage.ts @@ -6,11 +6,11 @@ export const storage = { ru: "Файл занят в сторис или аватаре и остался на диске", }, "storage.cantRefetch": { - en: "{count} can't be downloaded again", + en: "{count} can't be redownloaded", ru: "{count} не скачать заново", }, "storage.chatFiles": { en: "All chat files", ru: "Все файлы чата" }, - "storage.deselect": { en: "Deselect", ru: "Снять" }, + "storage.deselect": { en: "Clear", ru: "Снять" }, "storage.empty.all": { en: "No downloaded files on disk.", ru: "На диске нет скачанных файлов.", @@ -37,7 +37,7 @@ export const storage = { en: "{size} will be freed in 7 days", ru: "{size} освободится через 7 дней", }, - "storage.gone": { en: "Can't be downloaded again", ru: "Не скачать заново" }, + "storage.gone": { en: "Can't be redownloaded", ru: "Не скачать заново" }, "storage.group.audio": { en: "Audio", ru: "Аудио" }, "storage.group.file": { en: "Files", ru: "Файлы" }, "storage.group.other": { en: "Photos and other", ru: "Фото и прочее" }, @@ -121,13 +121,13 @@ export const storage = { ru: "{size} уже скачано", }, "storage.scope.gone": { - en: "{count} of them can't be downloaded again", + en: "{count} of them can't be redownloaded", ru: "{count} из них потом не скачать заново", }, "storage.scope.kept": { en: { - one: "{files} more is in other chats too, it will stay", - other: "{files} more are in other chats too, they will stay", + one: "{n} more file is in other chats too and will stay", + other: "{n} more files are in other chats too and will stay", }, ru: { few: "Ещё {files} есть и в других чатах, они останутся", @@ -176,9 +176,8 @@ export const storage = { "storage.trash.empty": { en: "The trash is empty.", ru: "Корзина пуста." }, "storage.trash.goneWarn": { en: { - one: "{files} can't be downloaded again: it's no longer in Telegram.", - other: - "{files} can't be downloaded again: they're no longer in Telegram.", + one: "{files} can't be redownloaded: it's no longer in Telegram.", + other: "{files} can't be redownloaded: they're no longer in Telegram.", }, ru: { few: "{files} скачать заново нельзя: в Telegram их уже нет.",