Spaces:
Paused
Paused
Commit History
-
feat: expose backdrop edge inset in the free-key "Try it out" card
PNRxAWhen backdrop is the selected image type, show Horizontal/Vertical inset (%) number inputs that emit edge_inset_x / edge_inset_y query params (clamped 0–50, sent as explicit overrides; placeholders show the operator's configured defaults). Cleared on image-type switch like the other type-specific controls.0d3ca24 -
expose poster fit in the free-key "Try it out" card
PNRxAThe free-key try-it-out panel showed Textless and Split (poster-only overrides) but not the new aspect-ratio fit. Add a "Fit" dropdown (native/cover/blur/pad) that emits `?fit=` for posters, with the resolved "default (<value>)" annotation from the free key's global default. Resets on image-type switch and is hidden for non-poster types, matching split.1a7acb0
-
fix: refresh free-key dropdown trigger text when the resolved default changes
PNRxAThe value reset in the previous commit clears a stale override, but the closed Select trigger could still show the wrong summary: reka-ui snapshots each option's text once when the item mounts and never re-reads it. So a dynamic "default (resolved)" label that changes per image type went stale on the trigger when switching poster<->backdrop (the control stays mounted, unlike logo which unmounts and so happened to refresh). The same staleness left the trigger without its "(resolved)" annotation after the server defaults loaded asynchronously post-mount. Key each dynamic "default"/"any" item by its label so reka-ui re-registers the option text whenever it changes, keeping the trigger summary in sync with the selected image type's defaults. Adds a display regression test that mounts the real reka-ui selects (the rest of the suite stubs them) and asserts the trigger text across poster<->backdrop switches and a post-mount defaults load.5af303d