Skip to content

Commit

Permalink
adding profile image change cypress data flag
Browse files Browse the repository at this point in the history
  • Loading branch information
codeho committed Aug 22, 2023
1 parent 2c1ee54 commit c0f7ee4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/o-editors/src/PicturePreview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ function onkeydown(e: KeyboardEvent) {
<div class="text-center">
<div class="relative inline-flex">
<div
class="absolute z-10 text-center align-top list-none cursor-pointer top-1 right-2 inline-table "
class="absolute z-10 text-center align-top list-none cursor-pointer top-1 right-2 inline-table"
data-cy="editPhoto"
role="presentation"
on:click="{() => {
context.dirtyFlags[context.field] = true;
Expand All @@ -53,12 +54,7 @@ function onkeydown(e: KeyboardEvent) {
</span>
</div>
<div class="w-48 rounded-full w-92 h-92">
<img
class="m-auto rounded-full"
id="cropCanvas"
src="{context.data[context.field]}"
height="300"
alt="avatar" />
<img class="m-auto rounded-full" id="cropCanvas" src="{context.data[context.field]}" height="300" alt="avatar" />
</div>
</div>
</div>
Expand Down

0 comments on commit c0f7ee4

Please sign in to comment.