fix(frontend): english storage and policy labels fit on mobile, phone placeholder no longer peeks out from under its label

This commit is contained in:
hh committed 2026-10-19 03:53:08 +00:00
1 parent 896b89f3b0
commit b3805123b5
4 files changed
+15 -11

No files matched your search

@@ -14,7 +14,7 @@
import Icon from "#lib/components/ui/Icon.svelte"; import Icon from "#lib/components/ui/Icon.svelte";
import { formatBytes } from "#lib/format/media.js"; import { formatBytes } from "#lib/format/media.js";
import { filesLabel } from "#lib/format/storage.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"; import type { MessageKey } from "#lib/i18n/messages.js";
interface Props { interface Props {
@@ -164,6 +164,7 @@
{t("storage.scope.kept", { {t("storage.scope.kept", {
count: files.kept, count: files.kept,
files: filesLabel(files.kept), files: filesLabel(files.kept),
n: files.kept.toLocaleString(locale.tag),
})} })}
</small> </small>
{/if} {/if}
@@ -248,6 +248,10 @@
color: var(--color-text-secondary); color: var(--color-text-secondary);
} }
.form-control:not(:focus)::placeholder {
color: transparent;
}
.qr-slot { .qr-slot {
display: grid; display: grid;
place-items: center; place-items: center;
+1 -1
View File
@@ -134,7 +134,7 @@ export const policy = {
}, },
"policy.toggle.reactions": { en: "Reactions", ru: "Реакции" }, "policy.toggle.reactions": { en: "Reactions", ru: "Реакции" },
"policy.toggle.self_destruct_media": { "policy.toggle.self_destruct_media": {
en: "Disappearing media", en: "Disappearing",
ru: "Исчезающие", ru: "Исчезающие",
}, },
"policy.toggle.stories": { en: "Stories", ru: "Сторис" }, "policy.toggle.stories": { en: "Stories", ru: "Сторис" },
+8 -9
View File
@@ -6,11 +6,11 @@ export const storage = {
ru: "Файл занят в сторис или аватаре и остался на диске", ru: "Файл занят в сторис или аватаре и остался на диске",
}, },
"storage.cantRefetch": { "storage.cantRefetch": {
en: "{count} can't be downloaded again", en: "{count} can't be redownloaded",
ru: "{count} не скачать заново", ru: "{count} не скачать заново",
}, },
"storage.chatFiles": { en: "All chat files", ru: "Все файлы чата" }, "storage.chatFiles": { en: "All chat files", ru: "Все файлы чата" },
"storage.deselect": { en: "Deselect", ru: "Снять" }, "storage.deselect": { en: "Clear", ru: "Снять" },
"storage.empty.all": { "storage.empty.all": {
en: "No downloaded files on disk.", en: "No downloaded files on disk.",
ru: "На диске нет скачанных файлов.", ru: "На диске нет скачанных файлов.",
@@ -37,7 +37,7 @@ export const storage = {
en: "{size} will be freed in 7 days", en: "{size} will be freed in 7 days",
ru: "{size} освободится через 7 дней", 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.audio": { en: "Audio", ru: "Аудио" },
"storage.group.file": { en: "Files", ru: "Файлы" }, "storage.group.file": { en: "Files", ru: "Файлы" },
"storage.group.other": { en: "Photos and other", ru: "Фото и прочее" }, "storage.group.other": { en: "Photos and other", ru: "Фото и прочее" },
@@ -121,13 +121,13 @@ export const storage = {
ru: "{size} уже скачано", ru: "{size} уже скачано",
}, },
"storage.scope.gone": { "storage.scope.gone": {
en: "{count} of them can't be downloaded again", en: "{count} of them can't be redownloaded",
ru: "{count} из них потом не скачать заново", ru: "{count} из них потом не скачать заново",
}, },
"storage.scope.kept": { "storage.scope.kept": {
en: { en: {
one: "{files} more is in other chats too, it will stay", one: "{n} more file is in other chats too and will stay",
other: "{files} more are in other chats too, they will stay", other: "{n} more files are in other chats too and will stay",
}, },
ru: { ru: {
few: "Ещё {files} есть и в других чатах, они останутся", few: "Ещё {files} есть и в других чатах, они останутся",
@@ -176,9 +176,8 @@ export const storage = {
"storage.trash.empty": { en: "The trash is empty.", ru: "Корзина пуста." }, "storage.trash.empty": { en: "The trash is empty.", ru: "Корзина пуста." },
"storage.trash.goneWarn": { "storage.trash.goneWarn": {
en: { en: {
one: "{files} can't be downloaded again: it's no longer in Telegram.", one: "{files} can't be redownloaded: it's no longer in Telegram.",
other: other: "{files} can't be redownloaded: they're no longer in Telegram.",
"{files} can't be downloaded again: they're no longer in Telegram.",
}, },
ru: { ru: {
few: "{files} скачать заново нельзя: в Telegram их уже нет.", few: "{files} скачать заново нельзя: в Telegram их уже нет.",