]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21467 Make new tab navigation component full width
author7PH <benjamin.raymond@sonarsource.com>
Mon, 29 Jan 2024 17:26:45 +0000 (18:26 +0100)
committersonartech <sonartech@sonarsource.com>
Tue, 30 Jan 2024 15:02:02 +0000 (15:02 +0000)
server/sonar-web/design-system/src/components/Tabs.tsx
server/sonar-web/src/main/js/apps/overview/branches/TabsPanel.tsx

index dd0381f3284dc0108f0ae9173b697a4b65f62ef2..24b071b66a900e2e9cf4f8205704ffcc852ec878 100644 (file)
@@ -82,6 +82,7 @@ export function Tabs<T extends TabValueType>(props: PropsWithChildren<TabsProps<
 
 const TabsContainer = styled.div`
   ${tw`sw-w-full`};
+  ${tw`sw-pl-4`};
   ${tw`sw-flex sw-justify-between`};
   border-bottom: ${themeBorder('default')};
 `;
index 5760185f04c4fb8623b59f6b3baf7e9870b461a0..0f0ace130a23246b1a7f2c33ebee990024e58641 100644 (file)
@@ -157,14 +157,14 @@ export function TabsPanel(props: React.PropsWithChildren<MeasuresPanelProps>) {
               </FlagMessage>
             </div>
           )}
-          <div className="sw-flex sw-items-center">
+          <div className="sw-flex sw-items-center sw--mx-6">
             <Tabs
               onChange={props.onTabSelect}
               options={tabs}
               value={isNewCode ? MeasuresTabs.New : MeasuresTabs.Overall}
             >
               {isNewCode && leakPeriod && (
-                <LightLabel className="sw-body-sm sw-flex sw-items-center">
+                <LightLabel className="sw-body-sm sw-flex sw-items-center sw-mr-6">
                   <span className="sw-mr-1">{translate('overview.new_code')}:</span>
                   <LeakPeriodInfo leakPeriod={leakPeriod} />
                 </LightLabel>