diff --git a/site/app/editor-example.tsx b/site/app/editor-example.tsx index 64229b6..4f5e5dd 100644 --- a/site/app/editor-example.tsx +++ b/site/app/editor-example.tsx @@ -2,7 +2,6 @@ import { LiveEditor } from './live-editor' const defaultCode = `\ import { useState } from 'react' -import { highlight } from 'sugar-high' import { Editor } from 'codice' const defaultText = 'console.log("hello world")' diff --git a/site/app/live-editor.tsx b/site/app/live-editor.tsx index 2958326..e8ca6fa 100644 --- a/site/app/live-editor.tsx +++ b/site/app/live-editor.tsx @@ -156,58 +156,60 @@ export function LiveEditor({ return (
{/* Controls to for displaying the `title`, `controls`, `lineNumbers` */} -
- { setTitle(v) }} - /> - } +
+
+ { setTitle(v) }} + /> + } + /> + + +
+ - -
- - -
`\ content: counter(codice-code-line-number); display: inline-block; min-width: calc(2rem - 6px); - width: var(--codice-code-line-number-width); margin-left: calc(var(--codice-code-line-number-width) * -1); margin-right: 16px; text-align: right; diff --git a/src/editor/editor.test.tsx b/src/editor/editor.test.tsx index 8585da8..c183e31 100644 --- a/src/editor/editor.test.tsx +++ b/src/editor/editor.test.tsx @@ -167,7 +167,6 @@ describe('Code', () => { content: counter(codice-code-line-number); display: inline-block; min-width: calc(2rem - 6px); - width: var(--codice-code-line-number-width); margin-left: calc(var(--codice-code-line-number-width) * -1); margin-right: 16px; text-align: right; @@ -343,7 +342,6 @@ describe('Code', () => { content: counter(codice-code-line-number); display: inline-block; min-width: calc(2rem - 6px); - width: var(--codice-code-line-number-width); margin-left: calc(var(--codice-code-line-number-width) * -1); margin-right: 16px; text-align: right; @@ -486,7 +484,6 @@ describe('Code', () => { content: counter(codice-code-line-number); display: inline-block; min-width: calc(2rem - 6px); - width: var(--codice-code-line-number-width); margin-left: calc(var(--codice-code-line-number-width) * -1); margin-right: 16px; text-align: right;