fix(ui): treat all square/circular buttons as iconOnly (upload button in sidebar)
This commit is contained in:
parent
43a94a7d79
commit
55b6de8654
|
@ -37,7 +37,9 @@ const props = defineProps<{
|
|||
& AlignmentProps>()
|
||||
|
||||
const slots = useSlots()
|
||||
const isIconOnly = computed(() => !!props.icon && !slots.default)
|
||||
|
||||
// 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 isSplitIconOnly = computed(() => !!props.splitIcon && !props.splitTitle)
|
||||
|
||||
const internalLoader = ref(false)
|
||||
|
|
Loading…
Reference in New Issue