diff --git a/apps/roam/src/components/results-view/ResultsTable.tsx b/apps/roam/src/components/results-view/ResultsTable.tsx index 50e0a685c..f5f9e1d8d 100644 --- a/apps/roam/src/components/results-view/ResultsTable.tsx +++ b/apps/roam/src/components/results-view/ResultsTable.tsx @@ -160,13 +160,7 @@ export const CellEmbed = ({ ); }; -export const CellRender = ({ - content, - uid, -}: { - content: string; - uid: string; -}) => { +const CellRender = ({ content, uid }: { content: string; uid: string }) => { const isPage = !!getPageTitleByPageUid(uid); const displayString = isPage ? `[[${content}]]` : content; diff --git a/apps/roam/src/components/results-view/ResultsView.tsx b/apps/roam/src/components/results-view/ResultsView.tsx index 6fb910521..98601cd04 100644 --- a/apps/roam/src/components/results-view/ResultsView.tsx +++ b/apps/roam/src/components/results-view/ResultsView.tsx @@ -330,9 +330,7 @@ const ResultsView: ResultsViewComponent = ({ settings.showSearchFilter, ); const [showInterface, setShowInterface] = useState(settings.showInterface); - const [revealMenuIcons, setRevealMenuIcons] = useState(false); const [showInputs, setShowInputs] = useState(settings.showInputs); - const hideMenuIcons = hideMenu || (!revealMenuIcons && !showInterface); const [showAlias, setShowAlias] = useState(settings.showAlias); const [isEditAlias, setIsEditAlias] = useState(false); const [alias, setAlias] = useState(settings.alias); @@ -452,13 +450,19 @@ const ResultsView: ResultsViewComponent = ({ () => views.filter((view) => view.mode !== "hidden").length, [views], ); + const menuIconClassName = [ + "roamjs-query-menu-icons", + hideMenu + ? "" + : showInterface + ? "roamjs-query-menu-icons-visible" + : "roamjs-query-menu-icons-hover", + ].join(" "); return (
setRevealMenuIcons(true)} - onMouseLeave={() => setRevealMenuIcons(false)} > {showAlias && (
{header}
-
+
{onRefresh && (