Skip to content

Commit 59383dc

Browse files
authored
ENG-226: Fix dot-tag (.#sticky, .#meeting) flashing in query table results (#904)
* Fix dot-tag (.#sticky, .#meeting) flashing in query table results Roam's dot-tags are hidden by default and shown via `.rm-block__self:hover`. Since the entire query table is mounted inside a single Roam block, hovering anywhere on the results triggers all dot-tags to show. Scope visibility to the individual cell wrapper instead. * Widen dot-tag hover target to full cell width Use td:not(:hover) instead of span-level selector so dot-tags show when hovering anywhere in the cell, not just over the text. * Add explanatory comment for dot-tag CSS fix
1 parent a0decd3 commit 59383dc

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

apps/roam/src/styles/styles.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@
7575
padding: 8px;
7676
}
7777

78+
/* Solves dot-tags (.#sticky, .#meeting) flashing on when hovering anywhere on the
79+
Query Table. Roam shows them via .rm-block__self:hover and the entire table lives
80+
in one block, so we scope visibility to the individual cell instead. */
81+
.roamjs-query-results-view td:not(:hover) .rm-page-ref[data-tag^="."] {
82+
display: none !important;
83+
}
84+
7885
.roamjs-view-select button {
7986
width: 100%;
8087
display: flex;
@@ -160,4 +167,4 @@
160167

161168
.fuzzy-select-input-popover .bp3-popover-target {
162169
width: 100%;
163-
}
170+
}

0 commit comments

Comments
 (0)