Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/components/ai-edition/CaptionsPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export function CaptionsPane() {
</header>
<div className={styles.paneBody} style={{ padding: 0 }}>
<div className={styles.paneRow}>
<span className="label">{t("captions.show")}</span>
<span className={styles.label}>{t("captions.show")}</span>
<Toggle
checked={settings.enabled}
disabled={disabled || !hasTranscript}
Expand Down Expand Up @@ -275,7 +275,7 @@ export function CaptionsPane() {
{/* ── Language ───────────────────────────────────────────── */}
<div className={styles.sectionLabel}>{t("captions.language")}</div>
<div className={styles.paneRow}>
<span className="label">{t("captions.displayLanguage")}</span>
<span className={styles.label}>{t("captions.displayLanguage")}</span>
<select
value={settings.language ?? ""}
disabled={disabled}
Expand Down Expand Up @@ -358,7 +358,7 @@ export function CaptionsPane() {
{/* ── Text ───────────────────────────────────────────────── */}
<div className={styles.sectionLabel}>{t("captions.text")}</div>
<div className={styles.paneRow}>
<span className="label">{t("captions.font")}</span>
<span className={styles.label}>{t("captions.font")}</span>
<select
value={settings.fontFamily}
disabled={disabled}
Expand All @@ -373,7 +373,7 @@ export function CaptionsPane() {
</select>
</div>
<div className={styles.paneRow}>
<span className="label">{t("captions.bold")}</span>
<span className={styles.label}>{t("captions.bold")}</span>
<Toggle
checked={settings.fontWeight === "bold"}
disabled={disabled}
Expand All @@ -393,7 +393,7 @@ export function CaptionsPane() {
/>
</div>
<div className={styles.paneRow}>
<span className="label">{t("captions.textColor")}</span>
<span className={styles.label}>{t("captions.textColor")}</span>
<ColorField
label={t("captions.textColor")}
value={settings.color}
Expand All @@ -409,7 +409,7 @@ export function CaptionsPane() {
background: the swatch keeps showing the remembered colour while the
plate is off, because that is what turning it back on will draw. */}
<div className={styles.paneRow}>
<span className="label">{t("captions.background")}</span>
<span className={styles.label}>{t("captions.background")}</span>
<div style={{ display: "flex", alignItems: "center", gap: 8 }}>
<ColorField
label={t("captions.backgroundColor")}
Expand Down Expand Up @@ -488,7 +488,7 @@ export function CaptionsPane() {
{/* ── Line length ────────────────────────────────────────── */}
<div className={styles.sectionLabel}>{t("captions.lineLength")}</div>
<div className={styles.paneRow}>
<span className="label">{t("captions.minWords")}</span>
<span className={styles.label}>{t("captions.minWords")}</span>
<select
value={settings.minWordsPerLine}
disabled={disabled}
Expand All @@ -503,7 +503,7 @@ export function CaptionsPane() {
</select>
</div>
<div className={styles.paneRow} style={{ marginBottom: 16 }}>
<span className="label">{t("captions.maxWords")}</span>
<span className={styles.label}>{t("captions.maxWords")}</span>
<select
value={settings.maxWordsPerLine}
disabled={disabled}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ai-edition/ExportDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ export function ExportDialog({ open, onClose, document }: ExportDialogProps) {
</div>
</div>
<div className={styles.paneRow} style={{ margin: 0 }}>
<span className="label">{t("exportDialog.loopGif")}</span>
<span className={styles.label}>{t("exportDialog.loopGif")}</span>
<button
type="button"
className={`${styles.toggle} ${gifLoop ? styles.isOn : ""}`}
Expand Down
22 changes: 11 additions & 11 deletions src/components/ai-edition/RightPanes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ export function VideoEffectsPane() {
return (
<Pane title={ts("effects.title")} icon={<Sliders size={14} />} helpText={ts("effects.help")}>
<div className={styles.paneRow}>
<span className="label">{ts("effects.blurBg")}</span>
<span className={styles.label}>{ts("effects.blurBg")}</span>
<Toggle
checked={settings.showBlur}
disabled={!hasDocument}
Expand Down Expand Up @@ -1540,7 +1540,7 @@ export function LayoutPane() {
</select>
</div>
<div className={styles.paneRow}>
<span className="label">{ts("layout.mirrorWebcam")}</span>
<span className={styles.label}>{ts("layout.mirrorWebcam")}</span>
<Toggle
checked={settings.webcamMirrored}
disabled={layoutControlsDisabled}
Expand All @@ -1554,7 +1554,7 @@ export function LayoutPane() {
</div>
{supportsReactiveZoom ? (
<div className={styles.paneRow}>
<span className="label">{ts("layout.reactiveWebcam")}</span>
<span className={styles.label}>{ts("layout.reactiveWebcam")}</span>
<Toggle
checked={settings.webcamReactiveZoom}
disabled={layoutControlsDisabled}
Expand Down Expand Up @@ -1627,9 +1627,9 @@ export function LayoutPane() {
{isPip ? (
<div className={styles.sliderGrid}>
<div className={`${styles.sliderCell} ${styles.full}`}>
<div className="head">
<span className="label">{ts("layout.webcamSize")}</span>
<span className="val">{Math.round(settings.webcamSizePreset)}%</span>
<div className={styles.head}>
<span className={styles.label}>{ts("layout.webcamSize")}</span>
<span className={styles.val}>{Math.round(settings.webcamSizePreset)}%</span>
</div>
<input
type="range"
Expand Down Expand Up @@ -1703,7 +1703,7 @@ export function CursorPane() {
helpText={ts("cursor.help")}
>
<div className={styles.paneRow}>
<span className="label">{ts("cursor.show")}</span>
<span className={styles.label}>{ts("cursor.show")}</span>
<Toggle
checked={settings.cursorShow}
disabled={!hasDocument}
Expand All @@ -1716,7 +1716,7 @@ export function CursorPane() {
/>
</div>
<div className={styles.paneRow}>
<span className="label">{ts("cursor.clipToBounds")}</span>
<span className={styles.label}>{ts("cursor.clipToBounds")}</span>
<Toggle
checked={settings.cursor.clipToBounds}
disabled={!hasDocument}
Expand Down Expand Up @@ -1883,10 +1883,10 @@ export function SliderCell({
}) {
return (
<div className={styles.sliderCell}>
<div className="head">
<span className="label">{label}</span>
<div className={styles.head}>
<span className={styles.label}>{label}</span>
{showValue ? (
<span className="val">
<span className={styles.val}>
{value.toFixed(decimals)}
{suffix}
</span>
Expand Down
Loading