Skip to content

Commit 319ea09

Browse files
committed
fix: remove container padding from prism theme causing cursor misalignment (#962)
1 parent 5ae171b commit 319ea09

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

components/prismTheme.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export default {
44
plain: {
55
backgroundColor: '#27212e',
66
color: '#ffffff',
7-
padding: '0.25em',
87
},
98
styles: [
109
{

test/components/__snapshots__/LiveEdit.spec.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ exports[`LiveEdit renders correctly 1`] = `
9797
>
9898
<div
9999
class="c2"
100-
style="position: relative; text-align: left; box-sizing: border-box; padding: 0.25em; overflow: hidden; background-color: rgb(39, 33, 46); color: rgb(255, 255, 255);"
100+
style="position: relative; text-align: left; box-sizing: border-box; padding: 0px; overflow: hidden; background-color: rgb(39, 33, 46); color: rgb(255, 255, 255);"
101101
>
102102
<pre
103103
aria-hidden="true"
104104
style="margin: 0px; border: 0px; background: none; box-sizing: inherit; display: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-ligatures: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; tab-size: inherit; text-indent: inherit; text-rendering: inherit; text-transform: inherit; white-space: pre-wrap; word-break: keep-all; overflow-wrap: break-word; position: relative; pointer-events: none; padding: 10px 10px 10px 10px;"
105105
>
106106
<span
107107
class="token-line"
108-
style="color: rgb(255, 255, 255); padding: 0.25em;"
108+
style="color: rgb(255, 255, 255);"
109109
>
110110
<span
111111
class="token keyword"

0 commit comments

Comments
 (0)