mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Auto-generate: Improve long text generation (#76213)
Breaklines don't render for history text
This commit is contained in:
parent
ecbe191a30
commit
7d0c4c5aa7
@ -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.';
|
||||
|
||||
|
@ -62,6 +62,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
||||
display: 'flex',
|
||||
flexBasis: '100%',
|
||||
flexGrow: 3,
|
||||
whiteSpace: 'pre-wrap',
|
||||
marginTop: 20,
|
||||
}),
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user