From cb9af89318f3fe205d690347ab6212ff4b1de619 Mon Sep 17 00:00:00 2001 From: API Test Bot Date: Wed, 4 Feb 2026 09:17:07 +0700 Subject: [PATCH] fix(extension): resolve UI layout issues in sidepanel - Add sidepanel folder to Tailwind content paths (root cause of broken CSS) - Fix ChatInterface layout: group ChatInput and QuickCapture properly - Remove sticky positioning from QuickCapture (now in flex container) - Make TokenInfoCard buttons more compact for narrow screens - Improve TokenAnalysisWidget button layout with flex-wrap --- .../sidepanel/chat/ChatInterface.tsx | 32 +++++++++---------- .../sidepanel/chat/QuickCapture.tsx | 4 +-- .../sidepanel/dexscreener/TokenInfoCard.tsx | 28 ++++++++-------- .../sidepanel/widgets/TokenAnalysisWidget.tsx | 12 +++---- .../tailwind.config.js | 8 ++++- 5 files changed, 45 insertions(+), 39 deletions(-) diff --git a/surfsense_browser_extension/sidepanel/chat/ChatInterface.tsx b/surfsense_browser_extension/sidepanel/chat/ChatInterface.tsx index 4c661fd08..6f8615983 100644 --- a/surfsense_browser_extension/sidepanel/chat/ChatInterface.tsx +++ b/surfsense_browser_extension/sidepanel/chat/ChatInterface.tsx @@ -511,24 +511,27 @@ What would you like to know?`; )} - {/* Chat input (only in chat mode) */} + {/* Chat input and quick capture (only in chat mode) */} {viewMode === "chat" && ( - +
+ + +
)} {/* Back to chat button for other views */} {viewMode !== "chat" && ( -
+
)} - {/* Quick capture button */} - - {/* Alert configuration modal */} - diff --git a/surfsense_browser_extension/sidepanel/dexscreener/TokenInfoCard.tsx b/surfsense_browser_extension/sidepanel/dexscreener/TokenInfoCard.tsx index a39b159ec..0ed582d6a 100644 --- a/surfsense_browser_extension/sidepanel/dexscreener/TokenInfoCard.tsx +++ b/surfsense_browser_extension/sidepanel/dexscreener/TokenInfoCard.tsx @@ -179,43 +179,43 @@ export function TokenInfoCard({
- {/* Quick actions - now with 4 buttons */} -
+ {/* Quick actions - 4 buttons in grid, responsive */} +
diff --git a/surfsense_browser_extension/sidepanel/widgets/TokenAnalysisWidget.tsx b/surfsense_browser_extension/sidepanel/widgets/TokenAnalysisWidget.tsx index 6e06a0311..26d4aea6c 100644 --- a/surfsense_browser_extension/sidepanel/widgets/TokenAnalysisWidget.tsx +++ b/surfsense_browser_extension/sidepanel/widgets/TokenAnalysisWidget.tsx @@ -178,15 +178,15 @@ export function TokenAnalysisWidget({ )} {/* Action buttons */} -
- - -
diff --git a/surfsense_browser_extension/tailwind.config.js b/surfsense_browser_extension/tailwind.config.js index 94ec92383..d1c954054 100644 --- a/surfsense_browser_extension/tailwind.config.js +++ b/surfsense_browser_extension/tailwind.config.js @@ -3,7 +3,13 @@ const { fontFamily } = require("tailwindcss/defaultTheme"); /** @type {import('tailwindcss').Config} */ module.exports = { darkMode: ["class"], - content: ["./*.{js,jsx,ts,tsx}", "./routes/*.tsx", "./routes/**/*.tsx"], + content: [ + "./*.{js,jsx,ts,tsx}", + "./routes/**/*.{js,jsx,ts,tsx}", + "./sidepanel/**/*.{js,jsx,ts,tsx}", + "./lib/**/*.{js,jsx,ts,tsx}", + "./background/**/*.{js,jsx,ts,tsx}", + ], theme: { container: { center: true,