mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Improve image rendering for khoj generated images. FIx typing of stored excalidraw image.
This commit is contained in:
@@ -77,6 +77,21 @@ div.imageWrapper img {
|
|||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.khoj div.imageWrapper img {
|
||||||
|
height: 512px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.khoj div.imageWrapper {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.khoj div.imagesContainer {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex-direction: row;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
div.chatMessageContainer > img {
|
div.chatMessageContainer > img {
|
||||||
width: auto;
|
width: auto;
|
||||||
height: auto;
|
height: auto;
|
||||||
@@ -178,4 +193,9 @@ div.trainOfThoughtElement ul {
|
|||||||
div.youfullHistory {
|
div.youfullHistory {
|
||||||
max-width: 90%;
|
max-width: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.khoj div.imageWrapper img {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ def save_to_conversation_log(
|
|||||||
"turnId": turn_id,
|
"turnId": turn_id,
|
||||||
"images": generated_images,
|
"images": generated_images,
|
||||||
"queryFiles": [file.model_dump(mode="json") for file in raw_generated_files],
|
"queryFiles": [file.model_dump(mode="json") for file in raw_generated_files],
|
||||||
"excalidrawDiagram": str(generated_excalidraw_diagram),
|
"excalidrawDiagram": str(generated_excalidraw_diagram) if generated_excalidraw_diagram else None,
|
||||||
},
|
},
|
||||||
conversation_log=meta_log.get("chat", []),
|
conversation_log=meta_log.get("chat", []),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user