Skip to content

Commit

Permalink
fix(patch-detail): hide badge original contents only if editable
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantinos Maninakis <maninak@protonmail.com>
  • Loading branch information
maninak committed Jul 21, 2024
1 parent dd14a44 commit a19f22f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/webviews/src/components/PatchStatusBadge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ function onRadioChanged(ev: CustomEvent & { srcElement: HTMLInputElement }) {
:style="`background: color-mix(in srgb-linear, var(--vscode-patch-${status}), var(--vscode-editor-foreground) 5%);`"
>
<span
class="-mb-[0.125em] group-hover:invisible group-focus-within:invisible"
:class="{ invisible: isEditingStatus }"
class="-mb-[0.125em]"
:class="{'group-hover:invisible group-focus-within:invisible':isAuthedToEditStatus, 'invisible': isEditingStatus }"
>
<PatchStatusIcon :status="status" />
</span>
<span
class="-mb-[0.125em] capitalize font-mono group-hover:invisible group-focus-within:invisible"
:class="{ invisible: isEditingStatus }"
class="-mb-[0.125em] capitalize font-mono"
:class="{'group-hover:invisible group-focus-within:invisible':isAuthedToEditStatus, 'invisible': isEditingStatus }"
>
{{ status }}
</span>
Expand Down

0 comments on commit a19f22f

Please sign in to comment.