dbappobj highlight

This commit is contained in:
SPRINX0\prochazka
2024-11-20 08:16:13 +01:00
parent 598674a7e0
commit 5db8f11fd6
3 changed files with 27 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
export let module = null;
export let isBold = false;
export let isChoosed = false;
export let isBusy = false;
export let statusIcon = undefined;
export let statusIconBefore = undefined;
@@ -71,11 +72,16 @@
$: if (isBold && domDiv) {
domDiv.scrollIntoView({ block: 'nearest', inline: 'nearest' });
}
$: if (isChoosed && domDiv) {
domDiv.scrollIntoView({ block: 'nearest', inline: 'nearest' });
}
</script>
<div
class="main"
class:isBold
class:isChoosed
draggable={true}
on:click={handleClick}
on:mouseup={handleMouseUp}
@@ -186,6 +192,12 @@
.isBold {
font-weight: bold;
}
.isChoosed {
background-color: var(--theme-bg-3);
}
:global(.app-object-list-focused) .isChoosed {
background-color: var(--theme-bg-selected);
}
.status {
margin-left: 5px;
}