Improve screenshot experience in new task ui (#408)

This commit is contained in:
Salih Altun
2024-06-03 21:22:18 +03:00
committed by GitHub
parent 1333e89c12
commit 16ea23bc0c
3 changed files with 27 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ function ActionScreenshot({ stepId, index }: Props) {
}
return screenshot ? (
<figure className="max-h-[400px] flex flex-col mx-auto items-center gap-2 overflow-hidden">
<figure className="max-w-full flex flex-col mx-auto items-center gap-2 overflow-hidden">
<ZoomableImage src={getImageURL(screenshot)} alt="llm-screenshot" />
</figure>
) : (

View File

@@ -23,7 +23,7 @@ function TaskActions() {
return (
<div className="flex gap-2">
<div className="w-3/4 h-[40rem] border rounded">
<div className="w-3/4 border rounded">
<div className="p-4">
<InputReasoningCard
input={activeAction.input}
@@ -32,12 +32,10 @@ function TaskActions() {
/>
</div>
<div className="p-4">
<div className="p-4">
<ActionScreenshot
stepId={activeAction.stepId}
index={activeAction.index}
/>
</div>
<ActionScreenshot
stepId={activeAction.stepId}
index={activeAction.index}
/>
</div>
</div>
<ScrollableActionList