fix(ui): treat all square/circular buttons as iconOnly (upload button in sidebar)
This commit is contained in:
parent
a7f67654e8
commit
275094bfee
|
@ -39,7 +39,7 @@ const props = defineProps<{
|
|||
const slots = useSlots()
|
||||
|
||||
// TODO: Refactor this once upload button progress indicator can be tested (in Sidebar.vue)
|
||||
const isIconOnly = computed(() => !!props.icon && (!slots.default || 'square' in props || 'squareSmall' in props))
|
||||
const isIconOnly = computed(() => !!props.icon && (!slots.default || 'square' in props && props.square || 'squareSmall' in props && props.squareSmall ))
|
||||
const isSplitIconOnly = computed(() => !!props.splitIcon && !props.splitTitle)
|
||||
|
||||
const internalLoader = ref(false)
|
||||
|
|
Loading…
Reference in New Issue