Skip to content

Commit

Permalink
Update CodeSnippet and fix odd issue with extra space on flowRun page (
Browse files Browse the repository at this point in the history
  • Loading branch information
marichka-offen authored Feb 1, 2023
1 parent 7f273a4 commit 9845558
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions orion-ui/src/pages/Deployment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</template>

<template #infra-overrides>
<CodeHighlighting v-if="deployment" language="json" :value="overrides" />
<CodeSnippet v-if="deployment" language="json" :snippet="overrides" />
</template>

<template #details>
Expand All @@ -51,7 +51,7 @@
</template>

<script lang="ts" setup>
import { DeploymentDescription, FlowRunFilteredList, DeploymentDescriptionEmptyState, DeploymentDeprecatedMessage, PageHeadingDeployment, DeploymentDetails, ParametersTable, localization, useRecentFlowRunFilter, useTabs, useWorkspaceApi, CodeHighlighting } from '@prefecthq/orion-design'
import { DeploymentDescription, FlowRunFilteredList, DeploymentDescriptionEmptyState, DeploymentDeprecatedMessage, PageHeadingDeployment, DeploymentDetails, ParametersTable, localization, useRecentFlowRunFilter, useTabs, useWorkspaceApi, CodeSnippet } from '@prefecthq/orion-design'
import { media } from '@prefecthq/prefect-design'
import { useSubscription, useRouteParam } from '@prefecthq/vue-compositions'
import { computed, watch } from 'vue'
Expand Down
8 changes: 6 additions & 2 deletions orion-ui/src/pages/FlowRun.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</template>

<template #parameters>
<CodeHighlighting language="json" :value="parameters" />
<CodeSnippet language="json" :snippet="parameters" />
</template>
</p-tabs>

Expand All @@ -44,7 +44,7 @@
FlowRunTaskRuns,
FlowRunTimeline,
FlowRunSubFlows,
CodeHighlighting,
CodeSnippet,
useFavicon,
useWorkspaceApi,
useDeployment,
Expand Down Expand Up @@ -109,6 +109,10 @@
</script>

<style>
.flow-run { @apply
items-start
}
.flow-run__logs { @apply
max-h-screen
}
Expand Down
4 changes: 2 additions & 2 deletions orion-ui/src/pages/TaskRun.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</template>

<template #task-inputs>
<CodeHighlighting language="json" :value="parameters" />
<CodeSnippet language="json" :snippet="parameters" />
</template>
</p-tabs>
<template #well>
Expand All @@ -24,7 +24,7 @@
</template>

<script lang="ts" setup>
import { PageHeadingTaskRun, TaskRunLogs, TaskRunDetails, CodeHighlighting, useFavicon, useWorkspaceApi } from '@prefecthq/orion-design'
import { PageHeadingTaskRun, TaskRunLogs, TaskRunDetails, CodeSnippet, useFavicon, useWorkspaceApi } from '@prefecthq/orion-design'
import { media } from '@prefecthq/prefect-design'
import { useRouteParam, useSubscriptionWithDependencies } from '@prefecthq/vue-compositions'
import { computed } from 'vue'
Expand Down

0 comments on commit 9845558

Please sign in to comment.