Skip to content

Commit 75181f0

Browse files
authored
fix(lightspeed): preserve indentation for lists in chatbot (#3083)
* exclude lists from flattening to preserve indentation Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * changeset Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * update comment Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> --------- Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
1 parent ca84f13 commit 75181f0

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-lightspeed': patch
3+
---
4+
5+
preserve indentation for lists in chat window

workspaces/lightspeed/plugins/lightspeed/src/components/LightSpeedChat.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ const ConditionalWrapper = ({
138138
const useStyles = makeStyles(theme => ({
139139
body: {
140140
// remove default margin and padding from common elements
141-
'& h1, & h2, & h3, & h4, & h5, & h6, & p, & ul, & ol, & li': {
141+
// lists excluded for proper formatting
142+
'& h1, & h2, & h3, & h4, & h5, & h6, & p, & li': {
142143
margin: 0,
143144
padding: 0,
144145
},

0 commit comments

Comments
 (0)