Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/utils/stac.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,9 +592,10 @@ export const renderItemColumn = (item, _, column) => {
// Add tooltips to potentially long cells
switch (column.key) {
case "asset":
// Assets are generally rendered as a link to download a file. However, Zarr types
// are really a root directory, and the href is more important than a link
return fieldContent.contentType === "application/vnd+zarr" ? (
// Assets are generally rendered as a link to download a file. However, some types
// are really a root directory, and the href text is more important than a link
const nonLinkHrefTypes = ["application/vnd+zarr", "application/x-parquet"];
return nonLinkHrefTypes.includes(fieldContent.contentType) ? (
<code title={fieldContent.name}>{fieldContent.href}</code>
) : (
<NewTabLink href={fieldContent.href}>{fieldContent.name}</NewTabLink>
Expand Down