RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix (web): Update the style of segmented controls and add metallic texture gradients (#9591)
chanx55173c7201ad
diff --git a/web/src/components/ui/segmented.tsx b/web/src/components/ui/segmented.tsxindex cec2bb6df4..e82bafc6d2 100644--- a/web/src/components/ui/segmented.tsx+++ b/web/src/components/ui/segmented.tsx@@ -57,8 +57,8 @@ export function Segmented({className={cn('inline-flex items-center px-6 py-2 text-base font-normal rounded-3xl cursor-pointer',{- 'bg-text-primary': selectedValue === actualValue,- 'text-bg-base': selectedValue === actualValue,+ 'text-bg-base bg-metallic-gradient border-b-[#00BEB4] border-b-2':+ selectedValue === actualValue,},)}onClick={() => handleOnChange(actualValue)}diff --git a/web/tailwind.config.js b/web/tailwind.config.jsindex f0bf5cb300..82c4bf5b7a 100644--- a/web/tailwind.config.js+++ b/web/tailwind.config.js@@ -206,6 +206,10 @@ module.exports = {ring: 'hsl(var(--sidebar-ring))',},},+ backgroundImage: {+ 'metallic-gradient':+ 'linear-gradient(104deg, var(--text-primary) 30%, var(--metallic) 50%, var(--text-primary) 70%)',+ },borderRadius: {lg: `var(--radius)`,md: `calc(var(--radius) - 2px)`,diff --git a/web/tailwind.css b/web/tailwind.cssindex dbcf7ebc14..b8f49af735 100644--- a/web/tailwind.css+++ b/web/tailwind.css@@ -90,6 +90,7 @@--input-border: rgba(22, 22, 24, 0.2);+ --metallic: #46464a;/* design colors */--bg-base: #f6f6f7;@@ -230,6 +231,7 @@--input-border: rgba(255, 255, 255, 0.2);+ --metallic: #fafafa;/* design colors */--bg-base: #161618;