Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

560 start node shouldnt have an input node - update #566

Merged
merged 2 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions caster-editor/src/assets/scss/_vueflow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,3 @@
.vue-flow__pane.draggable {
cursor: move !important;
}

.gencaster-default-node {
background-color: $white;
border: 1px solid $mainBlack;

&.selected {
box-shadow: 0px 0px 7px 0px $green-light;
}
}
76 changes: 45 additions & 31 deletions caster-editor/src/components/FlowNodeDefault.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ onMounted(() => {
<template>
<div
class="gencaster-default-node"
:class="{ selected: selected }"
:class="{ selected: selected, entry: data.isEntryNode }"
>
<div class="title">
<p>
Expand All @@ -31,10 +31,7 @@ onMounted(() => {
</div>

<div class="nodes">
<div
v-if="!data.isEntryNode"
class="in-nodes"
>
<div class="in-nodes">
<div
v-for="(inDoor, index) in data.inNodeDoors"
:key="inDoor.uuid"
Expand Down Expand Up @@ -88,42 +85,59 @@ onMounted(() => {
width: $nodeDefaultWidth;
display: flex;
flex-direction: column;
background-color: $white;
border: 1px solid $mainBlack;
border-radius: 2px;
overflow: hidden;

.title {
background-color: $grey-light;
height: 24px;
padding: 2px 8px 0 8px;
margin: 0;
}
}

.handle {
width: 12px;
height: 12px;
border-radius: 12px;
border: 1px solid $mainBlack;
background-color: $grey-light;
}
&.selected {
box-shadow: 0px 0px 7px 0px $green-light;
}

.out-nodes {
display: flex;
flex-direction: column;
justify-content: space-around;
width: 100px;
margin-bottom: 12px;
&.entry {
.title {
background-color: $green-light;
height: 24px;
padding: 2px 8px 0 8px;
margin: 0;
}
}

.handle {
width: 12px;
height: 12px;
border-radius: 12px;
border: 1px solid $mainBlack;
background-color: $grey-light;
}

.out-nodes {
display: flex;
flex-direction: column;
justify-content: space-around;
width: 100px;
margin-bottom: 12px;

.out-node {
span {
position: absolute;
text-align: right;
pointer-events: none;
right: 0;
height: 20px;
width: calc($nodeDefaultWidth - 24px);
transform: translateX(-16px) translateY(-5px);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
.out-node {
span {
position: absolute;
text-align: right;
pointer-events: none;
right: 0;
height: 20px;
width: calc($nodeDefaultWidth - 24px);
transform: translateX(-16px) translateY(-5px);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
}
}
}
Expand Down