From df3fa2ceb0846491d05e362c28231c3679e021c5 Mon Sep 17 00:00:00 2001
From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com>
Date: Tue, 11 Jun 2024 12:05:43 -0400
Subject: doninfos

---
 src/client/views/nodes/DocumentIcon.tsx | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

(limited to 'src/client/views/nodes/DocumentIcon.tsx')

diff --git a/src/client/views/nodes/DocumentIcon.tsx b/src/client/views/nodes/DocumentIcon.tsx
index 79fc06279..0b94ae4f7 100644
--- a/src/client/views/nodes/DocumentIcon.tsx
+++ b/src/client/views/nodes/DocumentIcon.tsx
@@ -25,19 +25,16 @@ export class DocumentIcon extends ObservableReactComponent<DocumentIconProps> {
 
     render() {
         const { view } = this._props;
-        const { left, top, right } = view.getBounds || { left: 0, top: 0, right: 0, bottom: 0 };
+        const { left, top, right, bottom } = view.getBounds || { left: 0, top: 0, right: 0, bottom: 0 };
 
         return (
             <div
                 className="documentIcon-outerDiv"
-                onPointerEnter={action(() => { this._hovered = true; })} // prettier-ignore
-                onPointerLeave={action(() => { this._hovered = false; })} // prettier-ignore
                 style={{
                     pointerEvents: 'all',
-                    opacity: this._hovered ? 0.3 : 1,
                     position: 'absolute',
                     background: SnappingManager.userBackgroundColor,
-                    transform: `translate(${(left + right) / 2}px, ${top}px)`,
+                    transform: `translate(${left}px, ${bottom - (bottom - top)/2}px)`, //**!** 
                 }}>
                 <Tooltip title={<div>{StrCast(this._props.view.Document?.title)}</div>}>
                     <p>d{this._props.index}</p>
-- 
cgit v1.2.3-70-g09d2

