fix(ui): fix prompt resize & style resizer (#3652)

This commit is contained in:
blessedcoolant 2023-07-05 23:42:23 +12:00 committed by GitHub
commit 818616a0c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,28 @@
import { defineStyle, defineStyleConfig } from '@chakra-ui/react';
import { getInputOutlineStyles } from '../util/getInputOutlineStyles';
const invokeAI = defineStyle((props) => getInputOutlineStyles(props));
const invokeAI = defineStyle((props) => ({
...getInputOutlineStyles(props),
'::-webkit-scrollbar': {
display: 'initial',
},
'::-webkit-resizer': {
backgroundImage: `linear-gradient(135deg,
var(--invokeai-colors-base-50) 0%,
var(--invokeai-colors-base-50) 70%,
var(--invokeai-colors-base-200) 70%,
var(--invokeai-colors-base-200) 100%)`,
},
_dark: {
'::-webkit-resizer': {
backgroundImage: `linear-gradient(135deg,
var(--invokeai-colors-base-900) 0%,
var(--invokeai-colors-base-900) 70%,
var(--invokeai-colors-base-800) 70%,
var(--invokeai-colors-base-800) 100%)`,
},
},
}));
export const textareaTheme = defineStyleConfig({
variants: {