mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-19 11:14:06 +00:00
Merge branch 'master' of github.com:InvoiceShelf/InvoiceShelf
This commit is contained in:
@@ -475,9 +475,10 @@ export default {
|
|||||||
spinner:
|
spinner:
|
||||||
'bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3.5 animate-spin shrink-0 grow-0',
|
'bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3.5 animate-spin shrink-0 grow-0',
|
||||||
dropdown:
|
dropdown:
|
||||||
'max-h-60 shadow-lg absolute -left-px -right-px -bottom-1 translate-y-full border border-gray-300 mt-1 overflow-y-auto z-50 bg-white flex flex-col rounded-md',
|
'max-h-60 shadow-lg absolute -left-px -right-px -bottom-1 border border-gray-300 mt-1 overflow-y-auto z-50 bg-white flex flex-col rounded-md',
|
||||||
dropdownTop:
|
dropdownTop:
|
||||||
'-translate-y-full -top-2 bottom-auto flex-col-reverse rounded-md',
|
'-translate-y-full -top-2 bottom-auto flex-col-reverse rounded-md',
|
||||||
|
dropdownBottom: 'translate-y-full',
|
||||||
dropdownHidden: 'hidden',
|
dropdownHidden: 'hidden',
|
||||||
options: 'flex flex-col p-0 m-0 list-none',
|
options: 'flex flex-col p-0 m-0 list-none',
|
||||||
optionsTop: 'flex-col-reverse',
|
optionsTop: 'flex-col-reverse',
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ export default function useClasses(props, context, dependencies) {
|
|||||||
spinner: classes.spinner,
|
spinner: classes.spinner,
|
||||||
dropdown: [classes.dropdown]
|
dropdown: [classes.dropdown]
|
||||||
.concat(openDirection.value === 'top' ? classes.dropdownTop : [])
|
.concat(openDirection.value === 'top' ? classes.dropdownTop : [])
|
||||||
|
.concat(openDirection.value === 'bottom' ? classes.dropdownBottom : [])
|
||||||
.concat(
|
.concat(
|
||||||
!isOpen.value || !showOptions.value || !showDropdown.value
|
!isOpen.value || !showOptions.value || !showDropdown.value
|
||||||
? classes.dropdownHidden
|
? classes.dropdownHidden
|
||||||
|
|||||||
Reference in New Issue
Block a user