From bbb6e1938e5205eb2d72fd5ad3642005e19b37dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6kay=20=C5=9Eat=C4=B1r?= Date: Fri, 17 Jan 2025 16:23:06 +0300 Subject: [PATCH] Don't show the popup if the cursor header is shown. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is not visually good. Signed-off-by: Gökay Şatır Change-Id: I2c46acb945fa215b1b2322e212b9ef2089020c49 --- browser/src/canvas/sections/OtherViewCellCursorSection.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/browser/src/canvas/sections/OtherViewCellCursorSection.ts b/browser/src/canvas/sections/OtherViewCellCursorSection.ts index c84b02a24bd2b..163704705bb12 100644 --- a/browser/src/canvas/sections/OtherViewCellCursorSection.ts +++ b/browser/src/canvas/sections/OtherViewCellCursorSection.ts @@ -107,6 +107,11 @@ class OtherViewCellCursorSection extends CanvasSectionObject { } showUsernamePopUp() { + const textCursorSectionName = CursorHeaderSection.namePrefix + this.sectionProperties.viewId; + + if (app.sectionContainer.doesSectionExist(textCursorSectionName)) + return; // Don't show the popup if the cursor header is shown. + if (this.sectionProperties.popUpContainer) { this.adjustPopUpPosition();