Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

fix(studio): group header history actions with consistent spacing

open-design-crew[bot]4723fbac2a57
diff --git a/docs/product/architecture.md b/docs/product/architecture.md
index 225f6ff3..b6cb9afb 100644
--- a/docs/product/architecture.md
+++ b/docs/product/architecture.md
@@ -20,7 +20,7 @@ Model Gateway remains a shared media-generation backend for MCP, using local Cod
- The project sidebar opens as a modal drawer over the editor at every viewport size. It starts closed, leaves the editor dimensions unchanged, and closes via its button, outside click or Escape. The header toggle remains mounted for focus restoration; privacy, theme and language settings live in the drawer footer. Error and empty-session views retain a drawer toggle so users can select an existing project or create one. Project rows show names without dates; the heading offers a New project button instead of a count. Creation uses the existing save and revision guards before opening the blank project.
- An empty, loaded root composition shows a centered import/drop prompt over the mounted preview and hides transport controls, including the placeholder duration. The empty state requires both no timeline clips and no authored preview content; loading, failed previews and nested compositions retain their existing states. Import uses the existing timeline gateway and file-drop pipeline. The empty timeline retains its drop target and ruler, with a muted dashed track sketch instead of a duplicate import prompt or button. Empty timelines disable zoom controls. A confirmed empty composition blocks new exports at both the settings button and the shared editor render-start handler, while existing export history remains available. Properties distinguish no content from no selection; small panel empty states share muted text and icon sizing. Preview zoom percentage and Fit sit in the MVP preview header, outside the picture. Clicking the percentage opens 50%, 75%, 100%, 150% and 200% presets in a compact opaque menu. The MVP hides the corner position navigator; existing zoom gestures and Fit remain available. Browser fullscreen is unavailable in the MVP, including its playback button and keyboard entry; workspace preview expansion remains available. Playback controls respond to their own container width: secondary-button gaps narrow below 420px, and speed/loop controls hide below 420px so timecode, play/pause and volume remain on one row. Preview and track volume use upward floating vertical sliders, opened by hover or keyboard focus; clicking the speaker still toggles mute.
- The composition list places the full video first, preserves the remaining clip order, and marks the live preview target. Queued, loading, missing and failed covers share a muted gray OD placeholder without failure text; decoded covers replace it automatically. A confirmed empty root is omitted from this list using the same loaded-preview content check; when no clips remain, the panel shows a brief empty state. The MVP omits the duplicate preview breadcrumb; composition switching and existing return shortcuts remain available.
-- The editor header keeps the OpenDesign logo, drawer toggle and template library on the left, centers the editable project name, and places undo/redo and export on the right. Clearing the title and committing with blur or Enter saves the localized Untitled default; Escape cancels. A logo-only community link sits immediately before Export and opens the public Discord community in every interface language, with a localized accessible tooltip; external links open separately from the editor. Transient save/error status remains available. Workspace and export failures show concise causes and available next steps, with raw diagnostics behind expandable, copyable details. Workspace connection failures use a persistent single-line feedback toast at the top center with a Reconnecting status and no buttons or diagnostic details. The Reconnecting ellipsis animates without changing the toast width; reduced-motion preferences keep it static. Automatic polling waits 1.8 seconds after each completed attempt and removes the toast on recovery; it has no overall retry limit or explicit per-request timeout and does not start a stopped service. Other notice dismissal does not bypass write guards. Editor toasts stack at the top center; editor, connection and template-copy feedback share a top-layer host above native dialogs and ordinary overlays, without taking focus. Template-copy feedback retains its existing placement and three-second lifetime; identical notices replace their previous instance. Error toasts use the compact neutral feedback surface and concise recognized causes, with a dismiss button and no details icon or expandable diagnostics. Detailed error panels retain their diagnostic controls. Informational toasts disappear after three seconds without a close control; actionable error notices remain dismissible and do not auto-expire. Save-queue pauses use a brief, localized feedback toast without paths, diagnostics or a retry action; it expires after three seconds without clearing the write guard or claiming that failed edits were saved. The template library reuses the website catalog layout: brand/use-case/video-type facets, configured featured templates, search and sorting, without site navigation, promotional hero or footer. Prism metadata and local cache updates drive the list. The catalog selects the editor locale from a shared multilingual publication, falling back to English and then the Resource default; template-copy prompts support the same eleven UI languages. Previews, author/source links and editable-project opening remain available. The detail view keeps the motion.md download action (`motionDocumentUrl`) above its guide content (`styleDescription`, `reviewFocus`, `motionGuideUrl`). Recreate opens a separate prompt dialog; copied instructions never occupy the guide area.
+- The editor header keeps the OpenDesign logo, drawer toggle and template library on the left, centers the editable project name, and places undo/redo and export on the right. Clearing the title and committing with blur or Enter saves the localized Untitled default; Escape cancels. A logo-only community link sits immediately before Export and opens the public Discord community in every interface language, with a localized accessible tooltip; external links open separately from the editor. Undo, redo and version history form one visual group with 4px internal gaps; this group, the community link and Export use equal 16px gaps, without dividers. Transient save/error status remains available. Workspace and export failures show concise causes and available next steps, with raw diagnostics behind expandable, copyable details. Workspace connection failures use a persistent single-line feedback toast at the top center with a Reconnecting status and no buttons or diagnostic details. The Reconnecting ellipsis animates without changing the toast width; reduced-motion preferences keep it static. Automatic polling waits 1.8 seconds after each completed attempt and removes the toast on recovery; it has no overall retry limit or explicit per-request timeout and does not start a stopped service. Other notice dismissal does not bypass write guards. Editor toasts stack at the top center; editor, connection and template-copy feedback share a top-layer host above native dialogs and ordinary overlays, without taking focus. Template-copy feedback retains its existing placement and three-second lifetime; identical notices replace their previous instance. Error toasts use the compact neutral feedback surface and concise recognized causes, with a dismiss button and no details icon or expandable diagnostics. Detailed error panels retain their diagnostic controls. Informational toasts disappear after three seconds without a close control; actionable error notices remain dismissible and do not auto-expire. Save-queue pauses use a brief, localized feedback toast without paths, diagnostics or a retry action; it expires after three seconds without clearing the write guard or claiming that failed edits were saved. The template library reuses the website catalog layout: brand/use-case/video-type facets, configured featured templates, search and sorting, without site navigation, promotional hero or footer. Prism metadata and local cache updates drive the list. The catalog selects the editor locale from a shared multilingual publication, falling back to English and then the Resource default; template-copy prompts support the same eleven UI languages. Previews, author/source links and editable-project opening remain available. The detail view keeps the motion.md download action (`motionDocumentUrl`) above its guide content (`styleDescription`, `reviewFocus`, `motionGuideUrl`). Recreate opens a separate prompt dialog; copied instructions never occupy the guide area.
- The asset panel shows only the current project, with compact search/import controls, type filters, and a dedicated scrollable list. User-uploaded audio rows in My assets show full filenames with their original extensions and wrap long names within the panel; the generic Audio label is omitted, while duration and specific BGM/SFX/Voice labels remain when available. Official library sources and presentation are unchanged. Assets referenced by the current composition carry an In use badge (已使用 in Chinese); unused assets have no badge. MVP My assets deletion invokes the existing file-deletion handler directly from the menu, without a second confirmation; the full editor retains its confirmation. This does not introduce a new undo mechanism or alter official catalog assets. Usage filtering is omitted; used assets still sort first within each type. In both My assets and the official animation library, hover plays only the card thumbnail, while clicking opens a centered modal preview over a gray full-editor backdrop. The modal reuses Studio-styled playback, volume and speed controls; its play button stays centered, and speed/loop controls hide below 420px to avoid overlap. Volume and loop icons are 16px inside 28px buttons, and playback speed text is 12px; closing it restores access to the paused composition; previewing media does not add it to the project. The global cache view remains in source but has no editor entry in the MVP.
- Panel positions are fixed. Export settings and render history live in a compact popover below the header Export button, outside the right panel. Both side groups can temporarily collapse into 48px vertical icon rails, giving their width to preview; the rail toggle restores the previous width and tab, while a module icon opens that module. Collapse does not remove panels or remount the player. Opening the MVP starts both sides collapsed and the timeline at 30% of the available dock height (subject to minimum sizes); users can then drag the divider to enlarge or reduce it. The fixed layout reserves at least 360px for preview, 260px for each expanded side panel. Side availability retains the existing conservative breakpoints, independently of the resizable minimums: below 740px both side groups and rails hide; from 740px to 1011px only one side can expand; wider hosts allow both only when their requested widths leave the preview floor intact. Opening a side through a toggle, module shortcut or programmatic activation uses the same fit check and closes the opposite side when necessary. Shrinking the host collapses expanded sides when they no longer fit; widening restores collapsed rails without automatically reopening panels. At widths smaller than the preview floor, preview uses the available workspace. Remembered expanded side widths remain available when reopening a side. Divider hover and drag change only the thin line to green. Divider resizing and per-project expanded-size persistence remain; panel movement, closing and layout presets are absent. Preview alone can temporarily expand within the editor workspace, keeping the host chat visible and the player mounted. Its header button or Escape restores the previous layout and playback position; expansion is not persisted across reloads.
- MVP controls share a locally bundled Remix Icon 4.9.1 set with the reference design system. Menu selections consistently use check icons, and the language menu is 180px wide. Expanded side-panel tabs remain text-only; collapsed rails use the corresponding panel icons. Brand artwork and timeline geometry are separate from control icons.
diff --git a/docs/reviews/motion-mvp-ui-followup/header-action-spacing-before.png b/docs/reviews/motion-mvp-ui-followup/header-action-spacing-before.png
new file mode 100644
index 00000000..b4a0ba42
Binary files /dev/null and b/docs/reviews/motion-mvp-ui-followup/header-action-spacing-before.png differ
diff --git a/docs/reviews/motion-mvp-ui-followup/header-action-spacing-narrow.png b/docs/reviews/motion-mvp-ui-followup/header-action-spacing-narrow.png
new file mode 100644
index 00000000..3440e611
Binary files /dev/null and b/docs/reviews/motion-mvp-ui-followup/header-action-spacing-narrow.png differ
diff --git a/docs/reviews/motion-mvp-ui-followup/header-action-spacing-wide.png b/docs/reviews/motion-mvp-ui-followup/header-action-spacing-wide.png
new file mode 100644
index 00000000..a6182450
Binary files /dev/null and b/docs/reviews/motion-mvp-ui-followup/header-action-spacing-wide.png differ
diff --git a/docs/reviews/motion-mvp-ui-followup/interaction-update.md b/docs/reviews/motion-mvp-ui-followup/interaction-update.md
index 18c3fd31..19c94a8e 100644
--- a/docs/reviews/motion-mvp-ui-followup/interaction-update.md
+++ b/docs/reviews/motion-mvp-ui-followup/interaction-update.md
@@ -111,3 +111,12 @@ The MVP track-label column is now 200px instead of 232px, reclaiming 32px for th
Real-editor browser measurements confirmed a 200px header, 232px content origin and 200px auto-scroll inset. Both 24px buttons fit inside the header; the current filename remains fully visible. The viewport kept the paused 12.406s position and original source/media values, with Undo disabled. Fit zoom naturally recomputed for the extra timeline space. [Before](timeline-label-before.png), [after](timeline-label-after.png). No clips, timings, audio levels or asset names were edited for verification.
Validation: 61 cases across the timeline scrolling, track-header, group-row, viewport metadata and preview empty-state suites passed in both working and publish checkouts. The scroll regression now covers both editor modes, verifies MVP header/ruler/auto-scroll alignment, and checks playhead clipping during repeated horizontal scroll and after settling. Studio typecheck/build and the publish-checkout repository check passed. Long-name truncation is retained by source inspection; no real asset was renamed. Remote WorkBuddy and actual file-drop mutations were not exercised.
+
+
+## Header action grouping (2026-11-12)
+
+Undo, redo and version history now form one visual group with equal 4px internal gaps (previously 2px then 16px). The group, community link and Export retain equal 16px gaps, without dividers. Icon buttons retain their 28px targets. This implements the spacing proposal explicitly approved by the user; action behavior and template-library styling are unchanged.
+
+The real 4173 editor was rebuilt and refreshed. DOM measurements confirmed 4px / 4px / 16px / 16px gaps, and screenshots were inspected at normal width and 680px. The existing narrow-header behavior hides the history group below 700px; community and Export remain separated without overlap. Both editor side panels were restored, with Compositions / Layers selected and playback paused at zero. No project content, timing, volume or history actions were changed for verification. [Before](header-action-spacing-before.png), [wide](header-action-spacing-wide.png), [narrow](header-action-spacing-narrow.png).
+
+Validation: 20 existing MotionStudioHost cases passed, along with the publish-checkout repository check, Studio typecheck and production build. The working editor production build and scoped whitespace checks passed. Remote WorkBuddy verification was not performed.
diff --git a/studio/src/motion/theme.css b/studio/src/motion/theme.css
index 464b5876..867c922e 100644
--- a/studio/src/motion/theme.css
+++ b/studio/src/motion/theme.css
@@ -340,7 +340,8 @@ button, input, select, textarea { font-family: inherit; }
.motion-studio-header.motion-studio-header-centered { padding-block: 11.5px; display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, 1fr) minmax(max-content, 1fr); gap: 12px; }
.motion-studio-header.motion-studio-header-centered > div { min-width: 0; width: auto; }
.motion-studio-header.motion-studio-header-centered > div:last-child { justify-self: end; flex-wrap: nowrap; gap: 16px; }
-.motion-studio-header-centered .motion-header-history-actions { gap: 16px; }
+.motion-studio-header-centered .motion-header-history-actions,
+.motion-studio-header-centered .motion-header-history-actions > .motion-history-actions { gap: 4px; }
.motion-studio-header-centered .motion-workspace-actions { padding-right: 0; margin-right: 0; border-right: 0; }
.motion-community-link { flex-shrink: 0; }
.motion-community-link img { display: block; }