@@ -58,7 +58,8 @@
margin: 0;
}
-html {}
+html {
+}
body {
max-width: 100vw;
@@ -131,6 +132,18 @@ p {
/* Измените тень, если необходимо */
}
+.MuiInputBase-input:-webkit-autofill,
+.MuiInputBase-input:-webkit-autofill:hover,
+.MuiInputBase-input:-webkit-autofill:focus,
+.MuiInputBase-input:-webkit-autofill:active {
+ /* box-shadow: 0 0 0 100px var(--new-ui-main-color) inset !important; */
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: var(--text-color-main);
+ transition: background-color 5000s ease-in-out 0s;
+ box-shadow: inset 0 0 0 100px var(--new-ui-main-color);
+ border-radius: 15px;
+}
+
/* Изменение цвета полоски сверху выпадающего списка */
.MuiAutocomplete-listbox:before {
border-top: 1px solid var(--new-ui-main-color);
@@ -207,7 +220,8 @@ p {
}
/* Примените фиксированную ширину, если необходимо */
-.MuiMenu-paper {}
+.MuiMenu-paper {
+}
.pd-30 {
padding: 30px;
@@ -368,7 +382,7 @@ textarea {
width: 150px !important;
}
-.rdw-dropdown-optionwrapper>li {
+.rdw-dropdown-optionwrapper > li {
color: inherit !important;
}
@@ -442,4 +456,4 @@ textarea {
.my-node-exit-active {
opacity: 0;
transition: opacity 400ms;
-}
\ No newline at end of file
+}
@@ -1,4 +1,5 @@
.button {
- background-color: transparent;
- border: 0;
-}
\ No newline at end of file
+ background-color: transparent;
+ border: 0;
+ cursor: pointer;
+}
@@ -175,11 +175,15 @@ export function BotMessage(props: any) {
theme={theme}
/>
-
+
-
+
-
-
+
+
-
+
@@ -621,7 +702,8 @@ export const UserMessage = React.memo(function UserMessage({ setCurrentSrc, setM
marginTop: 0.4,
textAlign: 'left',
whiteSpace:
- props.message.content.length > 30
+ props.message.content
+ .length > 30
? 'pre-wrap'
: 'pre',
}}
@@ -633,60 +715,68 @@ export const UserMessage = React.memo(function UserMessage({ setCurrentSrc, setM
)
) : (
-
-
+
+
@@ -700,13 +790,17 @@ export const UserMessage = React.memo(function UserMessage({ setCurrentSrc, setM
sx={{
'& .MuiMenu-list': {
backgroundColor:
- theme === 'dark' ? '#303035' : '#EFF0F2',
+ theme === 'dark'
+ ? '#303035'
+ : '#EFF0F2',
color: '#8280FF',
borderRadius: '15px',
},
'& .MuiPopover-paper': {
backgroundColor:
- theme === 'dark' ? '#303035' : '#EFF0F2',
+ theme === 'dark'
+ ? '#303035'
+ : '#EFF0F2',
borderRadius: '15px',
},
}}
@@ -766,7 +860,9 @@ export const UserMessage = React.memo(function UserMessage({ setCurrentSrc, setM
}}
onClick={() => {
if (props.deleteMessage)
- props.deleteMessage(props.message.uid)
+ props.deleteMessage(
+ props.message.uid
+ )
}}
>
30 ? 'pre-wrap' : 'pre',
+ props.message.content.length > 30
+ ? 'pre-wrap'
+ : 'pre',
}}
>
{/**/}