From b8d9c4cc636b62aa46a37f6f06856d30538012cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Sat, 17 Oct 2026 00:57:43 +0300 Subject: [PATCH] COMPRION import dialog: full-width file-name line + RU label rename MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - the slot layout now wraps: the label and "Choose file…" share the first line, the selected file name gets its own full-width line (the fixed 200 px label left only ~200 px for the name and overflowed on narrow screens); the ellipsis styling is unchanged and only kicks in for genuinely long names - RU label "Импорт трассы COMPRION" -> "Импорт трейсов COMPRION" (the button/dialog title and the PCAP-path hint that quotes it); EN strings and LANG_RU keys unchanged - SW cache simtrace-analyser-v62 (label/layout-only, no version bump) --- frontend/index.html | 10 +++++----- frontend/sw.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 007307c..29ed8c6 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -282,11 +282,11 @@ body { font: 14px/1.5 system-ui, sans-serif; background: var(--bg); color: var(- /* COMPRION import dialog */ .comprion-modal { max-width: 560px; } -.comprion-slot { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } -.comprion-slot label { flex: 0 0 200px; font-size: 13px; color: var(--text-muted); } +.comprion-slot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } +.comprion-slot label { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--text-muted); } .comprion-slot button { padding: 6px 10px; border: none; border-radius: 4px; cursor: pointer; background: var(--bg-input); color: var(--text); flex: 0 0 auto; } .comprion-slot button:disabled { opacity: 0.5; cursor: default; } -.comprion-slot .file-name { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } +.comprion-slot .file-name { flex: 1 1 100%; min-width: 0; font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .comprion-hint { font-size: 12px; line-height: 1.45; margin: 10px 0 0; } .comprion-error { font-size: 12px; line-height: 1.45; color: var(--error); margin-top: 8px; } .comprion-error:empty { display: none; } @@ -2971,7 +2971,7 @@ const LANG_RU = { 'No saved sessions': 'Нет сохранённых сессий', 'Start a capture from the Trace tab to create sessions.': 'Начните захват на вкладке «Трассировка», чтобы создать сессии.', 'Import PCAP': 'Импорт PCAP', - 'Import COMPRION trace': 'Импорт трассы COMPRION', + 'Import COMPRION trace': 'Импорт трейсов COMPRION', 'Import the \'ISO Protocol Layer\' export, optionally with the matching \'ISO Application Layer\' export for exact timestamps.': 'Импорт экспорта «ISO Protocol Layer», при наличии — с соответствующим экспортом «ISO Application Layer» для точных меток времени.', 'Select the ISO Protocol Layer export and, if available, the matching ISO Application Layer export of the same session.': @@ -3005,7 +3005,7 @@ const LANG_RU = { 'The ISO Application Layer file does not match this trace (different exchange count).': 'Файл «ISO Application Layer» не соответствует этой трассировке (другое число обменов).', 'This looks like a COMPRION export — use \'Import COMPRION trace\'.': - 'Похоже на экспорт COMPRION — используйте «Импорт трассы COMPRION».', + 'Похоже на экспорт COMPRION — используйте «Импорт трейсов COMPRION».', 'exact timestamps (Application Layer)': 'точные метки времени (ISO Application Layer)', 'New capture': 'Новый захват', 'Tiles': 'Плитки', diff --git a/frontend/sw.js b/frontend/sw.js index f9245f0..bc2cae7 100644 --- a/frontend/sw.js +++ b/frontend/sw.js @@ -1,4 +1,4 @@ -const CACHE = 'simtrace-analyser-v61'; +const CACHE = 'simtrace-analyser-v62'; const PRECACHE = [ 'index.html',