Browse Source

fix: adjust zindex

Peng Xiao 2 years ago
parent
commit
c426c21004

+ 1 - 1
tldraw/apps/tldraw-logseq/src/styles.css

@@ -989,7 +989,7 @@ html[data-theme='dark'] {
 }
 
 .tl-references-count-container {
-  z-index: 10003;
+  z-index: 10004;
 }
 
 .tl-references-count {

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

@@ -34,7 +34,7 @@ export const ContextBarContainer = observer(function ContextBarContainer<S exten
   const rotatedBounds = BoundsUtils.getRotatedBounds(bounds, rotation)
   const scaledBounds = BoundsUtils.multiplyBounds(rotatedBounds, zoom)
 
-  useCounterScaledPosition(rBounds, bounds, rotation, 10003)
+  useCounterScaledPosition(rBounds, bounds, rotation, 10005)
 
   if (!ContextBar) throw Error('Expected a ContextBar component.')