瀏覽代碼

fix: block-ref in BlockLink displaying issue

Peng Xiao 2 年之前
父節點
當前提交
ee445b8f70

+ 1 - 1
tldraw/apps/tldraw-logseq/src/components/BlockLink/BlockLink.tsx

@@ -43,7 +43,7 @@ export const BlockLink = ({ id }: { id: string }) => {
         {linkType === 'P' ? (
           <PageName pageName={id} />
         ) : (
-          <span className="inline-flex items-center">
+          <span className="block-link-reference-row">
             <Breadcrumb levelLimit={1} blockId={id} endSeparator />
             <BlockReference blockId={id} />
           </span>

+ 6 - 0
tldraw/apps/tldraw-logseq/src/styles.css

@@ -1144,3 +1144,9 @@ button.tl-shape-links-panel-item-remove-button {
     @apply bg-indigo-500;
   }
 }
+
+.block-link-reference-row {
+  > * {
+    display: inline;
+  }
+}

+ 1 - 1
tldraw/packages/react/src/components/Canvas/Canvas.tsx

@@ -165,7 +165,7 @@ export const Canvas = observer(function Renderer<S extends TLReactShape>({
               shape={selectedOrHooveredShape}
             />
           )}
-          {hoveredShape && hoveredShape !== singleSelectedShape && components.QuickLinks && (
+          {hoveredShape && components.QuickLinks && (
             <QuickLinksContainer hidden={false} bounds={hoveredShape.bounds} shape={hoveredShape} />
           )}
           {brush && components.Brush && <components.Brush bounds={brush} />}