ux improvment

This commit is contained in:
2026-03-29 20:09:36 +03:00
parent 1cbe42ed75
commit cdaf91927b
4 changed files with 516 additions and 26 deletions

View File

@@ -5,6 +5,7 @@ import { useEditorStore } from '../../stores/editor'
import type { ElementLayout } from '../../core/layout-types'
import type { TemplateElement, SizeValue, ContainerElement } from '../../core/types'
import { isContainer, sz } from '../../core/types'
import ElementToolbar from './ElementToolbar.vue'
const props = defineProps<{
scale: number
@@ -627,6 +628,13 @@ const isAnyDragActive = computed(() =>
<!-- Drop indicator (ortak hem eleman hem toolbox sürükleme) -->
<div v-if="isAnyDragActive" :style="dropIndicatorStyle" />
<!-- Element toolbar seçili elemanın üstünde -->
<ElementToolbar
v-if="!isDragging && !isResizing"
:scale="scale"
:layout-map="layoutMap"
/>
</div>
</template>