update breadcrumb icon

This commit is contained in:
shrushti2000 2025-09-24 16:24:48 +05:30
parent c4f345dd62
commit 0295647002
5 changed files with 49 additions and 11 deletions

View File

@ -1 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path fill="#37352F" stroke="#37352F" stroke-width=".6" d="M11.546 8c0 .14-.054.28-.16.386L5.93 13.84a.545.545 0 1 1-.771-.771L10.229 8l-5.07-5.069a.545.545 0 1 1 .772-.771l5.455 5.454c.106.107.16.246.16.386Z"/></svg> <svg width="5" height="7" viewBox="0 0 5 7" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0.128 0.86H1.508L4.412 3.608L1.508 6.368H0.128L3.032 3.608L0.128 0.86Z" fill="#787486"/>
</svg>

Before

Width:  |  Height:  |  Size: 292 B

After

Width:  |  Height:  |  Size: 198 B

View File

@ -343,7 +343,11 @@ const SettingsSso = () => {
if (isLoading) { if (isLoading) {
return ( return (
<PageLayoutV1 className="sso-settings-page" pageTitle={t('label.sso')}> <PageLayoutV1 className="sso-settings-page" pageTitle={t('label.sso')}>
<TitleBreadcrumb className="m-b-xs" titleLinks={breadcrumb} /> <TitleBreadcrumb
useCustomArrow
className="m-b-xs"
titleLinks={breadcrumb}
/>
<Loader /> <Loader />
</PageLayoutV1> </PageLayoutV1>
); );
@ -353,7 +357,11 @@ const SettingsSso = () => {
if (showProviderSelector) { if (showProviderSelector) {
return ( return (
<PageLayoutV1 className="sso-settings-page" pageTitle={t('label.sso')}> <PageLayoutV1 className="sso-settings-page" pageTitle={t('label.sso')}>
<TitleBreadcrumb className="m-b-xs" titleLinks={breadcrumb} /> <TitleBreadcrumb
useCustomArrow
className="m-b-xs"
titleLinks={breadcrumb}
/>
<div className="m-t-lg sso-provider-selection"> <div className="m-t-lg sso-provider-selection">
<ProviderSelector <ProviderSelector
@ -369,7 +377,11 @@ const SettingsSso = () => {
if (!hasExistingConfig) { if (!hasExistingConfig) {
return ( return (
<PageLayoutV1 className="sso-settings-page" pageTitle={t('label.sso')}> <PageLayoutV1 className="sso-settings-page" pageTitle={t('label.sso')}>
<TitleBreadcrumb className="m-b-xs" titleLinks={breadcrumb} /> <TitleBreadcrumb
useCustomArrow
className="m-b-xs"
titleLinks={breadcrumb}
/>
<SSOConfigurationForm <SSOConfigurationForm
securityConfig={securityConfig} securityConfig={securityConfig}
@ -383,7 +395,11 @@ const SettingsSso = () => {
return ( return (
<PageLayoutV1 className="sso-settings-page" pageTitle={t('label.sso')}> <PageLayoutV1 className="sso-settings-page" pageTitle={t('label.sso')}>
<TitleBreadcrumb className="m-b-xs" titleLinks={breadcrumb} /> <TitleBreadcrumb
useCustomArrow
className="m-b-xs"
titleLinks={breadcrumb}
/>
<div className="settings-sso" style={{ background: 'white' }}> <div className="settings-sso" style={{ background: 'white' }}>
{currentProvider && currentProvider !== AuthProvider.Basic && ( {currentProvider && currentProvider !== AuthProvider.Basic && (

View File

@ -20,6 +20,7 @@ import {
useState, useState,
} from 'react'; } from 'react';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { ReactComponent as RightArrowIcon } from '../../../assets/svg/ic-right-arrow.svg';
import { BREADCRUMB_SEPARATOR } from '../../../constants/constants'; import { BREADCRUMB_SEPARATOR } from '../../../constants/constants';
import TitleBreadcrumbSkeleton from '../Skeleton/BreadCrumb/TitleBreadcrumbSkeleton.component'; import TitleBreadcrumbSkeleton from '../Skeleton/BreadCrumb/TitleBreadcrumbSkeleton.component';
import './title-breadcrumb.less'; import './title-breadcrumb.less';
@ -31,6 +32,7 @@ const TitleBreadcrumb: FunctionComponent<TitleBreadcrumbProps> = ({
noLink = false, noLink = false,
loading = false, loading = false,
widthDeductions, widthDeductions,
useCustomArrow = false,
}: TitleBreadcrumbProps) => { }: TitleBreadcrumbProps) => {
const [screenWidth, setScreenWidth] = useState(window.innerWidth); const [screenWidth, setScreenWidth] = useState(window.innerWidth);
@ -79,9 +81,15 @@ const TitleBreadcrumb: FunctionComponent<TitleBreadcrumbProps> = ({
}}> }}>
{link.name} {link.name}
</span> </span>
{noLink && index < titleLinks.length - 1 && ( {noLink &&
index < titleLinks.length - 1 &&
(useCustomArrow ? (
<span className="custom-separator">
<RightArrowIcon />
</span>
) : (
<span className="text-xss text-grey-muted">{'>'}</span> <span className="text-xss text-grey-muted">{'>'}</span>
)} ))}
</> </>
); );
}; };
@ -117,9 +125,15 @@ const TitleBreadcrumb: FunctionComponent<TitleBreadcrumbProps> = ({
<Link className={classes} to={link.url}> <Link className={classes} to={link.url}>
{link.name} {link.name}
</Link> </Link>
{useCustomArrow ? (
<span className="custom-separator">
<RightArrowIcon />
</span>
) : (
<span className="text-sm font-regular p-x-xs text-grey-muted"> <span className="text-sm font-regular p-x-xs text-grey-muted">
{BREADCRUMB_SEPARATOR} {BREADCRUMB_SEPARATOR}
</span> </span>
)}
</> </>
) : ( ) : (
renderBreadcrumb(index, link, classes) renderBreadcrumb(index, link, classes)

View File

@ -26,4 +26,5 @@ export type TitleBreadcrumbProps = {
noLink?: boolean; noLink?: boolean;
loading?: boolean; loading?: boolean;
widthDeductions?: number; widthDeductions?: number;
useCustomArrow?: boolean;
}; };

View File

@ -10,6 +10,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
@import (reference) '../../../styles/variables.less';
.breadcrumb-container { .breadcrumb-container {
ol, ol,
ul { ul {
@ -17,4 +18,8 @@
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
.custom-separator {
margin: 0 @size-xs @size-xxs @size-xs;
}
} }