From 81a5b58eb901583d5bc207b4bb86b51c8c28c8b8 Mon Sep 17 00:00:00 2001 From: core Date: Mon, 1 Jun 2026 17:44:49 +0500 Subject: [PATCH] settings: lay transcode params out in an even grid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The params row was a ragged flex-wrap and "Готовый профиль" was floated with margin-left:auto, so controls didn't line up and the preset menu dangled at an odd height. Split the row into a left grid (auto-fit columns, controls bottom-aligned, full-width) and a separate right-side "Готовый профиль" zone. Reorder fields logically: codec, H.264 profile, preset, rate control, bitrate, QP, keyframe interval. Drop the now-dead SOFT/MEDIUM/HARD button CSS. VERSION -> 0.0.123. Co-Authored-By: Claude Opus 4.8 (1M context) --- VERSION | 2 +- frontend/static/app.js | 18 ++++++++++-------- frontend/static/style.css | 20 ++++++-------------- 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/VERSION b/VERSION index 5a05f0a..dd5a402 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.122 +0.0.123 diff --git a/frontend/static/app.js b/frontend/static/app.js index 67e561e..ee114e2 100644 --- a/frontend/static/app.js +++ b/frontend/static/app.js @@ -1485,14 +1485,16 @@ const Settings = { [["", "— свой —"]].concat(Object.keys(TR_PRESETS).map((k) => [k, k])).map(([v, t]) => ``).join("") + ``; return ( - `` + - `` + - `` + - `` + - `` + - `` + - `` + - `` + `
` + + `` + + `` + + `` + + `` + + `` + + `` + + `` + + `
` + + `
` ); }, diff --git a/frontend/static/style.css b/frontend/static/style.css index 30e9d04..27784af 100644 --- a/frontend/static/style.css +++ b/frontend/static/style.css @@ -339,23 +339,15 @@ input[type="date"], input[type="number"], select { .tab:hover { color: var(--text); } .tab.active { color: #fff; border-bottom-color: #c0392b; } .tab-panel[hidden] { display: none; } -.tr-row { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; padding-left: 28px; } +/* ряд настроек профиля: слева — ровная сетка параметров, справа — «Готовый профиль» */ +.tr-row { display: flex; gap: 18px; margin-top: 10px; padding-left: 28px; align-items: flex-start; } .tr-row[hidden] { display: none; } +.tr-params { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 16px; align-items: end; } +.tr-quality { flex: 0 0 auto; } .tr-row label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-dim); } -.tr-row select { display: block; } -.tr-row input[type="number"] { display: block; width: 80px; } +.tr-params select, .tr-params input[type="number"] { display: block; width: 100%; } +.tr-quality select { display: block; min-width: 120px; } .tr-row select:disabled, .tr-row input:disabled { opacity: .4; cursor: not-allowed; } -.tr-row label.qpreset-lbl { margin-left: auto; } /* «Готовый профиль» — прижат к правому краю */ -/* общие пресеты перекодирования (SOFT / MEDIUM / HARD) */ -.tr-presets { flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding-left: 28px; } -.tr-preset { - padding: 4px 12px; font-size: 12px; font-weight: 600; border-radius: 6px; - background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--border); cursor: pointer; -} -.tr-preset[data-preset="SOFT"] { color: #e03131; } -.tr-preset[data-preset="MEDIUM"] { color: #e9c46a; } -.tr-preset[data-preset="HARD"] { color: #ffffff; } -.tr-preset.active { background: var(--accent); color: #fff; border-color: var(--accent); } /* блок профиля: режим (свой плеер / перекодировать) + ряд параметров */ .tr-block { padding: 12px 0; border-top: 1px solid var(--border); } .tr-block:first-of-type { border-top: none; padding-top: 0; }