Auto-generate: Improve long text generation (#76213)

Breaklines don't render for history text
This commit is contained in:
Ivan Ortega Alba 2023-10-10 09:45:13 +02:00 committed by GitHub
parent ecbe191a30
commit 7d0c4c5aa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ const DESCRIPTION_GENERATION_STANDARD_PROMPT =
'You will be given the title and description of the dashboard the panel is in as well as the JSON for the panel.\n' +
'Your goal is to write a descriptive and concise panel description.\n' +
'The panel description is meant to explain the purpose of the panel, not just its attributes.\n' +
'Do not refer to the panel; simply describe its purpose.\n' +
'There should be no numbers in the description except for thresholds.\n' +
'The description should be, at most, 140 characters.';

View File

@ -62,6 +62,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
display: 'flex',
flexBasis: '100%',
flexGrow: 3,
whiteSpace: 'pre-wrap',
marginTop: 20,
}),
});