fix: Bring back TidyUp button's icon and fix Easy AI button size (#14818)

This commit is contained in:
Raúl Gómez Morales
2025-04-23 10:00:25 +02:00
committed by GitHub
parent a217611b2a
commit 1e5c1fceb7
2 changed files with 8 additions and 6 deletions

View File

@@ -20,7 +20,10 @@ const emit = defineEmits<{
data-test-id="from-ai-override-button"
@click="emit('click')"
>
<AiStarsIcon size="large" />
<span>
<!-- The span wrapping the icon centers it due to reliance on legacy behavior -->
<AiStarsIcon size="large" />
</span>
</N8nButton>
</N8nTooltip>
</template>

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { Controls } from '@vue-flow/controls';
import KeyboardShortcutTooltip from '@/components/KeyboardShortcutTooltip.vue';
import TidyUpIcon from '@/components/TidyUpIcon.vue';
import { computed } from 'vue';
import { useI18n } from '@/composables/useI18n';
import { Controls } from '@vue-flow/controls';
import { computed } from 'vue';
const props = withDefaults(
defineProps<{
@@ -114,9 +114,8 @@ function onTidyUp() {
<style module lang="scss">
.iconButton {
display: flex;
align-items: center;
justify-content: center;
padding-left: 0;
padding-right: 0;
svg {
width: 16px;