Skip to content

Commit

Permalink
fix(ui): amend no code editor breadcrumbs issue (#7054)
Browse files Browse the repository at this point in the history
* chore(ui): task array component to have margins between lines

* fix(ui): amend no code editor breadcrumbs issue
  • Loading branch information
MilosPaunovic committed Jan 30, 2025
1 parent d12fbf0 commit 17e1623
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/code/components/Breadcrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class="item"
@click="
(store.commit('code/removeBreadcrumb', {position: index}),
store.commit('code/unsetPanel'))
store.commit('code/unsetPanel', false))
"
>
<router-link :to="breadcrumb.to">
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/flows/tasks/TaskArray.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
v-for="(item, index) in values"
:key="'array-' + index"
:gutter="10"
class="w-100"
class="w-100 mb-2"
>
<el-col :span="22">
<component
Expand Down
4 changes: 2 additions & 2 deletions ui/src/stores/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export default {
state.panel = panel;
state.breadcrumbs[1] = {...breadcrumb, panel: true};
},
unsetPanel(state: State) {
unsetPanel(state: State, shouldSplice = true) {
state.panel = undefined;
state.breadcrumbs.splice(1);
if (shouldSplice) state.breadcrumbs.splice(1);
},
},
};

0 comments on commit 17e1623

Please sign in to comment.