feat: fixes

This commit is contained in:
Herculino Trotta
2025-11-22 01:10:01 -03:00
parent af72e3f44e
commit 2ae57e83cb
4 changed files with 14 additions and 13 deletions

View File

@@ -55,8 +55,8 @@ window.TomSelect = function createDynamicTomSelect(element) {
if (element.dataset.checkboxes === 'true') {
config.plugins.checkbox_options = {
'checkedClassNames': ['ts-checked'],
'uncheckedClassNames': ['ts-unchecked'],
'checkedClassNames': ['ts-checked', "checkbox", "checkbox-xs"],
'uncheckedClassNames': ['ts-checked', "checkbox", "checkbox-xs"],
};
}

View File

@@ -83,7 +83,7 @@
}
/* Multi-select items (badges) */
.ts-wrapper.multi .ts-control > div {
.ts-wrapper.multi .ts-control > div:not(.clear-button) {
display: inline-flex;
align-items: center;
justify-content: center;
@@ -104,7 +104,7 @@
}
/* Active multi-select item */
.ts-wrapper.multi .ts-control > div.active {
.ts-wrapper.multi .ts-control > div.active:not(.clear-button) {
background-color: var(--color-primary);
color: var(--color-primary-content);
border: 0 solid transparent;
@@ -112,8 +112,8 @@
}
/* Disabled multi-select items */
.ts-wrapper.multi.disabled .ts-control > div,
.ts-wrapper.multi.disabled .ts-control > div.active {
.ts-wrapper.multi.disabled .ts-control > div:not(.clear-button),
.ts-wrapper.multi.disabled .ts-control > div.active:not(.clear-button) {
background-color: var(--color-base-200);
color: color-mix(in oklab, var(--color-base-content) 40%, transparent);
border: 0 solid transparent;
@@ -337,7 +337,7 @@
}
.plugin-clear_button .clear-button {
right: 1.2rem;
right: 2rem;
}
.plugin-clear_button.focus.has-items .clear-button,