diff --git a/apps/obsidian/src/components/canvas/shapes/DiscourseNodeShape.tsx b/apps/obsidian/src/components/canvas/shapes/DiscourseNodeShape.tsx index d818b1652..5d2b7cc0e 100644 --- a/apps/obsidian/src/components/canvas/shapes/DiscourseNodeShape.tsx +++ b/apps/obsidian/src/components/canvas/shapes/DiscourseNodeShape.tsx @@ -13,6 +13,7 @@ import { TLDefaultFontStyle, FONT_SIZES, FONT_FAMILIES, + toDomPrecision, } from "tldraw"; import { App, TFile } from "obsidian"; import { memo, createElement, useEffect } from "react"; @@ -172,7 +173,13 @@ export class DiscourseNodeUtil extends BaseBoxShapeUtil { } indicator(shape: DiscourseNodeShape) { - return ; + const { bounds } = this.editor.getShapeGeometry(shape); + return ( + + ); } getFile = async ( diff --git a/apps/roam/src/components/canvas/DiscourseNodeUtil.tsx b/apps/roam/src/components/canvas/DiscourseNodeUtil.tsx index 90ca43954..f8d7aea43 100644 --- a/apps/roam/src/components/canvas/DiscourseNodeUtil.tsx +++ b/apps/roam/src/components/canvas/DiscourseNodeUtil.tsx @@ -21,6 +21,7 @@ import { FONT_FAMILIES, TLDefaultFontStyle, DefaultFontStyle, + toDomPrecision, } from "tldraw"; import React, { useState, useEffect, useRef, useMemo } from "react"; import { useExtensionAPI } from "roamjs-components/components/ExtensionApiContext"; @@ -424,7 +425,13 @@ export class BaseDiscourseNodeUtil extends ShapeUtil { }; indicator(shape: DiscourseNodeShape) { - return ; + const { bounds } = this.editor.getShapeGeometry(shape); + return ( + + ); } updateProps(