From 82fccdc6f1ab576c5d22059b1bd89723c6f60ee9 Mon Sep 17 00:00:00 2001 From: andrepimenta Date: Fri, 20 Jun 2025 19:10:55 +0100 Subject: [PATCH] Plan and Thinking buttons text clickable --- src/ui-styles.ts | 21 +++++++++++++++------ src/ui.ts | 30 ++++++++++++++---------------- 2 files changed, 29 insertions(+), 22 deletions(-) diff --git a/src/ui-styles.ts b/src/ui-styles.ts index a13f874..e93bf6e 100644 --- a/src/ui-styles.ts +++ b/src/ui-styles.ts @@ -455,16 +455,25 @@ const styles = ` transition: opacity 0.2s ease; } + .mode-toggle span { + cursor: pointer; + transition: opacity 0.2s ease; + } + + .mode-toggle span:hover { + opacity: 1; + } + .mode-toggle:hover { opacity: 1; } .mode-switch { position: relative; - width: 28px; - height: 16px; + width: 26px; + height: 14px; background-color: var(--vscode-panel-border); - border-radius: 8px; + border-radius: 7px; cursor: pointer; transition: background-color 0.2s ease; } @@ -478,15 +487,15 @@ const styles = ` position: absolute; top: 2px; left: 2px; - width: 12px; - height: 12px; + width: 10px; + height: 10px; background-color: var(--vscode-foreground); border-radius: 50%; transition: transform 0.2s ease; } .mode-switch.active::after { - transform: translateX(12px); + transform: translateX(10px); background-color: var(--vscode-button-foreground); } diff --git a/src/ui.ts b/src/ui.ts index 5df6717..8427bac 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -38,21 +38,19 @@ const html = `
-
-
- Plan First -
-
-
- Thinking Mode -
-
-
+ +