diff --git a/projects/plugins/jetpack/changelog/update-ai-excerpt-disable-generate-button b/projects/plugins/jetpack/changelog/update-ai-excerpt-disable-generate-button new file mode 100644 index 0000000000000..3ba82c4a57ee1 --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-ai-excerpt-disable-generate-button @@ -0,0 +1,4 @@ +Significance: patch +Type: enhancement + +AI Excerpt: disable Generate button diff --git a/projects/plugins/jetpack/extensions/blocks/ai-assistant/extensions/content-lens/plugins/ai-post-excerpt/index.tsx b/projects/plugins/jetpack/extensions/blocks/ai-assistant/extensions/content-lens/plugins/ai-post-excerpt/index.tsx index 49dbb12c1a445..c9062523b8cb4 100644 --- a/projects/plugins/jetpack/extensions/blocks/ai-assistant/extensions/content-lens/plugins/ai-post-excerpt/index.tsx +++ b/projects/plugins/jetpack/extensions/blocks/ai-assistant/extensions/content-lens/plugins/ai-post-excerpt/index.tsx @@ -136,7 +136,7 @@ function AiPostExcerpt() { onClick={ () => requestExcerpt() } variant="secondary" isBusy={ isBusy } - disabled={ isGenerateButtonDisabled } + disabled={ isGenerateButtonDisabled || requestingState !== 'init' } > { __( 'Generate', 'jetpack' ) } diff --git a/projects/plugins/jetpack/extensions/blocks/ai-assistant/extensions/content-lens/plugins/ai-post-excerpt/style.scss b/projects/plugins/jetpack/extensions/blocks/ai-assistant/extensions/content-lens/plugins/ai-post-excerpt/style.scss index cfdd9740c7515..f44f6abf49f90 100644 --- a/projects/plugins/jetpack/extensions/blocks/ai-assistant/extensions/content-lens/plugins/ai-post-excerpt/style.scss +++ b/projects/plugins/jetpack/extensions/blocks/ai-assistant/extensions/content-lens/plugins/ai-post-excerpt/style.scss @@ -12,5 +12,5 @@ justify-content: end; margin-bottom: 10px; gap: 12px; - justify-content:flex-end; + justify-content:space-around; }