Skip to content

Commit

Permalink
fix(ui): avoid empty navbar in blueprint details view
Browse files Browse the repository at this point in the history
  • Loading branch information
Skraye authored and loicmathieu committed Aug 22, 2024
1 parent 615d42d commit 089b9ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions ui/src/components/flows/blueprints/BlueprintDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,17 @@
<el-col :md="24" :lg="embed ? 24 : 18">
<h4>{{ $t("source") }}</h4>
<el-card>
<editor class="position-relative" :read-only="true" :input="true" :full-height="false" :minimap="false" :model-value="blueprint.flow" lang="yaml">
<template #nav>
<editor
class="position-relative"
:read-only="true"
:input="true"
:full-height="false"
:minimap="false"
:model-value="blueprint.flow"
lang="yaml"
:navbar="false"
>
<template #absolute>
<copy-to-clipboard class="position-absolute" :text="blueprint.flow" />
</template>
</editor>
Expand Down Expand Up @@ -123,7 +132,8 @@
this.$router.push({
name: "blueprints",
params: {
tenant: this.$route.params.tenant
tenant: this.$route.params.tenant,
tab: this.tab
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/inputs/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</div>
</slot>
</nav>

<slot name="absolute" />
<div class="editor-container" ref="container" :class="containerClass">
<div ref="editorContainer" class="editor-wrapper position-relative">
<monaco-editor
Expand Down

0 comments on commit 089b9ee

Please sign in to comment.