Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ You can also check the
- Dataset browse view is now correctly displayed on mobile devices
- Database-related actions are now hidden in preview mode (copy URL, share)
- Chart titles in user profile are now correctly rendered
- Styles
- Dataset tags can now wrap
- Security
- Added additional protection against data source URL injection
- Removed feature flag for custom GraphQL endpoint
Expand Down
17 changes: 8 additions & 9 deletions app/components/dataset-metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,15 @@ const DatasetTags = ({ cube }: { cube: DataCubeMetadata }) => {
);
};

type DatasetMetadataTagProps = {
const DatasetMetadataTag = ({
type,
iri,
label,
}: {
type: "organization" | "theme";
iri: string;
label?: string | null;
};

const DatasetMetadataTag = (props: DatasetMetadataTagProps) => {
const { type, iri, label } = props;

}) => {
return (
<NextLink
key={iri}
Expand All @@ -256,10 +256,9 @@ const DatasetMetadataTag = (props: DatasetMetadataTagProps) => {
underline="none"
title={label ?? undefined}
sx={{
display: "inline-block",
maxWidth: "100%",
whiteSpace: "nowrap",
textOverflow: "ellipsis",
overflow: "hidden",
borderRadius: "16px",
color: "text.primary",
}}
>
Expand Down
2 changes: 1 addition & 1 deletion app/components/tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const TagTypography = styled(Typography)(({ theme }) => ({
width: "fit-content",
minHeight: 24,
padding: `${theme.spacing(1)} ${theme.spacing(2)}`,
borderRadius: 999,
borderRadius: "16px",
transition: "box-shadow 0.2s ease",
}));

Expand Down