Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(web): remove ineffective Tailwind classes (#42394)

yyhd528dea83e4e
diff --git a/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx b/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx
index 1f4ead65353..0e378cd8e2e 100644
--- a/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx
+++ b/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx
@@ -107,7 +107,7 @@ export default function CheckCode() {
onClick={() => router.back()}
className="flex h-9 cursor-pointer appearance-none items-center justify-center text-text-tertiary focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden"
>
- <span className="bg-background-default-dimm inline-block rounded-full p-1">
+ <span className="inline-block rounded-full p-1">
<RiArrowLeftLine aria-hidden size={12} />
</span>
<span className="ml-2 system-xs-regular">{t(($) => $.back, { ns: 'login' })}</span>
diff --git a/web/app/(shareLayout)/webapp-signin/check-code/page.tsx b/web/app/(shareLayout)/webapp-signin/check-code/page.tsx
index 7e09f107e72..f586ae17452 100644
--- a/web/app/(shareLayout)/webapp-signin/check-code/page.tsx
+++ b/web/app/(shareLayout)/webapp-signin/check-code/page.tsx
@@ -158,7 +158,7 @@ export default function CheckCode() {
onClick={() => router.back()}
className="flex h-9 cursor-pointer appearance-none items-center justify-center text-text-tertiary focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden"
>
- <span className="bg-background-default-dimm inline-block rounded-full p-1">
+ <span className="inline-block rounded-full p-1">
<span aria-hidden className="i-ri-arrow-left-line block size-3" />
</span>
<span className="ml-2 system-xs-regular">{t(($) => $.back, { ns: 'login' })}</span>
diff --git a/web/app/(shareLayout)/webapp-signin/normalForm.tsx b/web/app/(shareLayout)/webapp-signin/normalForm.tsx
index 4232354bb4c..bfa8906f023 100644
--- a/web/app/(shareLayout)/webapp-signin/normalForm.tsx
+++ b/web/app/(shareLayout)/webapp-signin/normalForm.tsx
@@ -64,7 +64,7 @@ const NormalForm = () => {
<div className="mx-auto mt-8 w-full">
<div className="relative">
<div className="rounded-lg bg-linear-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4">
- <div className="shadows-shadow-lg relative mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
+ <div className="relative mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
<RiContractLine className="size-5" />
<RiErrorWarningFill className="absolute -top-1 -right-1 size-4 text-text-warning-secondary" />
</div>
@@ -84,7 +84,7 @@ const NormalForm = () => {
<div className="mx-auto mt-8 w-full">
<div className="relative">
<div className="rounded-lg bg-linear-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4">
- <div className="shadows-shadow-lg relative mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
+ <div className="relative mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
<RiContractLine className="size-5" />
<RiErrorWarningFill className="absolute -top-1 -right-1 size-4 text-text-warning-secondary" />
</div>
@@ -104,7 +104,7 @@ const NormalForm = () => {
<div className="mx-auto mt-8 w-full">
<div className="relative">
<div className="rounded-lg bg-linear-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4">
- <div className="shadows-shadow-lg relative mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
+ <div className="relative mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
<RiContractLine className="size-5" />
<RiErrorWarningFill className="absolute -top-1 -right-1 size-4 text-text-warning-secondary" />
</div>
@@ -196,7 +196,7 @@ const NormalForm = () => {
{allMethodsAreDisabled && (
<>
<div className="rounded-lg bg-linear-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4">
- <div className="shadows-shadow-lg mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
+ <div className="mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
<RiDoorLockLine className="size-5" />
</div>
<p className="system-sm-medium text-text-primary">
diff --git a/web/app/account/oauth/authorize/page.tsx b/web/app/account/oauth/authorize/page.tsx
index 7853316aa0c..bbdf7f76188 100644
--- a/web/app/account/oauth/authorize/page.tsx
+++ b/web/app/account/oauth/authorize/page.tsx
@@ -198,7 +198,7 @@ export default function OAuthAuthorize() {
<div className="flex items-center gap-2.5">
<Avatar avatar={userProfile.avatar_url} name={userProfile.name} size="lg" />
<div>
- <div className="system-md-semi-bold text-text-secondary">{userProfile.name}</div>
+ <div className="text-text-secondary">{userProfile.name}</div>
<div className="system-xs-regular text-text-tertiary">{userProfile.email}</div>
</div>
</div>
diff --git a/web/app/components/app/configuration/config-var/index.tsx b/web/app/components/app/configuration/config-var/index.tsx
index 5edb0c22261..654a16c50e0 100644
--- a/web/app/components/app/configuration/config-var/index.tsx
+++ b/web/app/components/app/configuration/config-var/index.tsx
@@ -338,7 +338,7 @@ const ConfigVar: FC<IConfigVarProps> = ({ promptVariables, readonly, onPromptVar
{hasVar && (
<div className={cn('mt-1 grid px-3 pb-3')}>
<ReactSortable
- className={cn('grid-col-1 grid space-y-1', readonly && 'grid-cols-2 gap-1 space-y-0')}
+ className={cn('grid space-y-1', readonly && 'grid-cols-2 gap-1 space-y-0')}
list={promptVariablesWithIds}
setList={handlePromptVariablesReorder}
disabled={readonly || isSorting}
diff --git a/web/app/components/app/configuration/configuration-view/index.tsx b/web/app/components/app/configuration/configuration-view/index.tsx
index 5138469b888..2d990e7f487 100644
--- a/web/app/components/app/configuration/configuration-view/index.tsx
+++ b/web/app/components/app/configuration/configuration-view/index.tsx
@@ -112,7 +112,7 @@ const ConfigurationView: FC<ConfigurationViewModel> = ({
<>
<div className="flex h-full flex-col">
<div className="relative flex h-50 grow pt-14">
- <div className="bg-default-subtle absolute top-0 left-0 h-14 w-full">
+ <div className="absolute top-0 left-0 h-14 w-full">
<div className="flex h-14 items-center justify-between px-6">
<div className="flex items-center gap-2">
<div className="system-xl-semibold text-text-primary">
diff --git a/web/app/components/app/deploy/shared/deployment-configuration/credential-field.tsx b/web/app/components/app/deploy/shared/deployment-configuration/credential-field.tsx
index c5bb3d37915..c8d89dce08c 100644
--- a/web/app/components/app/deploy/shared/deployment-configuration/credential-field.tsx
+++ b/web/app/components/app/deploy/shared/deployment-configuration/credential-field.tsx
@@ -88,7 +88,7 @@ export function CredentialField({
<div className="flex size-10 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg shadow-lg backdrop-blur-[5px]">
<span aria-hidden className="i-ri-key-2-line size-5 text-text-tertiary" />
</div>
- <div className="wrap-break-words flex w-full flex-col items-start gap-1">
+ <div className="flex w-full flex-col items-start gap-1">
<p className="w-full system-sm-medium text-text-secondary">
{t(($) => $['studio.noCredentialsYet'])}
</p>
diff --git a/web/app/components/base/chat/chat-with-history/header/index.tsx b/web/app/components/base/chat/chat-with-history/header/index.tsx
index 6fdbc6f8ce0..de5123af87e 100644
--- a/web/app/components/base/chat/chat-with-history/header/index.tsx
+++ b/web/app/components/base/chat/chat-with-history/header/index.tsx
@@ -86,7 +86,7 @@ const Header = () => {
<div
className={cn(
'flex items-center gap-1 transition-all duration-200 ease-in-out',
- !isSidebarCollapsed && 'user-select-none opacity-0',
+ !isSidebarCollapsed && 'opacity-0',
)}
>
<IconButton
diff --git a/web/app/components/base/error-boundary/index.tsx b/web/app/components/base/error-boundary/index.tsx
index 9e6ac2b9b71..66adb153baa 100644
--- a/web/app/components/base/error-boundary/index.tsx
+++ b/web/app/components/base/error-boundary/index.tsx
@@ -121,13 +121,13 @@ class ErrorBoundaryInner extends React.Component<
return (
<div
className={cn(
- 'border-state-critical-border bg-state-critical-hover-alt flex flex-col items-center justify-center rounded-lg border p-8',
+ 'flex flex-col items-center justify-center rounded-lg border p-8',
isolate && 'min-h-50',
className,
)}
>
<div className="mb-4 flex items-center gap-2">
- <RiAlertLine className="text-state-critical-solid size-8" />
+ <RiAlertLine className="size-8" />
<h2 className="text-xl font-semibold text-text-primary">{customTitle || copy.title}</h2>
</div>
diff --git a/web/app/components/base/form/components/base/base-field.tsx b/web/app/components/base/form/components/base/base-field.tsx
index 7d847bfe4b4..231053e78db 100644
--- a/web/app/components/base/form/components/base/base-field.tsx
+++ b/web/app/components/base/form/components/base/base-field.tsx
@@ -401,7 +401,7 @@ const BaseField = ({
>
<FieldLabel
className={cn(
- 'hover:bg-components-option-card-option-hover-bg hover:border-components-option-card-option-hover-border flex h-8 w-full cursor-pointer items-center justify-center gap-2 rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg p-2 system-sm-regular text-text-secondary has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-components-input-border-active',
+ 'flex h-8 w-full cursor-pointer items-center justify-center gap-2 rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg p-2 system-sm-regular text-text-secondary has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-components-input-border-active',
value === option.value &&
'border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg text-text-primary shadow-xs',
disabled && 'cursor-not-allowed opacity-50',
diff --git a/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx b/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx
index bc6c1bd1676..f3d09cdf6e0 100644
--- a/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx
+++ b/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx
@@ -167,7 +167,7 @@ export const IndexingModeSection: FC<IndexingModeSectionProps> = ({
<div className="mt-2 flex h-10 items-center gap-x-0.5 overflow-hidden rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur p-2 shadow-xs backdrop-blur-[5px]">
<div className="absolute inset-0 bg-dataset-warning-message-bg opacity-40"></div>
<div className="p-1">
- <span className="i-custom-vender-solid-alertsandfeedback-alert-triangle size-4 text-text-warning-secondary" />
+ <span className="size-4 text-text-warning-secondary" />
</div>
<span className="system-xs-medium text-text-primary">
{t(($) => $['stepTwo.highQualityTip'], { ns: 'datasetCreation' })}
diff --git a/web/app/components/datasets/create/website/base/crawled-result.tsx b/web/app/components/datasets/create/website/base/crawled-result.tsx
index 8568d87409d..f9e1f53c274 100644
--- a/web/app/components/datasets/create/website/base/crawled-result.tsx
+++ b/web/app/components/datasets/create/website/base/crawled-result.tsx
@@ -76,7 +76,7 @@ const CrawledResult: FC<Props> = ({
? t(($) => $[`${I18N_PREFIX}.resetAll`], { ns: 'datasetCreation' })
: t(($) => $[`${I18N_PREFIX}.selectAll`], { ns: 'datasetCreation' })
}
- labelClassName="system-[13px] leading-[16px] font-medium text-text-secondary"
+ labelClassName="leading-[16px] font-medium text-text-secondary"
/>
<div className="text-xs text-text-tertiary">
{t(($) => $[`${I18N_PREFIX}.scrapTimeInfo`], {
diff --git a/web/app/components/datasets/create/website/base/text-input.tsx b/web/app/components/datasets/create/website/base/text-input.tsx
index d3ab1d3b09f..0f00ab8b850 100644
--- a/web/app/components/datasets/create/website/base/text-input.tsx
+++ b/web/app/components/datasets/create/website/base/text-input.tsx
@@ -46,7 +46,7 @@ const Input: FC<Props> = ({ value, onChange, placeholder = '', isNumber = false
{...otherOption}
value={value}
onChange={handleChange}
- className="focus:bg-components-inout-border-active flex h-8 w-full rounded-lg border border-transparent bg-components-input-bg-normal p-2 system-xs-regular text-components-input-text-filled caret-[#295eff] placeholder:text-components-input-text-placeholder hover:border hover:border-components-input-border-hover hover:bg-components-input-bg-hover focus:border focus:border-components-input-border-active focus:shadow-xs focus:shadow-shadow-shadow-3 focus-visible:outline-hidden"
+ className="flex h-8 w-full rounded-lg border border-transparent bg-components-input-bg-normal p-2 system-xs-regular text-components-input-text-filled caret-[#295eff] placeholder:text-components-input-text-placeholder hover:border hover:border-components-input-border-hover hover:bg-components-input-bg-hover focus:border focus:border-components-input-border-active focus:shadow-xs focus:shadow-shadow-shadow-3 focus-visible:outline-hidden"
placeholder={placeholder}
/>
)
diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsx
index 09a6d733fe7..93403b8625f 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source-options/option-card.tsx
@@ -20,7 +20,7 @@ const OptionCard = ({ label, selected, nodeData, onClick }: OptionCardProps) =>
'flex cursor-pointer items-center gap-2 rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-3 shadow-shadow-shadow-3',
selected
? 'border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs inset-ring-[0.5px] inset-ring-components-option-card-option-selected-border'
- : 'hover:bg-components-option-card-bg-hover hover:border-components-option-card-option-border-hover hover:shadow-xs',
+ : 'hover:border-components-option-card-option-border-hover hover:shadow-xs',
)}
onClick={onClick}
>
diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/__tests__/index.spec.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/__tests__/index.spec.tsx
index ab7d83a450f..c10ec958f00 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/__tests__/index.spec.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/__tests__/index.spec.tsx
@@ -211,10 +211,15 @@ describe('FileList', () => {
const fileList = [createMockOnlineDriveFile()]
const props = createDefaultProps({ isLoading: true, fileList })
- const { container } = render(<FileList {...props} />)
+ const { rerender } = render(<FileList {...props} />)
+
+ expect(screen.getByRole('status', { name: 'appApi.loading' })).toBeInTheDocument()
+ expect(screen.getByRole('checkbox', { name: 'test-file.txt' })).toBeInTheDocument()
+
+ rerender(<FileList {...props} isLoading={false} />)
- // Assert - Should show spinner icon at the bottom
- expect(container.querySelector('.animation-spin')).toBeInTheDocument()
+ expect(screen.queryByRole('status', { name: 'appApi.loading' })).not.toBeInTheDocument()
+ expect(screen.getByRole('checkbox', { name: 'test-file.txt' })).toBeInTheDocument()
})
})
diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/index.tsx
index c10cdafa2b0..051aff77cdb 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/index.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/index.tsx
@@ -96,7 +96,7 @@ const Breadcrumbs = ({
return (
<div className="flex grow items-center overflow-hidden">
{showSearchResult && (
- <div className="text-test-secondary px-1.25 system-sm-medium">
+ <div className="px-1.25 system-sm-medium">
{t(($) => $['onlineDrive.breadcrumbs.searchResult'], {
ns: 'datasetPipeline',
searchResultsLength,
@@ -105,7 +105,7 @@ const Breadcrumbs = ({
</div>
)}
{!showSearchResult && showBucketListTitle && (
- <div className="text-test-secondary px-1.25 system-sm-medium">
+ <div className="px-1.25 system-sm-medium">
{t(($) => $['onlineDrive.breadcrumbs.allBuckets'], { ns: 'datasetPipeline' })}
</div>
)}
diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.tsx
index ed77e0a4fb5..993f9b3fd0f 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.tsx
@@ -105,7 +105,7 @@ const List = ({
aria-live="polite"
aria-label={t(($) => $.loading, { ns: 'appApi' })}
>
- <RiLoader2Line className="animation-spin size-4 text-text-tertiary" />
+ <RiLoader2Line className="size-4 text-text-tertiary" />
</div>
)}
<div ref={anchorRef} className="h-0" />
diff --git a/web/app/components/datasets/documents/create-from-pipeline/preview/file-preview.tsx b/web/app/components/datasets/documents/create-from-pipeline/preview/file-preview.tsx
index a1b9a2edff4..21100e0d30c 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/preview/file-preview.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/preview/file-preview.tsx
@@ -31,7 +31,7 @@ const FilePreview = ({ file, hidePreview }: FilePreviewProps) => {
<div className="system-2xs-semibold-uppercase text-text-accent">
{t(($) => $['addDocuments.stepOne.preview'], { ns: 'datasetPipeline' })}
</div>
- <div className="text-tex-primary title-md-semi-bold">{`${fileName}.${file.extension || ''}`}</div>
+ <div className="title-md-semi-bold">{`${fileName}.${file.extension || ''}`}</div>
<div className="flex items-center gap-x-1 system-xs-medium text-text-tertiary">
<DocumentFileIcon
className="size-3.5 shrink-0"
diff --git a/web/app/components/datasets/documents/create-from-pipeline/preview/online-document-preview.tsx b/web/app/components/datasets/documents/create-from-pipeline/preview/online-document-preview.tsx
index 00575f72578..00a649bd5ac 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/preview/online-document-preview.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/preview/online-document-preview.tsx
@@ -59,7 +59,7 @@ const OnlineDocumentPreview = ({
<div className="system-2xs-semibold-uppercase text-text-accent">
{t(($) => $['addDocuments.stepOne.preview'], { ns: 'datasetPipeline' })}
</div>
- <div className="text-tex-primary title-md-semi-bold">{currentPage?.page_name}</div>
+ <div className="title-md-semi-bold">{currentPage?.page_name}</div>
<div className="flex items-center gap-x-1 system-xs-medium text-text-tertiary">
<Notion className="size-3.5" />
<span>{currentPage.type}</span>
diff --git a/web/app/components/datasets/documents/create-from-pipeline/preview/web-preview.tsx b/web/app/components/datasets/documents/create-from-pipeline/preview/web-preview.tsx
index 447a9779141..623cd257405 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/preview/web-preview.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/preview/web-preview.tsx
@@ -20,7 +20,7 @@ const WebsitePreview = ({ currentWebsite, hidePreview }: WebsitePreviewProps) =>
<div className="system-2xs-semibold-uppercase">
{t(($) => $['addDocuments.stepOne.preview'], { ns: 'datasetPipeline' })}
</div>
- <div className="text-tex-primary title-md-semi-bold">{currentWebsite.title}</div>
+ <div className="title-md-semi-bold">{currentWebsite.title}</div>
<div className="flex gap-x-1 system-xs-medium text-text-tertiary">
<RiGlobalLine className="size-3.5" />
<span className="uppercase" title={currentWebsite.source_url}>
diff --git a/web/app/components/datasets/external-api/external-knowledge-api-card/index.tsx b/web/app/components/datasets/external-api/external-knowledge-api-card/index.tsx
index 56ed1f085f4..56aaa357eb0 100644
--- a/web/app/components/datasets/external-api/external-knowledge-api-card/index.tsx
+++ b/web/app/components/datasets/external-api/external-knowledge-api-card/index.tsx
@@ -121,7 +121,7 @@ const ExternalKnowledgeAPICard: React.FC<ExternalKnowledgeAPICardProps> = ({
return (
<>
<div
- className={`shadows-shadow-xs flex items-start self-stretch rounded-lg border-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg p-2 pl-3 ${isHovered ? 'border-state-destructive-border bg-state-destructive-hover' : ''}`}
+ className={`flex items-start self-stretch rounded-lg border-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg p-2 pl-3 ${isHovered ? 'border-state-destructive-border bg-state-destructive-hover' : ''}`}
>
<div className="flex grow flex-col items-start justify-center gap-1.5 py-1">
<div className="flex items-center gap-1 self-stretch text-text-secondary">
diff --git a/web/app/components/datasets/hit-testing/modify-external-retrieval-modal.tsx b/web/app/components/datasets/hit-testing/modify-external-retrieval-modal.tsx
index 1b353ab1527..bf5793699ce 100644
--- a/web/app/components/datasets/hit-testing/modify-external-retrieval-modal.tsx
+++ b/web/app/components/datasets/hit-testing/modify-external-retrieval-modal.tsx
@@ -50,7 +50,7 @@ const ModifyExternalRetrievalModal: React.FC<ModifyExternalRetrievalModalProps>
}
return (
- <div className="shadows-shadow-2xl absolute top-9 right-3.5 z-10 flex w-[320px] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg">
+ <div className="absolute top-9 right-3.5 z-10 flex w-[320px] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg">
<div className="flex items-center justify-between self-stretch p-4 pb-2">
<div className="grow system-xl-semibold text-text-primary">
{t(($) => $.settingTitle, { ns: 'datasetHitTesting' })}
diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/credential-selector.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/credential-selector.tsx
index d095af2710f..0cd7ac09d5a 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-auth/credential-selector.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/credential-selector.tsx
@@ -68,7 +68,7 @@ const CredentialSelector = ({
</PopoverTrigger>
<PopoverContent
sideOffset={0}
- className="border-ccomponents-panel-border w-(--anchor-width) rounded-xl border-[0.5px] bg-components-panel-bg-blur p-0"
+ className="w-(--anchor-width) rounded-xl border-[0.5px] border-current bg-components-panel-bg-blur p-0"
>
<div className="max-h-80 overflow-y-auto p-1">
{credentials.map((credential) => (
diff --git a/web/app/components/plugins/install-plugin/install-bundle/index.tsx b/web/app/components/plugins/install-plugin/install-bundle/index.tsx
index 3df9f9f90ef..129205b6009 100644
--- a/web/app/components/plugins/install-plugin/install-bundle/index.tsx
+++ b/web/app/components/plugins/install-plugin/install-bundle/index.tsx
@@ -71,7 +71,7 @@ const InstallBundle: FC<Props> = ({
'w-full max-w-120 overflow-hidden! text-left align-middle',
cn(
modalClassName,
- 'shadows-shadow-xl flex max-h-[calc(100dvh-48px)] min-w-140 flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0',
+ 'flex max-h-[calc(100dvh-48px)] min-w-140 flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0',
),
)}
>
diff --git a/web/app/components/plugins/install-plugin/install-from-github/index.tsx b/web/app/components/plugins/install-plugin/install-from-github/index.tsx
index 3be2c3c797d..c599227ff1b 100644
--- a/web/app/components/plugins/install-plugin/install-from-github/index.tsx
+++ b/web/app/components/plugins/install-plugin/install-from-github/index.tsx
@@ -185,7 +185,7 @@ const InstallFromGitHub: React.FC<InstallFromGitHubProps> = ({
'w-140 overflow-hidden! text-left align-middle',
cn(
modalClassName,
- 'shadows-shadow-xl flex max-h-[calc(100dvh-48px)] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0',
+ 'flex max-h-[calc(100dvh-48px)] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0',
),
)}
>
diff --git a/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx b/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx
index 825484b0d4b..4c48e75c7c0 100644
--- a/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx
+++ b/web/app/components/plugins/install-plugin/install-from-local-package/index.tsx
@@ -93,7 +93,7 @@ const InstallFromLocalPackage: React.FC<InstallFromLocalPackageProps> = ({
'w-140 overflow-hidden! text-left align-middle',
cn(
modalClassName,
- 'shadows-shadow-xl flex max-h-[calc(100dvh-48px)] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0',
+ 'flex max-h-[calc(100dvh-48px)] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0',
),
)}
>
diff --git a/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx b/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx
index 4617eb682c0..0d9ecf84e7b 100644
--- a/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx
+++ b/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx
@@ -89,7 +89,7 @@ const InstallFromMarketplace: React.FC<InstallFromMarketplaceProps> = ({
'w-140 overflow-hidden! text-left align-middle',
cn(
modalClassName,
- 'shadows-shadow-xl flex max-h-[calc(100dvh-48px)] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0',
+ 'flex max-h-[calc(100dvh-48px)] flex-col items-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0',
),
)}
>
diff --git a/web/app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsx b/web/app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsx
index 48aecf54a94..c8f948fff02 100644
--- a/web/app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsx
+++ b/web/app/components/rag-pipeline/components/panel/test-run/preparation/data-source-options/option-card.tsx
@@ -27,7 +27,7 @@ const OptionCard = ({ label, value, selected, nodeData, onClick }: OptionCardPro
'flex cursor-pointer flex-col gap-1 rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-2.5 shadow-shadow-shadow-3',
selected
? 'border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg shadow-xs inset-ring-[0.5px] inset-ring-components-option-card-option-selected-border'
- : 'hover:bg-components-option-card-bg-hover hover:border-components-option-card-option-border-hover hover:shadow-xs',
+ : 'hover:border-components-option-card-option-border-hover hover:shadow-xs',
)}
onClick={handleClickCard}
>
diff --git a/web/app/components/rag-pipeline/components/panel/test-run/result/result-preview/index.tsx b/web/app/components/rag-pipeline/components/panel/test-run/result/result-preview/index.tsx
index 12cd59f647c..362190468f7 100644
--- a/web/app/components/rag-pipeline/components/panel/test-run/result/result-preview/index.tsx
+++ b/web/app/components/rag-pipeline/components/panel/test-run/result/result-preview/index.tsx
@@ -47,7 +47,6 @@ const ResultPreview = ({ isRunning, outputs, error, onSwitchToDetail }: ResultTe
<div className="mt-1 flex items-center gap-x-2 system-xs-regular text-text-tertiary">
<div className="h-px flex-1 bg-linear-to-r from-background-gradient-mask-transparent to-divider-regular" />
<span
- className="shrink-0truncate"
title={t(($) => $['result.resultPreview.footerTip'], {
ns: 'pipeline',
count: RAG_PIPELINE_PREVIEW_CHUNK_NUM,
diff --git a/web/app/components/tools/edit-custom-collection-modal/test-api.tsx b/web/app/components/tools/edit-custom-collection-modal/test-api.tsx
index 2759df58f85..f5a20945aea 100644
--- a/web/app/components/tools/edit-custom-collection-modal/test-api.tsx
+++ b/web/app/components/tools/edit-custom-collection-modal/test-api.tsx
@@ -156,7 +156,7 @@ const TestApi: FC<Props> = ({ positionCenter, customCollection, tool, onHide })
})
}
type="text"
- className="!hover:border-transparent !hover:bg-transparent !focus:border-transparent !focus:bg-transparent border-transparent! bg-transparent!"
+ className="border-transparent! bg-transparent!"
/>
</td>
</tr>
@@ -179,7 +179,7 @@ const TestApi: FC<Props> = ({ positionCenter, customCollection, tool, onHide })
<div className="system-xs-semibold text-text-tertiary">
{t(($) => $['test.testResult'], { ns: 'tools' })}
</div>
- <div className="bg-[rgb(243, 244, 246)] h-px w-0 grow"></div>
+ <div className="h-px w-0 grow"></div>
</div>
<div className="mt-2 h-50 overflow-x-hidden overflow-y-auto rounded-lg bg-components-input-bg-normal px-3 py-2 system-xs-regular text-text-secondary">
{result || (
diff --git a/web/app/components/workflow/block-selector/tabs.tsx b/web/app/components/workflow/block-selector/tabs.tsx
index 885b2b24782..31d660f12fc 100644
--- a/web/app/components/workflow/block-selector/tabs.tsx
+++ b/web/app/components/workflow/block-selector/tabs.tsx
@@ -273,7 +273,7 @@ function BlockSelectorPanels({
<TabHeaderItem key={tab.key} tab={tab} fallbackDisabledTip={fallbackDisabledTip} />
))}
<TabsIndicator
- className="sm-no-bottom pointer-events-none absolute left-0 rounded-t-lg bg-components-panel-bg transition-[translate,width] duration-150 ease-in-out motion-reduce:transition-none"
+ className="pointer-events-none absolute left-0 rounded-t-lg bg-components-panel-bg transition-[translate,width] duration-150 ease-in-out motion-reduce:transition-none"
style={{
top: 'var(--active-tab-top)',
translate: 'var(--active-tab-left)',
diff --git a/web/app/components/workflow/header/view-workflow-history.tsx b/web/app/components/workflow/header/view-workflow-history.tsx
index c5f55444996..b799bddc35b 100644
--- a/web/app/components/workflow/header/view-workflow-history.tsx
+++ b/web/app/components/workflow/header/view-workflow-history.tsx
@@ -176,7 +176,7 @@ const ViewWorkflowHistory = () => {
<PopoverContent placement="bottom-end" className="border-none bg-transparent shadow-none">
<div className="flex max-w-90 min-w-60 flex-col overflow-y-auto rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-xl backdrop-blur-[5px]">
<div className="sticky top-0 flex items-center justify-between px-4 pt-3">
- <div className="system-mg-regular grow text-text-secondary">
+ <div className="grow text-text-secondary">
{t(($) => $['changeHistory.title'], { ns: 'workflow' })}
</div>
<PopoverClose
diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/mail-body-input.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/mail-body-input.tsx
index 80c956c5bb7..b68e5479391 100644
--- a/web/app/components/workflow/nodes/human-input/components/delivery-method/mail-body-input.tsx
+++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/mail-body-input.tsx
@@ -29,7 +29,7 @@ const MailBodyInput = ({
'hover:border-components-input-border-hover hover:bg-components-input-bg-hover',
'focus-within:border-components-input-border-active focus-within:bg-components-input-bg-active focus-within:shadow-xs',
)}
- className="caret:text-text-accent min-h-32"
+ className="min-h-32"
editable={!readOnly}
value={value}
requestURLBlock={{
diff --git a/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/index.tsx b/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/index.tsx
index 125784d8cb9..f892aa63988 100644
--- a/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/index.tsx
+++ b/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/index.tsx
@@ -38,7 +38,6 @@ const MixedVariableTextInput = ({
'hover:border-components-input-border-hover hover:bg-components-input-bg-hover',
'focus-within:border-components-input-border-active focus-within:bg-components-input-bg-active focus-within:shadow-xs',
)}
- className="caret:text-text-accent"
editable={!readOnly}
value={value}
workflowVariableBlock={{
diff --git a/web/app/components/workflow/variable-inspect/right.tsx b/web/app/components/workflow/variable-inspect/right.tsx
index 92c1efc9537..72274e26320 100644
--- a/web/app/components/workflow/variable-inspect/right.tsx
+++ b/web/app/components/workflow/variable-inspect/right.tsx
@@ -250,9 +250,7 @@ const Right = ({ nodeId, currentNodeVar, handleOpenMenu, isValueFetching }: Prop
{!isTruncated && currentNodeVar.var.edited && (
<Badge>
<span className="mr-[4.5px] ml-[2.5px] h-0.75 w-0.75 rounded-sm bg-text-accent-secondary"></span>
- <span className="system-2xs-semibold-uupercase">
- {t(($) => $['debug.variableInspect.edited'], { ns: 'workflow' })}
- </span>
+ <span>{t(($) => $['debug.variableInspect.edited'], { ns: 'workflow' })}</span>
</Badge>
)}
{!isTruncated &&
diff --git a/web/app/signin/normal-form.tsx b/web/app/signin/normal-form.tsx
index 52848170cd8..7db9b968331 100644
--- a/web/app/signin/normal-form.tsx
+++ b/web/app/signin/normal-form.tsx
@@ -125,7 +125,7 @@ function NormalForm() {
<div className="mx-auto mt-8 w-full">
<div className="relative">
<div className="rounded-lg bg-linear-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4">
- <div className="shadows-shadow-lg relative mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
+ <div className="relative mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
<RiContractLine className="size-5" />
<RiErrorWarningFill className="absolute -top-1 -right-1 size-4 text-text-warning-secondary" />
</div>
@@ -145,7 +145,7 @@ function NormalForm() {
<div className="mx-auto mt-8 w-full">
<div className="relative">
<div className="rounded-lg bg-linear-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4">
- <div className="shadows-shadow-lg relative mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
+ <div className="relative mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
<RiContractLine className="size-5" />
<RiErrorWarningFill className="absolute -top-1 -right-1 size-4 text-text-warning-secondary" />
</div>
@@ -165,7 +165,7 @@ function NormalForm() {
<div className="mx-auto mt-8 w-full">
<div className="relative">
<div className="rounded-lg bg-linear-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4">
- <div className="shadows-shadow-lg relative mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
+ <div className="relative mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
<RiContractLine className="size-5" />
<RiErrorWarningFill className="absolute -top-1 -right-1 size-4 text-text-warning-secondary" />
</div>
@@ -287,7 +287,7 @@ function NormalForm() {
{allMethodsAreDisabled && (
<>
<div className="rounded-lg bg-linear-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4">
- <div className="shadows-shadow-lg mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
+ <div className="mb-2 flex size-10 items-center justify-center rounded-xl bg-components-card-bg shadow">
<RiDoorLockLine className="size-5" />
</div>
<p className="system-sm-medium text-text-primary">
diff --git a/web/app/signup/check-code/page.tsx b/web/app/signup/check-code/page.tsx
index 8ab5c895e77..cafddd4495b 100644
--- a/web/app/signup/check-code/page.tsx
+++ b/web/app/signup/check-code/page.tsx
@@ -122,7 +122,7 @@ export default function CheckCode() {
onClick={() => router.back()}
className="flex h-9 cursor-pointer appearance-none items-center justify-center text-text-tertiary focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden"
>
- <span className="bg-background-default-dimm inline-block rounded-full p-1">
+ <span className="inline-block rounded-full p-1">
<span className="i-ri-arrow-left-line size-3" aria-hidden="true" />
</span>
<span className="ml-2 system-xs-regular">{t(($) => $.back, { ns: 'login' })}</span>