mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 20:46:00 +00:00
perspective cell highlight
This commit is contained in:
@@ -25,4 +25,8 @@
|
||||
border-bottom: 1px solid var(--theme-border);
|
||||
border-right: 1px solid var(--theme-border);
|
||||
}
|
||||
td:global(.highlight) {
|
||||
border: 3px solid var(--theme-icon-blue);
|
||||
padding: 0px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -179,4 +179,9 @@
|
||||
th.columnHeader {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
th:global(.highlight) {
|
||||
border: 3px solid var(--theme-icon-blue);
|
||||
padding: 0px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
checkLoadAdditionalData();
|
||||
}
|
||||
|
||||
function buildMenu({ targetElement }) {
|
||||
function buildMenu({ targetElement, registerCloseHandler }) {
|
||||
const res = [];
|
||||
const td = targetElement.closest('td') || targetElement.closest('th');
|
||||
|
||||
@@ -172,6 +172,10 @@
|
||||
setConfig,
|
||||
})
|
||||
);
|
||||
td.classList.add('highlight');
|
||||
registerCloseHandler(() => {
|
||||
td.classList.remove('highlight');
|
||||
});
|
||||
}
|
||||
|
||||
res.push([
|
||||
|
||||
Reference in New Issue
Block a user