Skip to content

Commit

Permalink
fix(frontend): Fix path overflow on the Runs page (#3781)
Browse files Browse the repository at this point in the history
  • Loading branch information
fatonramadani committed May 21, 2024
1 parent 2efe5f9 commit 518d8b9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions frontend/src/lib/components/runs/RunRow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
let scheduleEditor: ScheduleEditor
$: isExternal = job && job.id === '-'
let triggeredByWidth: number = 0
</script>

<Portal>
<ScheduleEditor on:update={() => goto('/schedules')} bind:this={scheduleEditor} />
</Portal>

<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
Expand Down Expand Up @@ -211,7 +212,7 @@
{/if}
</div>
{/if}
<div class="w-3/12 flex justify-start">
<div class="w-3/12 flex justify-start" bind:clientWidth={triggeredByWidth}>
{#if job && job.schedule_path}
<div class="flex flex-row items-center gap-1">
<Calendar size={14} />
Expand All @@ -221,7 +222,12 @@
btnClasses="font-normal"
on:click={() => scheduleEditor?.openEdit(job.schedule_path ?? '', job.job_kind == 'flow')}
>
{job.schedule_path}
<div
class="truncate text-ellipsis text-left"
style="max-width: {triggeredByWidth - 48}px"
>
{job.schedule_path}
</div>
</Button>
</div>
{:else}
Expand Down

0 comments on commit 518d8b9

Please sign in to comment.