diff --git a/packages/translation/src/lang/en.json b/packages/translation/src/lang/en.json index b19330425..dfc20d1ff 100644 --- a/packages/translation/src/lang/en.json +++ b/packages/translation/src/lang/en.json @@ -2257,6 +2257,9 @@ "showDetails": { "label": "Show Details" }, + "showOnlyIcon": { + "label": "Show Only Icon" + }, "topReleases": { "label": "Top Releases", "description": "The max number of latest releases to show. Zero means no limit." diff --git a/packages/widgets/src/releases/component.tsx b/packages/widgets/src/releases/component.tsx index bbde6d212..72be89f42 100644 --- a/packages/widgets/src/releases/component.tsx +++ b/packages/widgets/src/releases/component.tsx @@ -198,12 +198,15 @@ export default function ReleasesWidget({ options }: WidgetComponentProps<"releas className="releases-repository-header-nameVersion-wrapper" gap={5} justify="space-between" + miw={0} style={{ flex: 1 }} > - - {/* eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing */} - {repository.name || repository.identifier} - + {!options.showOnlyIcon && ( + + {/* eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing */} + {repository.name || repository.identifier} + + )} - +