@@ -179,7 +179,8 @@ function AudioRow({
179179 </ span >
180180 { ! playing && (
181181 < span className = "text-[11px] text-panel-text-5 flex-shrink-0" >
182- { meta ?. duration ? `${ meta . duration } s · ` : "" } { subtype }
182+ { meta ?. duration ? `${ meta . duration } s · ` : "" }
183+ { subtype }
183184 </ span >
184185 ) }
185186 { used && (
@@ -391,19 +392,26 @@ export const AssetsTab = memo(function AssetsTab({
391392 const [ copiedPath , setCopiedPath ] = useState < string | null > ( null ) ;
392393 const [ activeFilter , setActiveFilter ] = useState < MediaCategory | "all" > ( "all" ) ;
393394 const [ searchQuery , setSearchQuery ] = useState ( "" ) ;
394- const [ manifest , setManifest ] = useState < Map < string , { description ?: string ; duration ?: number ; width ?: number ; height ?: number } > > ( new Map ( ) ) ;
395+ const [ manifest , setManifest ] = useState <
396+ Map < string , { description ?: string ; duration ?: number ; width ?: number ; height ?: number } >
397+ > ( new Map ( ) ) ;
395398
396399 useEffect ( ( ) => {
397400 fetch ( `/api/projects/${ projectId } /preview/.media/manifest.jsonl` )
398401 . then ( ( r ) => ( r . ok ? r . text ( ) : "" ) )
399402 . then ( ( text ) => {
400- const m = new Map < string , { description ?: string ; duration ?: number ; width ?: number ; height ?: number } > ( ) ;
403+ const m = new Map <
404+ string ,
405+ { description ?: string ; duration ?: number ; width ?: number ; height ?: number }
406+ > ( ) ;
401407 for ( const line of text . split ( "\n" ) ) {
402408 if ( ! line . trim ( ) ) continue ;
403409 try {
404410 const rec = JSON . parse ( line ) ;
405411 if ( rec . path ) m . set ( rec . path , rec ) ;
406- } catch { /* skip */ }
412+ } catch {
413+ /* skip */
414+ }
407415 }
408416 setManifest ( m ) ;
409417 } )
@@ -530,8 +538,24 @@ export const AssetsTab = memo(function AssetsTab({
530538 { mediaAssets . length > 0 && (
531539 < div className = "flex items-center gap-1.5 rounded-md bg-panel-input px-2.5 py-[5px] mb-2" >
532540 < svg width = "12" height = "12" viewBox = "0 0 256 256" fill = "none" className = "flex-shrink-0" >
533- < circle cx = "116" cy = "116" r = "76" stroke = "currentColor" strokeWidth = "22" className = "text-panel-text-5" />
534- < line x1 = "170" y1 = "170" x2 = "232" y2 = "232" stroke = "currentColor" strokeWidth = "22" strokeLinecap = "round" className = "text-panel-text-5" />
541+ < circle
542+ cx = "116"
543+ cy = "116"
544+ r = "76"
545+ stroke = "currentColor"
546+ strokeWidth = "22"
547+ className = "text-panel-text-5"
548+ />
549+ < line
550+ x1 = "170"
551+ y1 = "170"
552+ x2 = "232"
553+ y2 = "232"
554+ stroke = "currentColor"
555+ strokeWidth = "22"
556+ strokeLinecap = "round"
557+ className = "text-panel-text-5"
558+ />
535559 </ svg >
536560 < input
537561 type = "text"
0 commit comments