mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix prompt resize & style resizer (#3652)
This commit is contained in:
commit
818616a0c5
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user