Skip to content

Commit a0f3488

Browse files
Merge pull request #58 from microsoft/jamesbugs1
Bug fixes from QA.
2 parents 6dc2e3f + c1b2a11 commit a0f3488

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
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: 12 additions & 8 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
}
@@ -1068,18 +1071,19 @@ const Chat = ({ type = ChatType.Browse }: Props) => {
10681071
},
10691072
root: {
10701073
color: '#FFFFFF',
1071-
background: '#1367CF'
1074+
background:
1075+
'radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)'
10721076
},
10731077
rootDisabled: {
10741078
background: '#F0F0F0'
10751079
}
10761080
}}
10771081
className={styles.generateDocumentIcon}
1078-
iconProps={{ iconName: 'WordDocument' }}
1082+
iconProps={{ iconName: 'Generate' }}
10791083
onClick={generateDocument} //Update for Document Generation
1080-
disabled={draftDocument === undefined && disabledButton()}
1081-
aria-label="generate document"
1082-
text="Generate Document"
1084+
disabled={draftDocument === undefined || disabledButton()}
1085+
aria-label="generate draft"
1086+
title='Generate Draft'
10831087
/>
10841088
)}
10851089
</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)