Skip to content

Commit

Permalink
Make spacing more relaxed
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Nov 7, 2023
1 parent df9ff80 commit 0f1a2c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
.Breadcrumbs3000__here {
position: relative;
line-height: 1.2;
margin: calc(0.125rem * (1 - var(--breadcrumbs-compaction-rate))) 0 0;
margin: calc(0.25rem * (1 - var(--breadcrumbs-compaction-rate))) 0
calc(0.125rem * (1 - var(--breadcrumbs-compaction-rate)));
font-size: 1rem;
font-weight: 700;
overflow: hidden;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Popover } from 'lib/lemon-ui/Popover/Popover'
import { breadcrumbsLogic } from '~/layout/navigation/Breadcrumbs/breadcrumbsLogic'
import { LemonSkeleton } from '@posthog/lemon-ui'

const COMPACTION_DISTANCE = 32
const COMPACTION_DISTANCE = 44

/**
* In PostHog 3000 breadcrumbs also serve as the top bar. This is marked by theses two features:
Expand Down Expand Up @@ -37,7 +37,6 @@ export function Breadcrumbs(): JSX.Element | null {
className="Breadcrumbs3000"
style={

Check warning on line 38 in frontend/src/layout/navigation-3000/components/Breadcrumbs.tsx

View workflow job for this annotation

GitHub Actions / Code quality checks

style should be avoided in favor of utility CSS classes - see https://storybook.posthog.net/?path=/docs/lemon-ui-utilities--overview
{
// eslint-disable-line react/forbid-dom-props
'--breadcrumbs-compaction-rate': compactionRate,
} as React.CSSProperties
}
Expand Down

0 comments on commit 0f1a2c5

Please sign in to comment.