Skip to content

Commit 42f72ab

Browse files
committed
Bug fixes from QA.
1 parent 8376aac commit 42f72ab

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

frontend/src/pages/chat/Chat.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@
211211
justify-content: center;
212212
align-items: center;
213213
position: absolute;
214-
width: 180px;
214+
width: 40px;
215215
height: 40px;
216-
right: -200px;
216+
right: -60px;
217217
top: 40px;
218218
color: #ffffff;
219219
border-radius: 4px;

frontend/src/pages/chat/Chat.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ const modalStyles: IModalStyles = {
8080
borderRadius: '8px'
8181
},
8282
root: undefined,
83-
scrollableContent: undefined,
83+
scrollableContent:
84+
{
85+
minWidth: '800px'
86+
},
8487
layer: undefined,
8588
keyboardMoveIconContainer: undefined,
8689
keyboardMoveIcon: undefined
@@ -1023,14 +1026,14 @@ const Chat = ({ type = ChatType.Browse }: Props) => {
10231026
}}
10241027
className={
10251028
appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured &&
1026-
type !== ChatType.Template
1029+
type !== ChatType.Browse
10271030
? styles.clearChatBroom
10281031
: styles.clearChatBroomNoCosmos
10291032
}
10301033
iconProps={{ iconName: 'Broom' }}
10311034
onClick={
10321035
appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured &&
1033-
type !== ChatType.Template
1036+
type !== ChatType.Browse
10341037
? clearChat
10351038
: newChat
10361039
}
@@ -1075,11 +1078,11 @@ const Chat = ({ type = ChatType.Browse }: Props) => {
10751078
}
10761079
}}
10771080
className={styles.generateDocumentIcon}
1078-
iconProps={{ iconName: 'WordDocument' }}
1081+
iconProps={{ iconName: 'Generate' }}
10791082
onClick={generateDocument} //Update for Document Generation
10801083
disabled={draftDocument === undefined && disabledButton()}
1081-
aria-label="generate document"
1082-
text="Generate Document"
1084+
aria-label="generate draft"
1085+
title='Generate Draft'
10831086
/>
10841087
)}
10851088
</Stack>

frontend/src/pages/draft/Draft.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,16 @@ const Draft = (): JSX.Element => {
6464
text: '',
6565
break: 1 // Add a new line after the section title
6666
}),
67-
new TextRun({
68-
text: section.content,
69-
size: 16
70-
}),
71-
new TextRun({
72-
text: '\n',
73-
break: 1 // Add a new line after the content
74-
})
67+
...section.content.split('\n').map((line, lineIndex) => [
68+
new TextRun({
69+
text: line,
70+
size: 16
71+
}),
72+
new TextRun({
73+
text: '',
74+
break: 1 // Add a new line after each line of content
75+
})
76+
]).flat()
7577
]
7678
})
7779
)

0 commit comments

Comments
 (0)