Skip to content

Commit

Permalink
Improve responsiveness of Schedule details header
Browse files Browse the repository at this point in the history
  • Loading branch information
laurakwhit committed Dec 20, 2024
1 parent 221d471 commit 53f37fb
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/lib/pages/schedule-view.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
{#if $loading}
<Loading title={translate('schedules.deleting')} class="my-2" />
{:else}
<header class="mb-8 flex flex-row justify-between gap-4">
<header class="mb-8 flex flex-row flex-wrap justify-between gap-4">
<div class="relative flex flex-col gap-4">
<Link href={routeForSchedules({ namespace })} icon="chevron-left">
{translate('schedules.back-to-schedules')}
Expand All @@ -276,23 +276,21 @@
{scheduleId}
</span>
</h1>
<div class="flex items-center gap-2 text-lg">
<div class="flex flex-wrap items-center gap-2 text-lg">
<WorkflowStatus
status={schedule?.schedule.state.paused ? 'Paused' : 'Running'}
/>
<p>
{schedule?.schedule?.action?.startWorkflow?.workflowType?.name}
</p>
</div>
<div class="flex items-center gap-2 text-sm">
<p>
{translate('common.created', {
created: formatDate(schedule?.info?.createTime, $timeFormat, {
relative: $relativeTime,
}),
})}
</p>
</div>
<p class="flex items-center gap-2 text-sm">
{translate('common.created', {
created: formatDate(schedule?.info?.createTime, $timeFormat, {
relative: $relativeTime,
}),
})}
</p>
{#if schedule?.info?.updateTime}
<div class="flex items-center gap-2 text-sm">
<p>
Expand Down

0 comments on commit 53f37fb

Please sign in to comment.