From 8316f6f3f3f849e09f75a31cb577f1a3cf582df0 Mon Sep 17 00:00:00 2001 From: Christophe Jossart Date: Thu, 27 Jun 2024 18:42:16 +0200 Subject: [PATCH 1/2] chore(SLB-442): prettier --- packages/drupal/gutenberg_blocks/src/preview.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/drupal/gutenberg_blocks/src/preview.ts b/packages/drupal/gutenberg_blocks/src/preview.ts index 5d2f15f5e..71939cdf7 100644 --- a/packages/drupal/gutenberg_blocks/src/preview.ts +++ b/packages/drupal/gutenberg_blocks/src/preview.ts @@ -37,7 +37,7 @@ }, ]; - const previewButton = `` + const previewButton = ``; const getPreviewSelect = () => { let previewSelect = ''; return previewSelect; - } + }; const previewSelect = getPreviewSelect(); const previewSidebarMarkup = ` @@ -97,18 +97,19 @@ ); const $previewButton = $('button.external-preview'); - $('select.external-preview').on( - 'change', - function (event: Event) { + $('select.external-preview') + .on('change', function (event: Event) { const selectedSize = $(event.target).val(); - const size = previewSizes.find((size) => size.id === selectedSize); + const size = previewSizes.find( + (size) => size.id === selectedSize, + ); if (!size) { return; } $previewButton.data('windowHeight', size.height); $previewButton.data('windowWidth', size.width); - }, - ).trigger('change'); + }) + .trigger('change'); $previewButton.on('click', function (event: Event) { const target = $(event.target); const windowWidth = target.data('windowWidth'); From 27ee0cd781eeac7133b3801c4993c4d3ff0963c2 Mon Sep 17 00:00:00 2001 From: Christophe Jossart Date: Thu, 27 Jun 2024 19:24:02 +0200 Subject: [PATCH 2/2] chore(SLB-442): prettier --- packages/drupal/gutenberg_blocks/css/edit.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/drupal/gutenberg_blocks/css/edit.css b/packages/drupal/gutenberg_blocks/css/edit.css index 55c0ecd92..496f61bd6 100644 --- a/packages/drupal/gutenberg_blocks/css/edit.css +++ b/packages/drupal/gutenberg_blocks/css/edit.css @@ -147,7 +147,7 @@ .gutenberg__editor .drupal-preview-sidebar--header select::before, .gutenberg__editor .drupal-preview-sidebar--header select::after { --size: 0.3rem; - content: ""; + content: ''; position: absolute; right: 1rem; pointer-events: none;