fixes
This commit is contained in:
parent
464151ca67
commit
095fe34c81
4 changed files with 5 additions and 4 deletions
|
|
@ -30,7 +30,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
flex-shrink: 0;
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
width: 280px;
|
width: 280px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
||||||
|
|
@ -764,7 +764,7 @@ export const Automation2FlowEditor: React.FC<Automation2FlowEditorProps> = ({ in
|
||||||
Tracing
|
Tracing
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ flex: 1, overflow: 'hidden' }}>
|
<div style={{ flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden', minHeight: 0 }}>
|
||||||
{rightTab === 'nodes' ? (
|
{rightTab === 'nodes' ? (
|
||||||
renderSidebar()
|
renderSidebar()
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
|
|
@ -455,8 +455,6 @@ export function FormGeneratorForm<T extends Record<string, any>>({
|
||||||
|
|
||||||
// Validate all fields
|
// Validate all fields
|
||||||
const validateFields = (): boolean => {
|
const validateFields = (): boolean => {
|
||||||
const { t } = useLanguage();
|
|
||||||
|
|
||||||
const newErrors: Record<string, string> = {};
|
const newErrors: Record<string, string> = {};
|
||||||
const filteredAttrs = getFilteredAttributes();
|
const filteredAttrs = getFilteredAttributes();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,8 @@ export const ChatStream: React.FC<ChatStreamProps> = ({ messages,
|
||||||
{children}
|
{children}
|
||||||
</a>
|
</a>
|
||||||
),
|
),
|
||||||
|
img: ({ src, alt, ...rest }) =>
|
||||||
|
src ? <img src={src} alt={alt || ''} {...rest} style={{ maxWidth: '100%', borderRadius: 6 }} /> : null,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{msg.message}
|
{msg.message}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue