From 4cb8d54988fc490862b0fcae1fa7cbc86f29c77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Romero?= Date: Tue, 20 Oct 2026 14:27:14 +0200 Subject: [PATCH] fix: keep diagnostic text inside its row --- lang/de/LC_MESSAGES/flectar-mail.po | 2 +- lang/es/LC_MESSAGES/flectar-mail.po | 2 +- lang/flectar-mail.pot | 2 +- lang/fr/LC_MESSAGES/flectar-mail.po | 2 +- lang/ru/LC_MESSAGES/flectar-mail.po | 2 +- lang/tr/LC_MESSAGES/flectar-mail.po | 2 +- lang/zh_Hans/LC_MESSAGES/flectar-mail.po | 2 +- ui/components/copyable-diagnostic.slint | 5 +++++ 8 files changed, 12 insertions(+), 7 deletions(-) diff --git a/lang/de/LC_MESSAGES/flectar-mail.po b/lang/de/LC_MESSAGES/flectar-mail.po index 91ac1cbd..77ad19d2 100644 --- a/lang/de/LC_MESSAGES/flectar-mail.po +++ b/lang/de/LC_MESSAGES/flectar-mail.po @@ -1417,7 +1417,7 @@ msgstr "" msgid "Retry" msgstr "" -#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:38 +#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:43 msgid "Copy diagnostics" msgstr "" diff --git a/lang/es/LC_MESSAGES/flectar-mail.po b/lang/es/LC_MESSAGES/flectar-mail.po index 9e6a246a..b3b40e0c 100644 --- a/lang/es/LC_MESSAGES/flectar-mail.po +++ b/lang/es/LC_MESSAGES/flectar-mail.po @@ -1466,7 +1466,7 @@ msgstr "ID de diagnóstico {}" msgid "Retry" msgstr "Reintentar" -#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:38 +#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:43 msgid "Copy diagnostics" msgstr "Copiar datos de diagnóstico" diff --git a/lang/flectar-mail.pot b/lang/flectar-mail.pot index 04945ce8..3963472a 100644 --- a/lang/flectar-mail.pot +++ b/lang/flectar-mail.pot @@ -1424,7 +1424,7 @@ msgstr "" msgid "Retry" msgstr "" -#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:38 +#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:43 msgid "Copy diagnostics" msgstr "" diff --git a/lang/fr/LC_MESSAGES/flectar-mail.po b/lang/fr/LC_MESSAGES/flectar-mail.po index 02c5c7fc..fd3e29e2 100644 --- a/lang/fr/LC_MESSAGES/flectar-mail.po +++ b/lang/fr/LC_MESSAGES/flectar-mail.po @@ -1416,7 +1416,7 @@ msgstr "" msgid "Retry" msgstr "" -#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:38 +#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:43 msgid "Copy diagnostics" msgstr "" diff --git a/lang/ru/LC_MESSAGES/flectar-mail.po b/lang/ru/LC_MESSAGES/flectar-mail.po index 660c99f1..6d778ab5 100644 --- a/lang/ru/LC_MESSAGES/flectar-mail.po +++ b/lang/ru/LC_MESSAGES/flectar-mail.po @@ -1449,7 +1449,7 @@ msgstr "Идентификатор диагностики {}" msgid "Retry" msgstr "Повторить" -#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:38 +#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:43 msgid "Copy diagnostics" msgstr "Копировать диагностику" diff --git a/lang/tr/LC_MESSAGES/flectar-mail.po b/lang/tr/LC_MESSAGES/flectar-mail.po index 4b7fcf06..d646bdb8 100644 --- a/lang/tr/LC_MESSAGES/flectar-mail.po +++ b/lang/tr/LC_MESSAGES/flectar-mail.po @@ -1431,7 +1431,7 @@ msgstr "Tanılama kimliği {}" msgid "Retry" msgstr "Yeniden dene" -#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:38 +#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:43 msgid "Copy diagnostics" msgstr "Tanılama bilgilerini kopyala" diff --git a/lang/zh_Hans/LC_MESSAGES/flectar-mail.po b/lang/zh_Hans/LC_MESSAGES/flectar-mail.po index 8d7b346a..077afd2c 100644 --- a/lang/zh_Hans/LC_MESSAGES/flectar-mail.po +++ b/lang/zh_Hans/LC_MESSAGES/flectar-mail.po @@ -1418,7 +1418,7 @@ msgstr "诊断 ID {}" msgid "Retry" msgstr "重试" -#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:38 +#: ui/app.slint:2156 ui/components/copyable-diagnostic.slint:43 msgid "Copy diagnostics" msgstr "复制诊断信息" diff --git a/ui/components/copyable-diagnostic.slint b/ui/components/copyable-diagnostic.slint index 137d5209..460ff17b 100644 --- a/ui/components/copyable-diagnostic.slint +++ b/ui/components/copyable-diagnostic.slint @@ -12,7 +12,11 @@ export component CopyableDiagnostic inherits Rectangle { height: max(28px, diagnostic-text.preferred-height); background: transparent; + // The row is exactly as tall as its text or the copy button, so vertical + // box padding would cut the text off. HorizontalBox { + padding-top: 0px; + padding-bottom: 0px; spacing: 6px; diagnostic-text := TextInput { @@ -20,6 +24,7 @@ export component CopyableDiagnostic inherits Rectangle { text: root.text; color: root.text-color; font-size: root.font-size; + vertical-alignment: center; read-only: true; single-line: false; wrap: word-wrap;