@remotion/studio: Show asset info when asset is selected in sidebar#6536
Merged
JonnyBurger merged 5 commits intomainfrom Feb 17, 2026
Merged
@remotion/studio: Show asset info when asset is selected in sidebar#6536JonnyBurger merged 5 commits intomainfrom
@remotion/studio: Show asset info when asset is selected in sidebar#6536JonnyBurger merged 5 commits intomainfrom
Conversation
Display file name and size in a panel above the asset list when an asset is selected, mirroring the CurrentComposition pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@remotion/studio: Show asset info when asset is selected in sidebar
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a “current asset” info bar to Remotion Studio’s Assets sidebar, similar to the existing “current composition” header, and adjusts the asset list height when the header is visible.
Changes:
- Introduces
CurrentAssetpanel showing selected asset filename and formatted size. - Updates
AssetSelectorto renderCurrentAssetwhen an asset is selected. - Adjusts the scrollable asset list height via
calc(100% - CURRENT_ASSET_HEIGHT).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/studio/src/components/CurrentAsset.tsx | New header component that reads current selected asset and shows name + size. |
| packages/studio/src/components/AssetSelector.tsx | Renders the new header and updates list sizing to account for it. |
Replace direct getStaticFiles() call with a useStaticFiles() hook that subscribes to watchPublicFolder, so the asset panel updates reactively when the public folder changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CurrentAssetinfo panel that appears above the asset list when an asset is selected in the sidebarCurrentCompositionpatternTest plan
🤖 Generated with Claude Code