Skip to content

Commit

Permalink
feat: Added blocklyTrashcanFlyout CSS class (#8372)
Browse files Browse the repository at this point in the history
* feat: Add blocklyTrashcanFlyout class

* Fixed formatting issues

* fix: versioning reverted to original

* fix: prettier version resolved

* fix: clean installation
  • Loading branch information
ChaitanyaYeole02 authored Jul 17, 2024
1 parent ae80adf commit e298f55
Show file tree
Hide file tree
Showing 2 changed files with 1,327 additions and 1,463 deletions.
7 changes: 3 additions & 4 deletions core/trashcan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,9 @@ export class Trashcan
/** Initializes the trash can. */
init() {
if (this.workspace.options.maxTrashcanContents > 0) {
dom.insertAfter(
this.flyout!.createDom(Svg.SVG)!,
this.workspace.getParentSvg(),
);
const flyoutDom = this.flyout!.createDom(Svg.SVG)!;
dom.addClass(flyoutDom, 'blocklyTrashcanFlyout');
dom.insertAfter(flyoutDom, this.workspace.getParentSvg());
this.flyout!.init(this.workspace);
}
this.workspace.getComponentManager().addComponent({
Expand Down
Loading

0 comments on commit e298f55

Please sign in to comment.