style(views/table): improve autocomplete styling

This commit is contained in:
Elian Doran 2025-07-04 18:26:24 +03:00
parent e411f9932f
commit dcad23316d
No known key found for this signature in database
2 changed files with 14 additions and 2 deletions

View File

@ -34,6 +34,14 @@ const TPL = /*html*/`
right: 0;
bottom: 0;
}
.tabulator-cell .autocomplete {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: transparent;
outline: none !important;
}
</style>
<div class="header">

View File

@ -12,6 +12,7 @@ export function RelationEditor(cell: CellComponent, onRendered, success, cancel,
//create and style editor
const editor = document.createElement("input");
const $editor = $(editor);
editor.classList.add("form-control");
@ -43,8 +44,11 @@ export function RelationEditor(cell: CellComponent, onRendered, success, cancel,
editor.focus();
});
//return the editor element
return editor;
const container = document.createElement("div");
container.classList.add("input-group");
container.classList.add("autocomplete");
container.appendChild(editor);
return container;
};
export function RelationFormatter(cell: CellComponent, formatterParams, onRendered) {