Skip to content

Commit 30b482b

Browse files
authored
Merge pull request #59 from microsoft/adesousa_microsoft/generate-document-button-restyle
restyle chat input buttons
2 parents a0f3488 + 8ef882e commit 30b482b

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

frontend/src/pages/chat/Chat.tsx

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ const Chat = ({ type = ChatType.Browse }: Props) => {
980980
</Stack>
981981
)}
982982
<Stack>
983-
{appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured && (
983+
{appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured && type === ChatType.Template && (
984984
<CommandBarButton
985985
role="button"
986986
styles={{
@@ -992,8 +992,7 @@ const Chat = ({ type = ChatType.Browse }: Props) => {
992992
},
993993
root: {
994994
color: '#FFFFFF',
995-
background:
996-
'radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)'
995+
background: '#0F6CBD'
997996
},
998997
rootDisabled: {
999998
background: '#F0F0F0'
@@ -1017,19 +1016,13 @@ const Chat = ({ type = ChatType.Browse }: Props) => {
10171016
},
10181017
root: {
10191018
color: '#FFFFFF',
1020-
background:
1021-
'radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)'
1019+
background: '#0F6CBD'
10221020
},
10231021
rootDisabled: {
10241022
background: '#F0F0F0'
10251023
}
10261024
}}
1027-
className={
1028-
appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured &&
1029-
type !== ChatType.Browse
1030-
? styles.clearChatBroom
1031-
: styles.clearChatBroomNoCosmos
1032-
}
1025+
className={ styles.clearChatBroom }
10331026
iconProps={{ iconName: 'Broom' }}
10341027
onClick={
10351028
appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured &&
@@ -1071,8 +1064,6 @@ const Chat = ({ type = ChatType.Browse }: Props) => {
10711064
},
10721065
root: {
10731066
color: '#FFFFFF',
1074-
background:
1075-
'radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)'
10761067
},
10771068
rootDisabled: {
10781069
background: '#F0F0F0'

0 commit comments

Comments
 (0)