Style and flow nudges

This commit is contained in:
Terry Sutton committed 2024-02-19 15:14:55 -03:30
1 parent 5affe6aaf1
commit 463f8cd3ce
3 files changed
+5 -5

No files matched your search

@@ -35,8 +35,8 @@ export const Messages = async ({ threadId }: { threadId: string }) => {
return (
<ScrollArea className="grow h-px">
<div className="flex flex-col py-2 xl:py-6">
<div className="flex flex-col py-2 xl:py-6">
<div className="flex flex-col mb-6 xl:mb-12">
{userMessages.map((message, idx) => {
const createdAtTimestamp = dayjs(message.createdAt)
const isLatest = Array.isArray(messages) && idx === messages.length - 1
@@ -58,7 +58,7 @@ export const Messages = async ({ threadId }: { threadId: string }) => {
})}
</div>
<BottomMarker />
</div>
</ScrollArea>
)
}
@@ -131,7 +131,7 @@ const getLayoutedElements = (nodes: Node[], edges: Edge[]) => {
const dagreGraph = new dagre.graphlib.Graph()
dagreGraph.setDefaultEdgeLabel(() => ({}))
dagreGraph.setGraph({
rankdir: 'LR',
rankdir: 'TB',
align: 'UR',
nodesep: 25,
ranksep: 50,
@@ -46,7 +46,7 @@ const SchemaFlowHandler = ({ content }: SchemaGraphProps) => {
getGraphDataFromTables(tables).then(({ nodes, edges }) => {
reactFlowInstance.setNodes(nodes)
reactFlowInstance.setEdges(edges)
setTimeout(() => reactFlowInstance.fitView({}), 50)
setTimeout(() => reactFlowInstance.fitView({minZoom: 1}), 50)
})
}, [tables, resolvedTheme, reactFlowInstance])