Skip to content

Commit 63f06bb

Browse files
committed
breadscrumbs of root card
1 parent d062d58 commit 63f06bb

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

colab-webapp/src/main/node/app/src/components/cards/CardRootView.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { css } from '@emotion/css';
99
import { CardContent } from 'colab-rest-client';
1010
import * as React from 'react';
1111
import { useAndLoadSubCards } from '../../store/selectors/cardSelector';
12-
import { space_sm } from '../../styling/style';
12+
import { space_lg, space_sm, space_xs } from '../../styling/style';
1313
import InlineLoading from '../common/element/InlineLoading';
1414
import Flex from '../common/layout/Flex';
1515
import { PresenceContext } from '../presence/PresenceContext';
@@ -43,7 +43,11 @@ export default function RootView({ rootContent }: { rootContent: CardContent | n
4343
})}
4444
>
4545
<Dndwrapper cards={subCards}>
46-
<ProjectBreadcrumbs />
46+
<ProjectBreadcrumbs
47+
className={css({
48+
padding: space_xs + ' ' + space_xs + ' ' + space_xs + ' ' + space_lg,
49+
})}
50+
/>
4751
{rootContent != null && rootContent.id != null ? (
4852
<Flex className={css({ overflow: 'hidden' })} justify="center" direction="row" grow={1}>
4953
<Flex

colab-webapp/src/main/node/app/src/components/projects/ProjectBreadcrumbs.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ const breadcrumbsStyle = css({
3737
interface ProjectBreadcrumbsProps {
3838
card?: Card;
3939
cardContent?: CardContent;
40+
className?: string;
4041
}
4142

4243
export default function ProjectBreadcrumbs({
4344
card,
4445
cardContent,
46+
className,
4547
}: ProjectBreadcrumbsProps): JSX.Element {
4648
const { status, project: currentProject } = useAppSelector(selectCurrentProject);
4749

@@ -52,7 +54,7 @@ export default function ProjectBreadcrumbs({
5254
}
5355

5456
return (
55-
<Flex align="center" className={p_sm}>
57+
<Flex align="center" className={cx(p_sm, className)}>
5658
{ancestors.map((ancestor, x) => (
5759
<Ancestor
5860
key={x}

0 commit comments

Comments
 (0)