Add conditional class to editor textarea wrap
This commit is contained in:
@@ -914,7 +914,11 @@ export default function App() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="editor__textarea-wrap">
|
<div
|
||||||
|
className={`editor__textarea-wrap${
|
||||||
|
markdownPreview ? " editor__textarea-wrap--preview" : ""
|
||||||
|
}`}
|
||||||
|
>
|
||||||
{showLineNumbersActive ? (
|
{showLineNumbersActive ? (
|
||||||
<div className="line-measure" ref={measureRef} aria-hidden="true">
|
<div className="line-measure" ref={measureRef} aria-hidden="true">
|
||||||
{lines.map((line, index) => (
|
{lines.map((line, index) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user