| @@ -56,9 +56,8 @@ | ||
| 56 | 56 | lpUtils.lpOnElementReady( '#wp-content-media-buttons', ( el ) => { |
| 57 | 57 | el.insertAdjacentHTML( |
| 58 | 58 | 'beforeend', |
| 59 | 59 | `<button type="button" |
| 60 | - style="padding: 5px 10px; justify-content: center;" | |
| 61 | 60 | class="lp-btn-generate-with-ai lp-btn-ai-style" |
| 62 | 61 | data-template="#lp-tmpl-edit-description-ai"> |
| 63 | 62 | <i class="lp-ico-ai"></i><span>Generate description with AI</span> |
| 64 | 63 | </button>`, |
| @@ -68,9 +67,8 @@ | ||
| 68 | 67 | const elInside = el.querySelector( '.postbox-header' ); |
| 69 | 68 | elInside.insertAdjacentHTML( |
| 70 | 69 | 'afterend', |
| 71 | 70 | `<button type="button" |
| 72 | - style="padding: 5px 10px; justify-content: center;" | |
| 73 | 71 | class="lp-btn-generate-with-ai lp-btn-ai-style" |
| 74 | 72 | data-template="#lp-tmpl-edit-image-ai"> |
| 75 | 73 | <i class="lp-ico-ai"></i><span>${ lpData.i18n.generate_with_ai }</span> |
| 76 | 74 | </button>` |
| @@ -101,9 +99,8 @@ | ||
| 101 | 99 | lpUtils.lpOnElementReady( '.editor-post-featured-image', ( el ) => { |
| 102 | 100 | el.insertAdjacentHTML( |
| 103 | 101 | 'beforebegin', |
| 104 | 102 | `<button type="button" |
| 105 | - style="padding: 5px 10px; justify-content: center;" | |
| 106 | 103 | class="lp-btn-generate-with-ai" |
| 107 | 104 | data-template="#lp-tmpl-edit-description-ai"> |
| 108 | 105 | <i class="lp-ico-ai"></i><span>Generate description with AI</span> |
| 109 | 106 | </button>` |
| @@ -114,9 +111,8 @@ | ||
| 114 | 111 | lpUtils.lpOnElementReady( '.editor-post-featured-image', ( el ) => { |
| 115 | 112 | el.insertAdjacentHTML( |
| 116 | 113 | 'afterend', |
| 117 | 114 | `<button type="button" |
| 118 | - style="padding: 5px 10px; justify-content: center;" | |
| 119 | 115 | class="lp-btn-generate-with-ai" |
| 120 | 116 | data-template="#lp-tmpl-edit-image-ai"> |
| 121 | 117 | <i class="lp-ico-ai"></i><span>${ lpData.i18n.generate_with_ai }</span> |
| 122 | 118 | </button>` |