Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion x-pack/plugins/code/public/components/main/breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class Breadcrumb extends React.PureComponent<Props> {
const { resource, org, repo, revision, path } = this.props.routeParams;
const repoUri = `${resource}/${org}/${repo}`;

const breadcrumbs: Array<{ text: string; href: string }> = [];
const breadcrumbs: Array<{ text: string; href: string; className?: string }> = [];
const pathSegments = path ? path.split('/') : [];

pathSegments.forEach((p, index) => {
Expand All @@ -26,6 +26,7 @@ export class Breadcrumb extends React.PureComponent<Props> {
breadcrumbs.push({
text: p,
href,
className: 'code-no-min-width',
});
});
return <EuiBreadcrumbs max={Number.MAX_VALUE} breadcrumbs={breadcrumbs} />;
Expand Down
4 changes: 4 additions & 0 deletions x-pack/plugins/code/public/components/main/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,7 @@
.codeIcon__language {
fill: $euiColorDarkestShade;
}

.code-no-min-width {
min-width: unset !important;
}