Skip to content

Commit

Permalink
math: add visual active state for latex editor
Browse files Browse the repository at this point in the history
  • Loading branch information
elbotho committed Aug 7, 2023
1 parent 7ea11db commit 4ae81d3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/serlo-editor/math/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,14 @@ export function MathEditor(props: MathEditorProps) {
/>
</div>
) : (
<MathRenderer {...props} ref={anchorRef} />
<div
className={clsx(
props.inline ? 'inline-block' : '',
'rounded-md bg-editor-primary-200'
)}
>
<MathRenderer {...props} ref={anchorRef} />
</div>
)}

{renderControlsPortal(
Expand Down

0 comments on commit 4ae81d3

Please sign in to comment.