fix: improve scrolling performance of the runs page

This commit is contained in:
Ruben Fiszel
2024-08-14 00:26:24 +02:00
parent 969699ce47
commit 0be8982ddc
2 changed files with 16 additions and 19 deletions

View File

@@ -938,17 +938,19 @@
<h2>Public URL</h2>
<div class="mt-4" />
<Toggle
options={{
left: `Require login and read-access`,
right: `No login required`
}}
checked={policy.execution_mode == 'anonymous'}
on:change={(e) => {
policy.execution_mode = e.detail ? 'anonymous' : 'publisher'
setPublishState()
}}
/>
<div class="flex gap-2 items-center">
<Toggle
options={{
left: `Require login and read-access`,
right: `No login required`
}}
checked={policy.execution_mode == 'anonymous'}
on:change={(e) => {
policy.execution_mode = e.detail ? 'anonymous' : 'publisher'
setPublishState()
}}
/>
</div>
<div class="my-6 box">
Public url:

View File

@@ -39,8 +39,6 @@
$: isExternal = job && job.id === '-'
let triggeredByWidth: number = 0
function isJobCancelable(j: Job): boolean {
return j.type === 'QueuedJob' && !j.schedule_path
}
@@ -240,7 +238,7 @@
{/if}
</div>
{/if}
<div class="w-3/12 flex justify-start" bind:clientWidth={triggeredByWidth}>
<div class="w-3/12 flex justify-start">
{#if job && job.schedule_path}
<div class="flex flex-row items-center gap-1">
<Calendar size={14} />
@@ -250,11 +248,8 @@
btnClasses="font-normal"
on:click={() => scheduleEditor?.openEdit(job.schedule_path ?? '', job.job_kind == 'flow')}
>
<div
class="truncate text-ellipsis text-left"
style="max-width: {triggeredByWidth - 48}px"
>
{job.schedule_path}
<div class="truncate text-ellipsis text-left">
{truncateRev(job.schedule_path, 20)}
</div>
</Button>
<Button