File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
apps/sim/app/workspace/[workspaceId]/files/components/file-viewer Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -619,10 +619,7 @@ const ImagePreview = memo(function ImagePreview({ file }: { file: WorkspaceFileR
619619 )
620620} )
621621
622- function resolvePreviewError (
623- fetchError : Error | null ,
624- renderError : string | null
625- ) : string | null {
622+ function resolvePreviewError ( fetchError : Error | null , renderError : string | null ) : string | null {
626623 if ( fetchError ) return fetchError instanceof Error ? fetchError . message : 'Failed to load file'
627624 return renderError
628625}
@@ -1080,7 +1077,7 @@ const XlsxPreview = memo(function XlsxPreview({
10801077 return (
10811078 < div className = 'flex flex-1 flex-col overflow-hidden' >
10821079 { sheetNames . length > 1 && (
1083- < div className = 'flex shrink-0 gap-0 border-b border- [var(--border)] bg-[var(--surface-1)]' >
1080+ < div className = 'flex shrink-0 gap-0 border-[var(--border)] border-b bg-[var(--surface-1)]' >
10841081 { sheetNames . map ( ( name , i ) => (
10851082 < button
10861083 key = { name }
@@ -1089,7 +1086,7 @@ const XlsxPreview = memo(function XlsxPreview({
10891086 className = { cn (
10901087 'px-3 py-1.5 text-[12px] transition-colors' ,
10911088 i === activeSheet
1092- ? 'border-b-2 border- [var(--brand-secondary)] font-medium text-[var(--text-primary)]'
1089+ ? 'border-[var(--brand-secondary)] border-b-2 font-medium text-[var(--text-primary)]'
10931090 : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]'
10941091 ) }
10951092 >
You can’t perform that action at this time.
0 commit comments