mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +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;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tabulator-cell .autocomplete {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
background: transparent;
|
||||||
|
outline: none !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
@ -12,6 +12,7 @@ export function RelationEditor(cell: CellComponent, onRendered, success, cancel,
|
|||||||
|
|
||||||
//create and style editor
|
//create and style editor
|
||||||
const editor = document.createElement("input");
|
const editor = document.createElement("input");
|
||||||
|
|
||||||
const $editor = $(editor);
|
const $editor = $(editor);
|
||||||
editor.classList.add("form-control");
|
editor.classList.add("form-control");
|
||||||
|
|
||||||
@ -43,8 +44,11 @@ export function RelationEditor(cell: CellComponent, onRendered, success, cancel,
|
|||||||
editor.focus();
|
editor.focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
//return the editor element
|
const container = document.createElement("div");
|
||||||
return editor;
|
container.classList.add("input-group");
|
||||||
|
container.classList.add("autocomplete");
|
||||||
|
container.appendChild(editor);
|
||||||
|
return container;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function RelationFormatter(cell: CellComponent, formatterParams, onRendered) {
|
export function RelationFormatter(cell: CellComponent, formatterParams, onRendered) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user