From b6c2ec7b3953ab58ab2dc75477abead29c88fa6c Mon Sep 17 00:00:00 2001 From: Sanapach Date: Thu, 26 Nov 2026 19:21:00 +0200 Subject: [PATCH] Match the import statistics skeleton and fix the Russian retry notice The skeleton had four cells in five columns while the statistics have six; it now inherits the statistics grid on every width. The Russian notice after Retry promised that the tracks would be found. Co-Authored-By: Claude Opus 5.5 --- src/i18n/phrases.rs | 2 +- templates/player/imports.html | 2 +- templates/player/imports_styles.html | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/i18n/phrases.rs b/src/i18n/phrases.rs index 4e8382d..6662728 100644 --- a/src/i18n/phrases.rs +++ b/src/i18n/phrases.rs @@ -826,7 +826,7 @@ translations! { player_import_number: "#{id}" , "№{id}"; player_import_playlists_more: "and {count} more" , "и ещё {count}"; player_import_retry_unmatched: "Retry unmatched" , "Искать ненайденные"; - player_import_retry_started: "Unmatched tracks will be searched again." , "Ненайденные треки будут найдены заново."; + player_import_retry_started: "Unmatched tracks will be searched again." , "Поиск ненайденных треков запущен заново."; player_import_cancel: "Cancel" , "Отменить"; player_import_cancel_requested: "The import stops after the current step. Added tracks stay." , "Импорт остановится после текущего шага. Добавленные треки останутся."; player_import_delete_history: "Delete history" , "Удалить историю"; diff --git a/templates/player/imports.html b/templates/player/imports.html index 8cd0bf8..2b4fd95 100644 --- a/templates/player/imports.html +++ b/templates/player/imports.html @@ -88,7 +88,7 @@
- {% for _ in 0..4 %}
{% endfor %} + {% for _ in 0..6 %}
{% endfor %}
{% include "player/skeleton_tracks.html" %} diff --git a/templates/player/imports_styles.html b/templates/player/imports_styles.html index 7338d7b..f607427 100644 --- a/templates/player/imports_styles.html +++ b/templates/player/imports_styles.html @@ -51,7 +51,7 @@ .import-stats dt, .import-stats small { color: var(--text-secondary); font-size: 12px; } .import-stats dd { margin: 6px 0 0; font-size: clamp(18px, 2vw, 26px); font-weight: 650; font-variant-numeric: tabular-nums; } .import-stats small { display: block; margin-top: 4px; overflow-wrap: anywhere; } -.import-stats-skeleton { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 18px; } +.import-stats-skeleton { margin-top: 18px; } .import-stats-skeleton .skeleton-bar + .skeleton-bar { width: 50%; margin-top: 10px; height: 16px; } .import-extra-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; color: var(--text-secondary); font-size: 13px; } .import-extra-stats strong { color: var(--text-primary); font-variant-numeric: tabular-nums; } @@ -115,7 +115,6 @@ @media (max-width: 760px) { .import-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } .import-stats > div:nth-child(3n + 1) { border-left: 0; } - .import-stats-skeleton { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 600px) { .import-history-row { grid-template-columns: minmax(0, 1fr); }