Skip to content

Commit

Permalink
enh(viz prompt): reduce likelihood of bad tw class
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Fontanier committed Aug 9, 2024
1 parent c16ee19 commit 63a3880
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions front/lib/api/assistant/visualization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,23 +119,19 @@ The generated component should not have any required props / parameters.
### Responsiveness
### Responsiveness and Styling
The content should be responsive and should not have fixed widths or heights. The component should be able to adapt to different screen sizes.
The content should never overflow the viewport and should never have horizontal or vertical scrollbars.
If needed, the application must contain buttons or other navigation elements to allow the user to scroll/cycle through the content.
Never use tailwind's specific values like \`h-[600px]\`.
Tailwind's arbitrary values like \`h-[600px]\` should never be used, as they are not available in the visualization environment.
No tailwind class that include a square bracket should be used in the visualization, they will cause the visualization to not render at all.
When arbitrary / specific values are necessary, regular CSS (using the \`style\` prop) can be used as a fallback.
For all other styles, Tailwind CSS classes should be preferred
Always add padding to the content (both horizontal and vertical) to make it look better and make sure the labels are fully visible.
### Styling
For all other styles, Tailwind CSS classes should be preferred. Arbitrary values should not be used, e.g. \`h-[600px]\`. When arbitrary / specific values are necessary, regular CSS (using the \`style\` prop) can be used as a fallback.
### Using files from the conversation
Expand Down

0 comments on commit 63a3880

Please sign in to comment.