settings: lay transcode params out in an even grid
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user