From 985233a2aa455bc2b098d05f2205e11d28f63746 Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Tue, 17 Jun 2025 11:03:15 -0700 Subject: [PATCH] fix margins --- .../src/activation/NextEditWindowManager.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/extensions/vscode/src/activation/NextEditWindowManager.ts b/extensions/vscode/src/activation/NextEditWindowManager.ts index dac4a0388..8bf3c209c 100644 --- a/extensions/vscode/src/activation/NextEditWindowManager.ts +++ b/extensions/vscode/src/activation/NextEditWindowManager.ts @@ -289,13 +289,20 @@ export class NextEditWindowManager { const tipWidth = SVG_CONFIG.getTipWidth(text); const tipHeight = SVG_CONFIG.getTipHeight(text); - // Use renderOptions.before instead of after to prevent text displacement return vscode.window.createTextEditorDecorationType({ after: { contentIconPath: svgUri, - border: `;box-shadow: inset 0 0 0 ${SVG_CONFIG.strokeWidth}px ${SVG_CONFIG.stroke}, inset 0 0 0 ${tipHeight}px ${backgroundColour}; - border-radius: ${SVG_CONFIG.radius}px; - filter: ${SVG_CONFIG.filter}`, + // border: `;box-shadow: inset 0 0 0 ${SVG_CONFIG.strokeWidth}px ${SVG_CONFIG.stroke}, inset 0 0 0 ${tipHeight}px ${backgroundColour}; + // border-radius: ${SVG_CONFIG.radius}px; + // filter: ${SVG_CONFIG.filter}`, + // width: `${tipWidth}px`, + // height: `${tipHeight}px`, + border: `transparent; position: absolute; z-index: 1000; + box-shadow: inset 0 0 0 ${SVG_CONFIG.strokeWidth}px ${SVG_CONFIG.stroke}, + inset 0 0 0 ${tipHeight}px ${backgroundColour}; + border-radius: ${SVG_CONFIG.radius}px; + filter: ${SVG_CONFIG.filter}; + margin-left: ${SVG_CONFIG.cursorOffset * 8}px;`, width: `${tipWidth}px`, height: `${tipHeight}px`, },