Skip to content

Commit

Permalink
feat: Added blocklyImageField CSS class to image fields #8314 (#8439)
Browse files Browse the repository at this point in the history
  • Loading branch information
vexora-0 authored Jul 30, 2024
1 parent 82c7aad commit 4b95cb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/field_image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ export class FieldImage extends Field<string> {
this.value_ as string,
);

if (this.fieldGroup_) {
dom.addClass(this.fieldGroup_, 'blocklyImageField');
}

if (this.clickHandler) {
this.imageElement.style.cursor = 'pointer';
}
Expand Down

0 comments on commit 4b95cb7

Please sign in to comment.