diff --git a/scm-ui/ui-webapp/src/repos/branches/components/AheadBehindTag.tsx b/scm-ui/ui-webapp/src/repos/branches/components/AheadBehindTag.tsx index e2148bbf19..23d999f4e2 100644 --- a/scm-ui/ui-webapp/src/repos/branches/components/AheadBehindTag.tsx +++ b/scm-ui/ui-webapp/src/repos/branches/components/AheadBehindTag.tsx @@ -52,11 +52,11 @@ const Count = styled.span` width: max-content; `; -const Bar = styled.span.attrs(props => ({ +const Bar = styled.span.attrs((props) => ({ style: { width: props.width + "%", - borderRadius: props.direction === "left" ? "25px 0 0 25px" : "0 25px 25px 0" - } + borderRadius: props.direction === "left" ? "25px 0 0 25px" : "0 25px 25px 0", + }, }))` height: 3px; max-width: 100%; @@ -87,17 +87,13 @@ const AheadBehindTag: FC = ({ branch, details, hiddenMobile, verbose }) = : details.changesetsAhead; return ( -
+
- + {behindText} = ({ branch, details, hiddenMobile, verbose }) = direction="left" /> - + {aheadText} = ({ repository, baseUrl, branch, onDelete, details } )} {renderBranchTag()} - {binder.hasExtension("repos.branches.row.details") + {binder.hasExtension("repos.branches.row.details", extensionProps) ? binder - .getExtensions("repos.branches.row.details") - .map((e) => {React.createElement(e, extensionProps)}) + .getExtensions("repos.branches.row.details", extensionProps) + .map((e) => ( + {React.createElement(e, extensionProps)} + )) : null} {deleteButton}