|
32 | 32 |
|
33 | 33 | <:overlay> |
34 | 34 | {{#if (eq @autofixRequest.status "success")}} |
35 | | - <SecondaryButton class="bg-gray-900 mt-6" {{on "click" this.handleShowExplanationButtonClick}}> |
| 35 | + <SecondaryButton @size="small" class="bg-gray-900 mt-6" {{on "click" this.handleShowExplanationButtonClick}}> |
36 | 36 | <div class="flex items-center gap-2"> |
37 | 37 | <div class="flex">{{svg-jar "eye" class="size-6"}}</div> |
38 | 38 | Explain more? |
|
43 | 43 | </BlurredOverlay> |
44 | 44 |
|
45 | 45 | {{#animated-if (not this.explanationIsBlurred) use=this.transition duration=200}} |
46 | | - <BlurredOverlay @isBlurred={{this.diffIsBlurred}} @overlayClass="bg-gray-950/20" class="-mx-4 -mb-4"> |
47 | | - <:content> |
48 | | - <div class="p-4 flex flex-col gap-6"> |
49 | | - {{#each this.changedFilesForRender key="filename" as |changedFile|}} |
50 | | - <FileDiffCard |
51 | | - @code={{changedFile.diff}} |
52 | | - @filename={{changedFile.filename}} |
53 | | - @forceDarkTheme={{true}} |
54 | | - {{! @glint-expect-error language can be nullable }} |
55 | | - @language={{@autofixRequest.submission.repository.language.slug}} |
56 | | - /> |
57 | | - {{/each}} |
| 46 | + <div class="w-full flex items-center justify-center mt-4"> |
| 47 | + <SecondaryButton @size="small" class="bg-gray-900" {{on "click" this.handleToggleFixedCodeButtonClick}}> |
| 48 | + <div class="flex items-center gap-2"> |
| 49 | + <div class="flex">{{svg-jar "eye" class="size-6"}}</div> |
| 50 | + |
| 51 | + {{#if this.diffIsHidden}} |
| 52 | + Show fixed code |
| 53 | + {{else}} |
| 54 | + Hide fixed code |
| 55 | + {{/if}} |
58 | 56 | </div> |
59 | | - </:content> |
60 | | - <:overlay> |
61 | | - {{#if (eq @autofixRequest.status "success")}} |
62 | | - <SecondaryButton class="bg-gray-900 mt-10" {{on "click" this.handleShowFixedCodeButtonClick}}> |
63 | | - <div class="flex items-center gap-2"> |
64 | | - <div class="flex">{{svg-jar "eye" class="size-6"}}</div> |
65 | | - Show fixed code |
66 | | - </div> |
67 | | - </SecondaryButton> |
68 | | - {{/if}} |
69 | | - </:overlay> |
70 | | - </BlurredOverlay> |
| 57 | + </SecondaryButton> |
| 58 | + </div> |
| 59 | + |
| 60 | + {{#animated-if (not this.diffIsHidden) use=this.transition duration=200}} |
| 61 | + <div class="flex flex-col gap-6 pt-4"> |
| 62 | + {{#each this.changedFilesForRender key="filename" as |changedFile|}} |
| 63 | + <FileDiffCard |
| 64 | + @code={{changedFile.diff}} |
| 65 | + @filename={{changedFile.filename}} |
| 66 | + @forceDarkTheme={{true}} |
| 67 | + {{! @glint-expect-error language can be nullable }} |
| 68 | + @language={{@autofixRequest.submission.repository.language.slug}} |
| 69 | + /> |
| 70 | + {{/each}} |
| 71 | + </div> |
| 72 | + {{/animated-if}} |
71 | 73 | {{/animated-if}} |
72 | 74 | </div> |
73 | 75 | {{/if}} |
|
0 commit comments