mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
style(views/table): improve autocomplete styling
This commit is contained in:
parent
e411f9932f
commit
dcad23316d
@ -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">
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user