diff --git a/frontend/src/components/base/BaseButton.vue b/frontend/src/components/base/BaseButton.vue index e46bd598a..1ad36a444 100644 --- a/frontend/src/components/base/BaseButton.vue +++ b/frontend/src/components/base/BaseButton.vue @@ -69,6 +69,14 @@ const loadingIconSize: Record = { lg: 17, } +const loadingIndicatorStyle = computed(() => { + const iconSize = loadingIconSize[props.size] + return { + width: `${iconSize}px`, + height: `${iconSize}px`, + } +}) + const classes = computed(() => [ 'inline-flex items-center justify-center border-0 font-bold leading-[1.15] transition-[background-color,box-shadow,color,opacity,transform] duration-150 cursor-pointer outline-none motion-safe:active:translate-y-px motion-safe:active:scale-[0.985]', props.iconOnly ? iconOnlySizeClasses[props.size] : sizeClasses[props.size], @@ -110,10 +118,26 @@ const labelClasses = computed(() => [ >