AI-native design editor. Open-source Figma alternative.
Align + and − buttons across Fill, Stroke, Effects sections
Danila Poyarkovcd9b096a98fb
diff --git a/src/components/properties/EffectsSection.vue b/src/components/properties/EffectsSection.vueindex 53b95b67a..d5760e8bf 100644--- a/src/components/properties/EffectsSection.vue+++ b/src/components/properties/EffectsSection.vue@@ -101,7 +101,7 @@ function toggleExpand(index: number) {<div class="flex items-center justify-between"><label class="mb-1 block text-[11px] text-muted">Effects</label><button- class="cursor-pointer rounded border-none bg-transparent px-1 text-base leading-none text-muted hover:bg-hover hover:text-surface"+ class="flex size-5 cursor-pointer items-center justify-center rounded border-none bg-transparent text-sm leading-none text-muted hover:bg-hover hover:text-surface"@click="add">+</button></div>@@ -139,7 +139,7 @@ function toggleExpand(index: number) {<icon-lucide-eye-off v-else class="size-3.5" /></button><button- class="cursor-pointer border-none bg-transparent p-0 text-sm leading-none text-muted hover:text-surface"+ class="flex size-5 cursor-pointer items-center justify-center rounded border-none bg-transparent text-sm leading-none text-muted hover:bg-hover hover:text-surface"@click="remove(i)">−</button></div>diff --git a/src/components/properties/FillSection.vue b/src/components/properties/FillSection.vueindex 5b17a48e5..10d46cc08 100644--- a/src/components/properties/FillSection.vue+++ b/src/components/properties/FillSection.vue@@ -40,7 +40,7 @@ function remove(index: number) {<div v-if="node" class="border-b border-border px-3 py-2"><div class="flex items-center justify-between"><label class="mb-1 block text-[11px] text-muted">Fill</label>- <button class="cursor-pointer rounded border-none bg-transparent px-1 text-base leading-none text-muted hover:bg-hover hover:text-surface" @click="add">+</button>+ <button class="flex size-5 cursor-pointer items-center justify-center rounded border-none bg-transparent text-sm leading-none text-muted hover:bg-hover hover:text-surface" @click="add">+</button></div><div v-for="(fill, i) in node.fills" :key="i" class="group flex items-center gap-1.5 py-0.5"><FillPicker :fill="fill" @update="updateFill(i, $event)" />@@ -64,7 +64,7 @@ function remove(index: number) {<icon-lucide-eye v-if="fill.visible" class="size-3.5" /><icon-lucide-eye-off v-else class="size-3.5" /></button>- <button class="cursor-pointer border-none bg-transparent p-0 text-sm leading-none text-muted hover:text-surface" @click="remove(i)">−</button>+ <button class="flex size-5 cursor-pointer items-center justify-center rounded border-none bg-transparent text-sm leading-none text-muted hover:bg-hover hover:text-surface" @click="remove(i)">−</button></div></div></template>diff --git a/src/components/properties/StrokeSection.vue b/src/components/properties/StrokeSection.vueindex 0afe16480..dcb099b23 100644--- a/src/components/properties/StrokeSection.vue+++ b/src/components/properties/StrokeSection.vue@@ -52,7 +52,7 @@ function remove(index: number) {<div v-if="node" class="border-b border-border px-3 py-2"><div class="flex items-center justify-between"><label class="mb-1 block text-[11px] text-muted">Stroke</label>- <button class="cursor-pointer rounded border-none bg-transparent px-1 text-base leading-none text-muted hover:bg-hover hover:text-surface" @click="add">+</button>+ <button class="flex size-5 cursor-pointer items-center justify-center rounded border-none bg-transparent text-sm leading-none text-muted hover:bg-hover hover:text-surface" @click="add">+</button></div><div v-for="(stroke, i) in node.strokes" :key="i" class="group flex items-center gap-1.5 py-0.5"><ColorPicker :color="stroke.color" @update="updateColor(i, $event)" />@@ -76,7 +76,7 @@ function remove(index: number) {<icon-lucide-eye v-if="stroke.visible" class="size-3.5" /><icon-lucide-eye-off v-else class="size-3.5" /></button>- <button class="cursor-pointer border-none bg-transparent p-0 text-sm leading-none text-muted hover:text-surface" @click="remove(i)">−</button>+ <button class="flex size-5 cursor-pointer items-center justify-center rounded border-none bg-transparent text-sm leading-none text-muted hover:bg-hover hover:text-surface" @click="remove(i)">−</button></div><div v-if="node.strokes.length > 0" class="mt-1 flex items-center gap-1.5"><ScrubInput