Skip to content

Commit

Permalink
feat(plugin-exercise-group): always show solution button
Browse files Browse the repository at this point in the history
  • Loading branch information
elbotho committed Mar 28, 2024
1 parent 60777a8 commit 6f1f9f1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/editor/src/plugins/exercise/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,7 @@ export function ExerciseEditor(props: ExerciseProps) {
{solution.render()}
</div>
) : (
<div
className={cn(
'mt-20 hidden max-w-[50%] group-focus-within/exercise:block',
focused && '!block'
)}
>
<div className={cn('mt-12 max-w-[50%]', focused && '!block')}>
<AddButton onClick={() => solution.create()}>
{exTemplateStrings.createSolution}
</AddButton>
Expand Down

0 comments on commit 6f1f9f1

Please sign in to comment.