fix(front): tagInput fixes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2024-02-08 11:25:34 +01:00
parent b1ecf4b36f
commit f6bcb02b98
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
3 changed files with 12 additions and 3 deletions

View file

@ -149,6 +149,12 @@ body {
.taginput-autocomplete { .taginput-autocomplete {
@apply flex-1 !drop-shadow-none; @apply flex-1 !drop-shadow-none;
} }
.taginput-expanded {
@apply w-full;
}
.taginput .autocomplete .dropdown-menu {
@apply w-full;
}
.taginput-container { .taginput-container {
@apply border-none; @apply border-none;
} }
@ -166,7 +172,7 @@ body {
} }
.autocomplete .autocomplete-item { .autocomplete .autocomplete-item {
@apply text-start p-0; @apply text-start p-2;
} }
.autocomplete .autocomplete-item-group-title { .autocomplete .autocomplete-item-group-title {
@ -182,7 +188,7 @@ body {
@apply bg-white dark:bg-zinc-700 shadow-lg rounded text-start py-2; @apply bg-white dark:bg-zinc-700 shadow-lg rounded text-start py-2;
} }
.dropdown-item { .dropdown-item {
@apply relative inline-flex gap-1 no-underline p-2 cursor-pointer w-full; @apply relative inline-flex gap-1 no-underline p-2 cursor-pointer w-full hover:bg-[#f5f5f5] hover:text-black;
} }
.dropdown-item-active { .dropdown-item-active {
@ -353,7 +359,7 @@ button.menubar__button {
@apply z-50; @apply z-50;
} }
.datepicker-box { .datepicker-box {
@apply block px-4 py-1; @apply block px-4 py-1 hover:bg-transparent;
} }
.o-dpck__header { .o-dpck__header {
@apply pb-2 mb-2; @apply pb-2 mb-2;

View file

@ -26,6 +26,7 @@
@input="getFilteredTags" @input="getFilteredTags"
:id="id" :id="id"
dir="auto" dir="auto"
expanded
> >
</o-taginput> </o-taginput>
</o-field> </o-field>

View file

@ -28,8 +28,10 @@ export const orugaConfig = {
itemClass: "taginput-item", itemClass: "taginput-item",
rootClass: "taginput", rootClass: "taginput",
containerClass: "taginput-container", containerClass: "taginput-container",
expandedClass: "taginput-expanded",
autocompleteClasses: { autocompleteClasses: {
rootClass: "taginput-autocomplete", rootClass: "taginput-autocomplete",
itemClass: "taginput-autocomplete-item",
inputClasses: { inputClasses: {
rootClass: "taginput-input-wrapper", rootClass: "taginput-input-wrapper",
inputClass: "taginput-input", inputClass: "taginput-input",