This commit is contained in:
Ruben Fiszel
2024-11-20 12:12:59 +01:00
parent 5b9bce5260
commit c217bf27e3
3 changed files with 5 additions and 6 deletions
@@ -402,7 +402,7 @@
>{:else}<div
class="inline-highlight relative grow {['plain', 'markdown'].includes(resultKind ?? '')
? ''
: 'min-h-[200px]'}"
: 'min-h-[160px]'}"
>{#if result != undefined && length != undefined && largeObject != undefined}<div
class="flex justify-between items-center w-full"
><div class="text-tertiary text-sm">
@@ -3,7 +3,7 @@
import type { AppEditorContext } from '../types'
import TestJobLoader from '$lib/components/TestJobLoader.svelte'
import type { Job } from '$lib/gen'
import RunnalbeJobPanelInner from './RunnalbeJobPanelInner.svelte'
import RunnableJobPanelInner from './RunnableJobPanelInner.svelte'
export let float: boolean = true
export let hidden: boolean = false
@@ -56,12 +56,12 @@
class="absolute z-[100] top-0 right-0 border-t h-full"
style="width: {$runnableJobEditorPanel.width}px; transform: translateX({$runnableJobEditorPanel.width}px);"
>
<RunnalbeJobPanelInner {frontendJob} {testJob} />
<RunnableJobPanelInner {testIsLoading} {frontendJob} {testJob} />
</div>
{:else}
<div class="flex flex-col w-full">
{#if $selectedComponentInEditor}
<RunnalbeJobPanelInner {frontendJob} {testJob} />
<RunnableJobPanelInner {testIsLoading} {frontendJob} {testJob} />
{:else if !hidden}
<div class="text-sm text-secondary text-center py-8 px-2 border-l h-full">
Logs and results will be displayed here
@@ -7,8 +7,7 @@
export let frontendJob: boolean | any = false
export let testJob: Job | any = undefined
let testIsLoading = false
export let testIsLoading = false
let logDrawerOpen = false
let resultDrawerOpen = false