From b263e249417adf2e21f3207629eec80ca5ed6589 Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Sat, 1 Mar 2025 18:11:43 +0100 Subject: [PATCH] Move conflict view in root view and adjust style --- src/main.ts | 2 +- .../conflicts-resolution/actions-gutter.tsx | 1 + .../conflicts-resolution/files-tab-bar.tsx | 17 ++++++++++++++--- src/views/conflicts-resolution/view.tsx | 4 +++- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index cc8e720..8d82b4c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -69,7 +69,7 @@ export default class GitHubSyncPlugin extends Plugin { if (leaves.length > 0) { leaf = leaves[0]; } else { - leaf = workspace.getRightLeaf(false)!; + leaf = workspace.getLeaf(false)!; await leaf.setViewState({ type: CONFLICTS_RESOLUTION_VIEW_TYPE, active: true, diff --git a/src/views/conflicts-resolution/actions-gutter.tsx b/src/views/conflicts-resolution/actions-gutter.tsx index f2c690a..2df92fa 100644 --- a/src/views/conflicts-resolution/actions-gutter.tsx +++ b/src/views/conflicts-resolution/actions-gutter.tsx @@ -177,6 +177,7 @@ const ActionsGutter: React.FC = ({ height: "100%", overflow: "hidden", position: "relative", + backgroundColor: "var(--background-secondary)", }} > = ({
setCurrentFile(index)} > -
+
= ({