export function NavBarTabs({ children, className, ...other }: Props) {
return (
- <ul className={`sw-flex sw-items-end sw-gap-6 ${className ?? ''}`} {...other}>
+ <ul className={`sw-flex sw-items-end sw-gap-8 ${className ?? ''}`} {...other}>
{children}
</ul>
);
StatusComponent = <QGFailed {...iconProps} />;
break;
}
- return <div aria-label={ariaLabel}>{StatusComponent}</div>;
+ return (
+ <div aria-label={ariaLabel} className="sw-flex sw-justify-center sw-items-center">
+ {StatusComponent}
+ </div>
+ );
}
const COMMON_PROPS = {
import styled from '@emotion/styled';
import tw from 'twin.macro';
import { LAYOUT_GLOBAL_NAV_HEIGHT, LAYOUT_VIEWPORT_MIN_WIDTH } from '../helpers';
-import { themeColor, themeContrast } from '../helpers/theme';
+import { themeColor, themeContrast, themeShadow } from '../helpers/theme';
export const TopBar = styled.nav`
${tw`sw-sticky sw-top-0`}
background-color: ${themeColor('navbar')};
color: ${themeContrast('navbar')};
+ box-shadow: ${themeShadow('lg')};
`;
>
<TextMuted text={breadcrumbElement.name} />
</HoverLink>
- {isNotLast && <span className="slash-separator sw-mx-2.5" />}
+ {isNotLast && <span className="slash-separator sw-mx-2" />}
</div>
);
})}
<Breadcrumb component={component} currentUser={currentUser} />
{currentBranchLike && (
<>
- <span className="slash-separator sw-ml-2" />
+ <span className="slash-separator sw-mx-2" />
<BranchLikeNavigation
branchLikes={branchLikes}
component={component}
};
return (
- <div className="sw-flex sw-items-center sw-ml-2 it__branch-like-navigation-toggler-container">
+ <div className="sw-flex sw-items-center it__branch-like-navigation-toggler-container">
<Popup
allowResizing={true}
overlay={
zLevel={PopupZLevel.Global}
>
<ButtonSecondary
- className="sw-max-w-abs-350"
+ className="sw-max-w-abs-350 sw-px-3"
onClick={() => {
setIsMenuOpen(!isMenuOpen);
}}
return (
<DropdownMenu
- className="sw-overflow-y-auto sw-overflow-x-hidden it__branch-like-navigation-menu"
+ className="sw-overflow-y-auto sw-overflow-x-hidden sw-min-w-abs-350 it__branch-like-navigation-menu"
maxHeight="38rem"
size="auto"
>
component.alm?.key ||
(isPullRequest(currentBranchLike) && getPRUrlAlmKey(currentBranchLike.url));
return (
- <div>
+ <>
{currentBranchLike.url !== undefined && (
<Link
icon={
{!almKey && translate('branches.see_the_pr')}
</Link>
)}
- </div>
+ </>
);
}
const formatted = formatMeasure(status, MetricType.Level);
const ariaLabel = translateWithParameters('overview.quality_gate_x', formatted);
return (
- <div className={classNames(className, `it__level-${status}`)}>
- <QualityGateIndicator status={status} className="sw-mr-2" ariaLabel={ariaLabel} />
+ <div className={classNames(`it__level-${status}`, className)}>
+ <QualityGateIndicator status={status} className="sw-mr-2" ariaLabel={ariaLabel} size="sm" />
{showStatusText && <span>{formatted}</span>}
</div>
);