Skip to content

Build your personal knowledge base with Trilium Notes

client/ui/sortable card: fix an issue

Adorian Doran1ed87bf04f45
diff --git a/apps/client/src/widgets/react/SortableCard.css b/apps/client/src/widgets/react/SortableCard.css
index 1980ff591d..a0a6a95680 100644
--- a/apps/client/src/widgets/react/SortableCard.css
+++ b/apps/client/src/widgets/react/SortableCard.css
@@ -30,8 +30,10 @@
outline-offset: -2px;
}
- /* Painted inside the segment's own box, so a selected segment takes no more room than the rest. */
- .tn-sortable-selected {
+ /* Painted inside the segment's own box, so a selected segment takes no more room than the rest.
+ Only while the card holds the focus: the selection stands for where the reader is, and they
+ are somewhere else once they have left it. */
+ .tn-sortable-list:focus-within .tn-sortable-selected {
box-shadow: inset 0 0 0 1px var(--sortable-selected-color);
}