- Kein Node ausgewählt.
+
+ Wähle einen Node auf der Canvas aus.
@@ -1039,6 +1030,22 @@ watch(selectedNodeId, (stateId) => {
})
})
+watch(
+ inspectorOpen,
+ (open) => {
+ if (!open || !flowDetail.value) return
+ if (selectedNodeId.value) return
+ const preferred =
+ flowDetail.value.flow.startState &&
+ flowDetail.value.nodes.some((node) => node.stateId === flowDetail.value!.flow.startState)
+ ? flowDetail.value.flow.startState
+ : flowDetail.value.nodes[0]?.stateId
+ if (preferred) {
+ selectedNodeId.value = preferred
+ }
+ }
+)
+
watch(
nodeForm,
(value) => {
@@ -1056,18 +1063,6 @@ watch(
{ deep: true }
)
-watch(
- () => nodeForm.value?.title,
- (title) => {
- if (!nodeForm.value) return
- const suggestion = buildNodeKeyFromText(title || nodeForm.value.stateId)
- if (!nodeRenaming && nodeIdDraft.value === lastTitleSuggestion) {
- nodeIdDraft.value = suggestion
- }
- lastTitleSuggestion = suggestion
- }
-)
-
watch(
() => flowForm.startState,
(start) => {
@@ -2184,4 +2179,50 @@ function removePlaceholder(index: number) {
.sidebar-button {
@apply w-full rounded-2xl border border-white/10 bg-white/5 px-3 py-2 text-left transition hover:border-cyan-400;
}
+
+.app-bar-button {
+ height: 44px;
+ min-height: 44px;
+ border-radius: 0.75rem;
+}
+
+.app-bar-button :deep(.v-btn__overlay) {
+ border-radius: 0.75rem;
+}
+
+.app-bar-icon-button {
+ width: 44px;
+ min-width: 44px;
+ padding: 0;
+}
+
+.app-bar-icon-button :deep(.v-btn__content) {
+ height: 100%;
+ align-items: center;
+}
+
+.app-bar-field {
+ @apply rounded-xl;
+}
+
+.app-bar-field :deep(.v-field) {
+ border-radius: 0.75rem;
+ background-color: rgba(255, 255, 255, 0.08);
+ min-height: 44px;
+}
+
+.app-bar-field :deep(.v-field__overlay) {
+ opacity: 0;
+ border-radius: 0.75rem;
+}
+
+.app-bar-field :deep(.v-field__input) {
+ min-height: 44px;
+ padding-top: 0;
+ padding-bottom: 0;
+}
+
+.app-bar-field :deep(.v-field__prepend-inner) {
+ align-items: center;
+}