File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
colab-webapp/src/main/node/app/src/components Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { css } from '@emotion/css';
99import { CardContent } from 'colab-rest-client' ;
1010import * as React from 'react' ;
1111import { useAndLoadSubCards } from '../../store/selectors/cardSelector' ;
12- import { space_sm } from '../../styling/style' ;
12+ import { space_lg , space_sm , space_xs } from '../../styling/style' ;
1313import InlineLoading from '../common/element/InlineLoading' ;
1414import Flex from '../common/layout/Flex' ;
1515import { 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
Original file line number Diff line number Diff line change @@ -37,11 +37,13 @@ const breadcrumbsStyle = css({
3737interface ProjectBreadcrumbsProps {
3838 card ?: Card ;
3939 cardContent ?: CardContent ;
40+ className ?: string ;
4041}
4142
4243export 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 }
You can’t perform that action at this time.
0 commit comments