Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ensure diff code block lines are formatted correctly #11569

Closed
wants to merge 1 commit into from

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Oct 15, 2024

This PR removes the negative margin from the changed lines in the diff view to fix the vertical alignment of the changed and unchanged lines I noticed in #11568.

I'm not sure if this is the best way to fix this so please feel free to close the PR in favour of a better solution! Especially because it seems like we added the negative margin specifically to fix formatting previously in https://github.com/getsentry/sentry-docs/pull/10996/files.

potentially fixes #11568

before:
image

after:
image

Copy link

vercel bot commented Oct 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
changelog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 8:04am
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 8:04am
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 8:04am

Copy link

codecov bot commented Oct 15, 2024

Bundle Report

Changes will decrease total bundle size by 99 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 7.46MB 6 bytes (-0.0%) ⬇️
sentry-docs-edge-server-array-push 257.08kB 3 bytes (-0.0%) ⬇️
sentry-docs-client-array-push 6.43MB 90 bytes (-0.0%) ⬇️

@Lms24
Copy link
Member Author

Lms24 commented Oct 15, 2024

turns out this was caused by the specific code block language selection rather than a style bug. Closing this PR and will open another one in a sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lines in diff code block are shifted to the left
1 participant