Skip to content

Commit

Permalink
Perspective file height (#2759)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiskus authored Mar 28, 2022
1 parent 0e1e4b2 commit 6d8a65e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const useStyles = M.makeStyles((t) => ({
},
viewer: {
height: ({ context }: { context: 'file' | 'listing' }) =>
context === CONTEXT.LISTING ? t.spacing(30) : t.spacing(50),
context === CONTEXT.LISTING ? t.spacing(30) : t.spacing(80),
overflow: 'auto',
resize: 'vertical',
zIndex: 1,
Expand Down
2 changes: 1 addition & 1 deletion catalog/app/containers/Bucket/PackageTree/PackageTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ const withPreview = (
return callback(AsyncResult.Err(Preview.PreviewError.Archived({ handle })))
}
const previewHandle = { ...handle, packageHandle }
const previewOptions = { mode, context: Preview.CONTEXT.LISTING }
const previewOptions = { mode, context: Preview.CONTEXT.FILE }
return Preview.load(previewHandle, callback, previewOptions)
}

Expand Down

0 comments on commit 6d8a65e

Please sign in to comment.