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.

chore: auto fix for tailwind rules (#35332)

Stephen Zhou6ca066983d12
diff --git a/eslint-suppressions.json b/eslint-suppressions.json
index 87d7987dd26..e4831c4e982 100644
--- a/eslint-suppressions.json
+++ b/eslint-suppressions.json
@@ -37,11 +37,6 @@
"count": 3
}
},
- "web/.storybook/utils/form-story-wrapper.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/__mocks__/zustand.ts": {
"no-barrel-files/no-barrel-files": {
"count": 1
@@ -116,11 +111,6 @@
"count": 1
}
},
- "web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/chart-view.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/long-time-range-picker.tsx": {
"no-restricted-imports": {
"count": 2
@@ -169,27 +159,14 @@
"count": 1
}
},
- "web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/settings/page.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/(humanInputLayout)/form/[token]/form.tsx": {
"react/set-state-in-effect": {
"count": 1
}
},
- "web/app/(shareLayout)/components/authenticated-layout.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/(shareLayout)/components/splash.tsx": {
"react/set-state-in-effect": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/(shareLayout)/webapp-reset-password/layout.tsx": {
@@ -202,11 +179,6 @@
"count": 2
}
},
- "web/app/(shareLayout)/webapp-signin/page.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/account/(commonLayout)/account-page/email-change-modal.tsx": {
"erasable-syntax-only/enums": {
"count": 1
@@ -261,9 +233,6 @@
"web/app/components/app-sidebar/basic.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 4
}
},
"web/app/components/app-sidebar/dataset-info/dropdown.tsx": {
@@ -274,11 +243,6 @@
"count": 1
}
},
- "web/app/components/app-sidebar/dataset-info/menu-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/app-sidebar/dataset-sidebar-dropdown.tsx": {
"no-restricted-imports": {
"count": 1
@@ -300,14 +264,6 @@
},
"react-refresh/only-export-components": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/app/annotation/batch-add-annotation-modal/csv-downloader.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 7
}
},
"web/app/components/app/annotation/batch-add-annotation-modal/index.tsx": {
@@ -338,16 +294,6 @@
"count": 1
}
},
- "web/app/components/app/annotation/edit-annotation-modal/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
- "web/app/components/app/annotation/empty-element.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/app/annotation/header-opts/index.tsx": {
"ts/no-explicit-any": {
"count": 1
@@ -380,9 +326,6 @@
"web/app/components/app/app-access-control/specific-groups-or-members.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 4
}
},
"web/app/components/app/app-publisher/features-wrapper.tsx": {
@@ -405,21 +348,11 @@
"count": 1
}
},
- "web/app/components/app/configuration/base/group-name/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/app/configuration/base/var-highlight/index.tsx": {
"react-refresh/only-export-components": {
"count": 1
}
},
- "web/app/components/app/configuration/base/warning-mask/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/app/configuration/config-prompt/advanced-prompt-input.tsx": {
"ts/no-explicit-any": {
"count": 2
@@ -461,11 +394,6 @@
"count": 1
}
},
- "web/app/components/app/configuration/config-var/input-type-icon.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/app/configuration/config-var/select-var-type.tsx": {
"no-restricted-imports": {
"count": 1
@@ -482,12 +410,6 @@
"web/app/components/app/configuration/config-vision/param-config-content.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
}
},
"web/app/components/app/configuration/config/agent/agent-setting/index.tsx": {
@@ -556,11 +478,6 @@
"count": 1
}
},
- "web/app/components/app/configuration/config/automatic/res-placeholder.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/app/configuration/config/automatic/types.ts": {
"erasable-syntax-only/enums": {
"count": 1
@@ -625,11 +542,6 @@
"count": 1
}
},
- "web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
"web/app/components/app/configuration/dataset-config/select-dataset/index.tsx": {
"no-restricted-imports": {
"count": 1
@@ -666,15 +578,9 @@
"web/app/components/app/configuration/debug/debug-with-multiple-model/debug-item.tsx": {
"no-restricted-imports": {
"count": 2
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 2
}
@@ -762,11 +668,6 @@
"count": 1
}
},
- "web/app/components/app/log/empty-element.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/app/log/filter.tsx": {
"react-refresh/only-export-components": {
"count": 1
@@ -775,9 +676,6 @@
"web/app/components/app/log/index.tsx": {
"react/set-state-in-effect": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/app/log/list.tsx": {
@@ -847,12 +745,6 @@
}
},
"web/app/components/app/text-generate/item/result-tab.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 2
}
@@ -860,9 +752,6 @@
"web/app/components/app/workflow-log/detail.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
}
},
"web/app/components/app/workflow-log/filter.tsx": {
@@ -891,20 +780,12 @@
"count": 2
}
},
- "web/app/components/apps/footer.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/apps/list.tsx": {
"react-hooks/exhaustive-deps": {
"count": 1
},
"react/unsupported-syntax": {
"count": 2
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/apps/new-app-card.tsx": {
@@ -945,9 +826,6 @@
}
},
"web/app/components/base/agent-log-modal/result.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 2
}
@@ -972,11 +850,6 @@
"count": 1
}
},
- "web/app/components/base/app-icon/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/audio-btn/audio.ts": {
"node/prefer-global/buffer": {
"count": 1
@@ -1072,11 +945,6 @@
"count": 2
}
},
- "web/app/components/base/chat/chat-with-history/header/mobile-operation-dropdown.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/base/chat/chat-with-history/hooks.tsx": {
"react/set-state-in-effect": {
"count": 4
@@ -1098,16 +966,6 @@
"count": 3
}
},
- "web/app/components/base/chat/chat-with-history/inputs-form/view-form-dropdown.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/chat/chat-with-history/sidebar/list.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/chat/chat-with-history/sidebar/operation.tsx": {
"react/set-state-in-effect": {
"count": 1
@@ -1126,16 +984,6 @@
"count": 1
}
},
- "web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
- "web/app/components/base/chat/chat/answer/human-input-content/tips.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
"web/app/components/base/chat/chat/answer/human-input-content/utils.ts": {
"ts/no-explicit-any": {
"count": 1
@@ -1149,11 +997,6 @@
"count": 1
}
},
- "web/app/components/base/chat/chat/answer/more.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/chat/chat/answer/operation.tsx": {
"no-restricted-imports": {
"count": 2
@@ -1180,24 +1023,6 @@
},
"react/set-state-in-effect": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 5
- }
- },
- "web/app/components/base/chat/chat/citation/popup.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 9
- }
- },
- "web/app/components/base/chat/chat/citation/progress-tooltip.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/chat/chat/citation/tooltip.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/base/chat/chat/hooks.ts": {
@@ -1285,36 +1110,11 @@
"count": 1
}
},
- "web/app/components/base/content-dialog/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/copy-feedback/index.tsx": {
"no-restricted-imports": {
"count": 1
}
},
- "web/app/components/base/copy-icon/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
- "web/app/components/base/corner-label/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/date-and-time-picker/calendar/days-of-week.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/date-and-time-picker/date-picker/header.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/date-and-time-picker/date-picker/index.tsx": {
"react/set-state-in-effect": {
"count": 4
@@ -1325,11 +1125,6 @@
"count": 2
}
},
- "web/app/components/base/date-and-time-picker/time-picker/header.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/date-and-time-picker/time-picker/index.tsx": {
"react/set-state-in-effect": {
"count": 2
@@ -1345,11 +1140,6 @@
"count": 1
}
},
- "web/app/components/base/date-and-time-picker/year-and-month-picker/header.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/dialog/index.stories.tsx": {
"react/set-state-in-effect": {
"count": 1
@@ -1360,11 +1150,6 @@
"count": 1
}
},
- "web/app/components/base/effect/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/base/emoji-picker/Inner.tsx": {
"react/set-state-in-effect": {
"count": 1
@@ -1409,9 +1194,6 @@
"web/app/components/base/features/new-feature-panel/annotation-reply/config-param.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
}
},
"web/app/components/base/features/new-feature-panel/annotation-reply/index.tsx": {
@@ -1419,11 +1201,6 @@
"count": 3
}
},
- "web/app/components/base/features/new-feature-panel/annotation-reply/score-slider/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/features/new-feature-panel/annotation-reply/type.ts": {
"erasable-syntax-only/enums": {
"count": 1
@@ -1460,11 +1237,6 @@
"count": 1
}
},
- "web/app/components/base/features/new-feature-panel/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/base/features/new-feature-panel/moderation/form-generation.tsx": {
"no-restricted-imports": {
"count": 1
@@ -1501,16 +1273,6 @@
"count": 1
}
},
- "web/app/components/base/file-icon/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/file-uploader/audio-preview.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/file-uploader/dynamic-pdf-preview.tsx": {
"ts/no-explicit-any": {
"count": 1
@@ -1545,9 +1307,6 @@
"web/app/components/base/file-uploader/pdf-preview.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
}
},
"web/app/components/base/file-uploader/store.tsx": {
@@ -1565,11 +1324,6 @@
"count": 3
}
},
- "web/app/components/base/file-uploader/video-preview.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/form/components/base/base-field.tsx": {
"no-restricted-imports": {
"count": 2
@@ -1589,9 +1343,6 @@
}
},
"web/app/components/base/form/components/field/mixed-variable-text-input/placeholder.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -1698,11 +1449,6 @@
"count": 1
}
},
- "web/app/components/base/grid-mask/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
"web/app/components/base/icons/src/public/avatar/index.ts": {
"no-barrel-files/no-barrel-files": {
"count": 2
@@ -1948,11 +1694,6 @@
"count": 3
}
},
- "web/app/components/base/image-uploader/audio-preview.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/image-uploader/hooks.ts": {
"ts/no-explicit-any": {
"count": 4
@@ -1963,11 +1704,6 @@
"count": 1
}
},
- "web/app/components/base/image-uploader/image-list.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/base/image-uploader/image-list.tsx": {
"no-restricted-imports": {
"count": 1
@@ -1977,9 +1713,6 @@
"no-restricted-imports": {
"count": 1
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 6
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -1989,11 +1722,6 @@
"count": 2
}
},
- "web/app/components/base/image-uploader/video-preview.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/inline-delete-confirm/index.stories.tsx": {
"no-console": {
"count": 2
@@ -2017,21 +1745,11 @@
"count": 1
}
},
- "web/app/components/base/loading/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/logo/dify-logo.tsx": {
"react-refresh/only-export-components": {
"count": 2
}
},
- "web/app/components/base/logo/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 4
- }
- },
"web/app/components/base/markdown-blocks/audio-block.tsx": {
"ts/no-explicit-any": {
"count": 5
@@ -2042,11 +1760,6 @@
"count": 1
}
},
- "web/app/components/base/markdown-blocks/code-block.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/markdown-blocks/code-block.tsx": {
"react/set-state-in-effect": {
"count": 7
@@ -2085,11 +1798,6 @@
"count": 2
}
},
- "web/app/components/base/markdown-blocks/think-block.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/base/markdown-blocks/think-block.tsx": {
"react/set-state-in-effect": {
"count": 1
@@ -2108,21 +1816,11 @@
"count": 3
}
},
- "web/app/components/base/markdown/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/markdown/markdown-utils.ts": {
"regexp/no-unused-capturing-group": {
"count": 1
}
},
- "web/app/components/base/mermaid/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/mermaid/index.tsx": {
"react/set-state-in-effect": {
"count": 7
@@ -2161,9 +1859,6 @@
"web/app/components/base/modal-like-wrap/index.stories.tsx": {
"no-console": {
"count": 3
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
}
},
"web/app/components/base/modal/index.stories.tsx": {
@@ -2200,26 +1895,11 @@
"count": 1
}
},
- "web/app/components/base/notion-page-selector/credential-selector/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
- "web/app/components/base/notion-page-selector/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/notion-page-selector/index.tsx": {
"no-barrel-files/no-barrel-files": {
"count": 1
}
},
- "web/app/components/base/pagination/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/pagination/index.tsx": {
"unicorn/prefer-number-properties": {
"count": 1
@@ -2230,43 +1910,20 @@
"count": 1
}
},
- "web/app/components/base/param-item/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/param-item/index.tsx": {
"no-restricted-imports": {
"count": 1
}
},
- "web/app/components/base/portal-to-follow-elem/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/portal-to-follow-elem/index.tsx": {
"ts/no-explicit-any": {
"count": 1
}
},
- "web/app/components/base/premium-badge/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
- "web/app/components/base/progress-bar/progress-circle.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/prompt-editor/index.stories.tsx": {
"no-console": {
"count": 1
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 2
}
@@ -2286,15 +1943,7 @@
"count": 1
}
},
- "web/app/components/base/prompt-editor/plugins/component-picker-block/prompt-option.tsx": {
- "tailwindcss/no-duplicate-classes": {
- "count": 2
- }
- },
"web/app/components/base/prompt-editor/plugins/context-block/component.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -2329,9 +1978,6 @@
}
},
"web/app/components/base/prompt-editor/plugins/history-block/component.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -2349,11 +1995,6 @@
"count": 1
}
},
- "web/app/components/base/prompt-editor/plugins/hitl-input-block/component.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/prompt-editor/plugins/hitl-input-block/hitl-input-block-replacement-block.tsx": {
"ts/no-explicit-any": {
"count": 1
@@ -2380,11 +2021,6 @@
"count": 2
}
},
- "web/app/components/base/prompt-editor/plugins/query-block/component.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/prompt-editor/plugins/query-block/index.tsx": {
"no-barrel-files/no-barrel-files": {
"count": 3
@@ -2434,11 +2070,6 @@
"count": 4
}
},
- "web/app/components/base/prompt-log-modal/card.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/prompt-log-modal/index.stories.tsx": {
"no-console": {
"count": 1
@@ -2447,22 +2078,11 @@
"web/app/components/base/prompt-log-modal/index.tsx": {
"react/set-state-in-effect": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/qrcode/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/base/qrcode/index.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/base/radio-card/index.stories.tsx": {
@@ -2493,11 +2113,6 @@
"count": 1
}
},
- "web/app/components/base/segmented-control/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/base/select/index.stories.tsx": {
"no-console": {
"count": 4
@@ -2517,90 +2132,35 @@
"count": 1
}
},
- "web/app/components/base/select/locale-signin.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
+ "web/app/components/base/sort/index.tsx": {
+ "ts/no-explicit-any": {
+ "count": 2
}
},
- "web/app/components/base/simple-pie-chart/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
+ "web/app/components/base/svg-gallery/index.tsx": {
+ "node/prefer-global/buffer": {
"count": 1
}
},
- "web/app/components/base/skeleton/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
+ "web/app/components/base/switch/index.stories.tsx": {
+ "ts/no-explicit-any": {
"count": 1
}
},
- "web/app/components/base/sort/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
+ "web/app/components/base/tab-slider/index.tsx": {
+ "react/set-state-in-effect": {
+ "count": 2
+ }
+ },
+ "web/app/components/base/tag-input/index.stories.tsx": {
+ "no-console": {
+ "count": 2
+ },
+ "ts/no-explicit-any": {
"count": 1
}
},
- "web/app/components/base/sort/index.tsx": {
- "ts/no-explicit-any": {
- "count": 2
- }
- },
- "web/app/components/base/spinner/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/spinner/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/svg-gallery/index.tsx": {
- "node/prefer-global/buffer": {
- "count": 1
- }
- },
- "web/app/components/base/svg/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/switch/index.stories.tsx": {
- "ts/no-explicit-any": {
- "count": 1
- }
- },
- "web/app/components/base/tab-header/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/tab-slider-new/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/tab-slider-plain/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/tab-slider/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/base/tab-slider/index.tsx": {
- "react/set-state-in-effect": {
- "count": 2
- }
- },
- "web/app/components/base/tag-input/index.stories.tsx": {
- "no-console": {
- "count": 2
- },
- "ts/no-explicit-any": {
- "count": 1
- }
- },
- "web/app/components/base/tag-management/__tests__/panel.spec.tsx": {
+ "web/app/components/base/tag-management/__tests__/panel.spec.tsx": {
"ts/no-explicit-any": {
"count": 2
}
@@ -2608,14 +2168,6 @@
"web/app/components/base/tag-management/index.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
- "web/app/components/base/tag-management/panel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 5
}
},
"web/app/components/base/tag-management/tag-item-editor.tsx": {
@@ -2628,16 +2180,6 @@
"count": 1
}
},
- "web/app/components/base/tag-management/trigger.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
- "web/app/components/base/tag/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/base/text-generation/hooks.ts": {
"ts/no-explicit-any": {
"count": 1
@@ -2661,11 +2203,6 @@
"count": 1
}
},
- "web/app/components/base/tooltip/index.stories.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/base/video-gallery/VideoPlayer.tsx": {
"react/set-state-in-effect": {
"count": 1
@@ -2680,9 +2217,6 @@
"no-console": {
"count": 2
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -2743,11 +2277,6 @@
"count": 12
}
},
- "web/app/components/billing/pricing/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/billing/pricing/plan-switcher/plan-range-switcher.tsx": {
"erasable-syntax-only/enums": {
"count": 1
@@ -2756,21 +2285,6 @@
"count": 1
}
},
- "web/app/components/billing/pricing/plans/cloud-plan-item/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 8
- }
- },
- "web/app/components/billing/pricing/plans/cloud-plan-item/list/item/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/billing/pricing/plans/self-hosted-plan-item/list/item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/billing/pricing/types.ts": {
"erasable-syntax-only/enums": {
"count": 1
@@ -2796,21 +2310,6 @@
"count": 1
}
},
- "web/app/components/custom/custom-page/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/custom/custom-web-app-brand/components/powered-by-brand.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/datasets/chunk.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/datasets/common/document-picker/index.tsx": {
"no-restricted-imports": {
"count": 1
@@ -2821,11 +2320,6 @@
"count": 1
}
},
- "web/app/components/datasets/common/image-list/more.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/datasets/common/image-previewer/index.tsx": {
"no-irregular-whitespace": {
"count": 1
@@ -2854,9 +2348,6 @@
"web/app/components/datasets/common/retrieval-method-info/index.tsx": {
"react-refresh/only-export-components": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/datasets/common/retrieval-param-config/index.tsx": {
@@ -2869,11 +2360,6 @@
"count": 1
}
},
- "web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/header.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/hooks/use-dsl-import.ts": {
"erasable-syntax-only/enums": {
"count": 1
@@ -2887,36 +2373,6 @@
"count": 1
}
},
- "web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/tab/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/datasets/create-from-pipeline/footer.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
- "web/app/components/datasets/create-from-pipeline/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/datasets/create-from-pipeline/list/customized-list.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/datasets/create-from-pipeline/list/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/datasets/create-from-pipeline/list/template-card/content.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
"web/app/components/datasets/create-from-pipeline/list/template-card/details/index.tsx": {
"no-restricted-imports": {
"count": 1
@@ -2962,14 +2418,6 @@
"count": 1
}
},
- "web/app/components/datasets/create/step-one/upgrade-card.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- }
- },
"web/app/components/datasets/create/step-two/components/general-chunking-options.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3017,9 +2465,6 @@
},
"react-refresh/only-export-components": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/datasets/create/stop-embedding-modal/index.tsx": {
@@ -3037,11 +2482,6 @@
"count": 1
}
},
- "web/app/components/datasets/create/website/base/input.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/datasets/create/website/firecrawl/index.tsx": {
"erasable-syntax-only/enums": {
"count": 1
@@ -3119,11 +2559,6 @@
"count": 1
}
},
- "web/app/components/datasets/documents/components/list.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/datasets/documents/components/operations.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3144,11 +2579,6 @@
"count": 1
}
},
- "web/app/components/datasets/documents/create-from-pipeline/data-source/base/credential-selector/item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/datasets/documents/create-from-pipeline/data-source/base/header.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3159,11 +2589,6 @@
"count": 1
}
},
- "web/app/components/datasets/documents/create-from-pipeline/data-source/online-documents/title.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/bucket.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3174,16 +2599,6 @@
"count": 1
}
},
- "web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/dropdown/item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/item.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3229,24 +2644,6 @@
"count": 5
}
},
- "web/app/components/datasets/documents/create-from-pipeline/preview/file-preview.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 5
- }
- },
- "web/app/components/datasets/documents/create-from-pipeline/preview/online-document-preview.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 5
- }
- },
- "web/app/components/datasets/documents/create-from-pipeline/preview/web-preview.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 5
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- }
- },
"web/app/components/datasets/documents/create-from-pipeline/process-documents/form.tsx": {
"ts/no-explicit-any": {
"count": 3
@@ -3267,21 +2664,11 @@
"count": 3
}
},
- "web/app/components/datasets/documents/create-from-pipeline/steps/preview-panel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/datasets/documents/create-from-pipeline/types.tsx": {
"erasable-syntax-only/enums": {
"count": 1
}
},
- "web/app/components/datasets/documents/detail/batch-modal/csv-downloader.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 9
- }
- },
"web/app/components/datasets/documents/detail/batch-modal/index.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3295,11 +2682,6 @@
"count": 1
}
},
- "web/app/components/datasets/documents/detail/completed/common/empty.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 8
- }
- },
"web/app/components/datasets/documents/detail/completed/common/regeneration-modal.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3318,9 +2700,6 @@
"web/app/components/datasets/documents/detail/completed/components/menu-bar.tsx": {
"no-restricted-imports": {
"count": 2
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/datasets/documents/detail/completed/components/segment-list-content.tsx": {
@@ -3359,26 +2738,6 @@
"count": 1
}
},
- "web/app/components/datasets/documents/detail/completed/skeleton/full-doc-list-skeleton.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/datasets/documents/detail/completed/skeleton/general-list-skeleton.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/datasets/documents/detail/completed/skeleton/paragraph-list-skeleton.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
- "web/app/components/datasets/documents/detail/completed/skeleton/parent-chunk-card-skeleton.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/datasets/documents/detail/completed/status-item.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3394,21 +2753,11 @@
"count": 4
}
},
- "web/app/components/datasets/documents/detail/embedding/components/status-header.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
"web/app/components/datasets/documents/detail/embedding/hooks/index.ts": {
"no-barrel-files/no-barrel-files": {
"count": 1
}
},
- "web/app/components/datasets/documents/detail/embedding/skeleton/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/datasets/documents/detail/metadata/components/doc-type-selector.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3446,9 +2795,6 @@
}
},
"web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 6
}
@@ -3474,9 +2820,6 @@
"web/app/components/datasets/external-knowledge-base/create/ExternalApiSelect.tsx": {
"react/set-state-in-effect": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 4
}
},
"web/app/components/datasets/external-knowledge-base/create/ExternalApiSelection.tsx": {
@@ -3484,17 +2827,9 @@
"count": 1
}
},
- "web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 4
- }
- },
"web/app/components/datasets/extra-info/statistics.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 4
}
},
"web/app/components/datasets/formatted-text/flavours/type.ts": {
@@ -3502,14 +2837,6 @@
"count": 1
}
},
- "web/app/components/datasets/hit-testing/components/child-chunks-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- }
- },
"web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3525,11 +2852,6 @@
"count": 1
}
},
- "web/app/components/datasets/hit-testing/components/result-item-footer.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/datasets/hit-testing/components/score.tsx": {
"unicorn/prefer-number-properties": {
"count": 1
@@ -3550,21 +2872,6 @@
"count": 1
}
},
- "web/app/components/datasets/list/dataset-card/operation-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/datasets/list/dataset-footer/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
- "web/app/components/datasets/list/new-dataset-card/option.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/datasets/metadata/edit-metadata-batch/edited-beacon.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3608,29 +2915,11 @@
"count": 2
}
},
- "web/app/components/datasets/metadata/metadata-dataset/field.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/datasets/metadata/metadata-dataset/select-metadata-modal.tsx": {
"erasable-syntax-only/enums": {
"count": 1
}
},
- "web/app/components/datasets/metadata/metadata-dataset/select-metadata.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 4
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 2
- }
- },
- "web/app/components/datasets/metadata/metadata-document/field.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/datasets/metadata/metadata-document/info-group.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3651,16 +2940,6 @@
"count": 1
}
},
- "web/app/components/datasets/settings/form/components/external-knowledge-section.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/datasets/settings/form/components/indexing-section.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
"web/app/components/datasets/settings/index-method/index.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3679,21 +2958,11 @@
"count": 1
}
},
- "web/app/components/datasets/settings/permission-selector/permission-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/datasets/settings/summary-index-setting.tsx": {
"no-restricted-imports": {
"count": 1
}
},
- "web/app/components/develop/ApiServer.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/develop/code.tsx": {
"ts/no-empty-object-type": {
"count": 1
@@ -3713,9 +2982,6 @@
"web/app/components/develop/secret-key/input-copy.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/develop/secret-key/secret-key-generate.tsx": {
@@ -3755,11 +3021,6 @@
"count": 1
}
},
- "web/app/components/explore/installed-app/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/explore/item-operation/index.tsx": {
"no-restricted-imports": {
"count": 1
@@ -3778,14 +3039,6 @@
"count": 1
}
},
- "web/app/components/explore/try-app/preview/basic-app-preview.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 2
- }
- },
"web/app/components/explore/try-app/tab.tsx": {
"erasable-syntax-only/enums": {
"count": 1
@@ -3847,16 +3100,6 @@
"count": 4
}
},
- "web/app/components/goto-anything/components/result-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/goto-anything/components/result-list.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/goto-anything/context.tsx": {
"react-refresh/only-export-components": {
"count": 1
@@ -3893,9 +3136,6 @@
"web/app/components/header/account-setting/api-based-extension-page/selector.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
}
},
"web/app/components/header/account-setting/data-source-page-new/card.tsx": {
@@ -3931,9 +3171,6 @@
"web/app/components/header/account-setting/data-source-page-new/operator.tsx": {
"no-restricted-imports": {
"count": 2
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 5
}
},
"web/app/components/header/account-setting/data-source-page-new/types.ts": {
@@ -3941,11 +3178,6 @@
"count": 2
}
},
- "web/app/components/header/account-setting/key-validator/KeyInput.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/header/account-setting/key-validator/declarations.ts": {
"erasable-syntax-only/enums": {
"count": 1
@@ -3959,21 +3191,11 @@
"count": 2
}
},
- "web/app/components/header/account-setting/members-page/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 14
- }
- },
"web/app/components/header/account-setting/members-page/invite-modal/index.tsx": {
"react/set-state-in-effect": {
"count": 3
}
},
- "web/app/components/header/account-setting/members-page/invited-modal/invitation-link.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/header/account-setting/members-page/operation/index.tsx": {
"no-restricted-imports": {
"count": 1
@@ -4024,11 +3246,6 @@
"count": 2
}
},
- "web/app/components/header/account-setting/model-provider-page/model-auth/authorized/authorized-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsx": {
"no-restricted-imports": {
"count": 2
@@ -4045,9 +3262,6 @@
"web/app/components/header/account-setting/model-provider-page/model-auth/credential-selector.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 4
}
},
"web/app/components/header/account-setting/model-provider-page/model-auth/hooks/index.ts": {
@@ -4092,9 +3306,6 @@
}
},
"web/app/components/header/account-setting/model-provider-page/model-modal/Input.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"unicorn/prefer-number-properties": {
"count": 2
}
@@ -4110,9 +3321,6 @@
}
},
"web/app/components/header/account-setting/model-provider-page/model-parameter-modal/model-display.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -4121,9 +3329,6 @@
"no-restricted-imports": {
"count": 1
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 2
}
@@ -4146,26 +3351,11 @@
"count": 2
}
},
- "web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/credits-fallback-alert.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
- "web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/dropdown-content.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/header/account-setting/model-provider-page/provider-added-card/model-list-item.tsx": {
"no-restricted-imports": {
"count": 1
}
},
- "web/app/components/header/account-setting/model-provider-page/provider-added-card/model-list.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
"web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-configs.tsx": {
"no-restricted-imports": {
"count": 1
@@ -4188,9 +3378,6 @@
"web/app/components/header/account-setting/model-provider-page/provider-added-card/priority-use-tip.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/header/account-setting/model-provider-page/utils.ts": {
@@ -4216,21 +3403,6 @@
"count": 1
}
},
- "web/app/components/header/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
- "web/app/components/header/license-env/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
- "web/app/components/header/plan-badge/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/plugins/base/badges/icon-with-tooltip.tsx": {
"no-restricted-imports": {
"count": 1
@@ -4241,24 +3413,6 @@
"count": 1
}
},
- "web/app/components/plugins/card/base/corner-mark.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- }
- },
- "web/app/components/plugins/card/base/title.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/plugins/card/card-more-info.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/plugins/card/index.tsx": {
"ts/no-non-null-asserted-optional-chain": {
"count": 1
@@ -4326,35 +3480,19 @@
"count": 1
}
},
- "web/app/components/plugins/marketplace/description/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 9
- }
- },
"web/app/components/plugins/marketplace/hooks.ts": {
"@tanstack/query/exhaustive-deps": {
"count": 1
}
},
- "web/app/components/plugins/marketplace/list/list-wrapper.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/plugins/marketplace/search-box/tags-filter.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
}
},
"web/app/components/plugins/marketplace/sort-dropdown/index.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
}
},
"web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx": {
@@ -4438,15 +3576,7 @@
"count": 2
}
},
- "web/app/components/plugins/plugin-detail-panel/action-list.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/plugins/plugin-detail-panel/agent-strategy-list.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -4455,9 +3585,6 @@
"no-restricted-imports": {
"count": 1
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 8
}
@@ -4465,17 +3592,11 @@
"web/app/components/plugins/plugin-detail-panel/app-selector/app-picker.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
}
},
"web/app/components/plugins/plugin-detail-panel/app-selector/index.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/plugins/plugin-detail-panel/datasource-action-list.tsx": {
@@ -4488,11 +3609,6 @@
"count": 1
}
},
- "web/app/components/plugins/plugin-detail-panel/detail-header/components/header-modals.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 4
- }
- },
"web/app/components/plugins/plugin-detail-panel/detail-header/components/index.ts": {
"no-barrel-files/no-barrel-files": {
"count": 2
@@ -4501,9 +3617,6 @@
"web/app/components/plugins/plugin-detail-panel/detail-header/components/plugin-source-badge.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/plugins/plugin-detail-panel/detail-header/hooks/index.ts": {
@@ -4533,9 +3646,6 @@
}
},
"web/app/components/plugins/plugin-detail-panel/model-list.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -4573,11 +3683,6 @@
"count": 1
}
},
- "web/app/components/plugins/plugin-detail-panel/subscription-list/create/components/modal-steps.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/plugins/plugin-detail-panel/subscription-list/create/hooks/use-common-modal-state.ts": {
"erasable-syntax-only/enums": {
"count": 1
@@ -4675,14 +3780,6 @@
"web/app/components/plugins/plugin-detail-panel/tool-selector/components/schema-modal.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
- "web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-base-form.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
}
},
"web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-item.tsx": {
@@ -4766,16 +3863,6 @@
"count": 1
}
},
- "web/app/components/plugins/plugin-page/plugin-tasks/components/plugin-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
- "web/app/components/plugins/plugin-page/plugin-tasks/components/plugin-section.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/plugins/plugin-page/plugin-tasks/components/task-status-indicator.tsx": {
"no-restricted-imports": {
"count": 1
@@ -4801,14 +3888,6 @@
"count": 1
}
},
- "web/app/components/plugins/reference-setting-modal/auto-update-setting/tool-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 4
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- }
- },
"web/app/components/plugins/reference-setting-modal/auto-update-setting/tool-picker.tsx": {
"no-restricted-imports": {
"count": 1
@@ -4837,11 +3916,6 @@
"count": 1
}
},
- "web/app/components/rag-pipeline/components/chunk-card-list/q-a-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/rag-pipeline/components/panel/input-field/editor/form/hidden-fields.tsx": {
"react/component-hook-factories": {
"count": 1
@@ -4867,9 +3941,6 @@
"react/component-hook-factories": {
"count": 1
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -4894,39 +3965,16 @@
"count": 1
}
},
- "web/app/components/rag-pipeline/components/panel/input-field/preview/data-source.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/rag-pipeline/components/panel/input-field/preview/process-documents.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/rag-pipeline/components/panel/test-run/header.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/rag-pipeline/components/panel/test-run/preparation/document-processing/index.tsx": {
"ts/no-explicit-any": {
"count": 1
}
},
"web/app/components/rag-pipeline/components/panel/test-run/preparation/document-processing/options.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 2
}
},
- "web/app/components/rag-pipeline/components/panel/test-run/preparation/footer-tips.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/rag-pipeline/components/panel/test-run/preparation/index.tsx": {
"ts/no-explicit-any": {
"count": 2
@@ -4952,11 +4000,6 @@
"count": 1
}
},
- "web/app/components/rag-pipeline/components/publish-toast.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/rag-pipeline/components/rag-pipeline-children.tsx": {
"ts/no-explicit-any": {
"count": 1
@@ -5056,9 +4099,6 @@
}
},
"web/app/components/share/text-generation/no-data/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"ts/no-empty-object-type": {
"count": 1
}
@@ -5068,11 +4108,6 @@
"count": 1
}
},
- "web/app/components/share/text-generation/run-batch/csv-download/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/share/text-generation/run-batch/csv-reader/index.tsx": {
"ts/no-explicit-any": {
"count": 2
@@ -5099,11 +4134,6 @@
"count": 2
}
},
- "web/app/components/signin/countdown.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/tools/edit-custom-collection-modal/config-credentials.tsx": {
"no-restricted-imports": {
"count": 1
@@ -5132,15 +4162,7 @@
"count": 1
}
},
- "web/app/components/tools/marketplace/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 14
- }
- },
"web/app/components/tools/mcp/create-card.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -5191,21 +4213,11 @@
"count": 3
}
},
- "web/app/components/tools/mcp/sections/headers-section.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/tools/provider-list.tsx": {
"ts/no-explicit-any": {
"count": 1
}
},
- "web/app/components/tools/provider/custom-create-card.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/tools/provider/empty.tsx": {
"ts/no-explicit-any": {
"count": 1
@@ -5244,11 +4256,6 @@
"count": 3
}
},
- "web/app/components/workflow-app/components/workflow-onboarding-modal/start-node-option.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/workflow-app/hooks/index.ts": {
"no-barrel-files/no-barrel-files": {
"count": 13
@@ -5302,9 +4309,6 @@
"web/app/components/workflow/block-selector/blocks.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/workflow/block-selector/featured-tools.tsx": {
@@ -5314,12 +4318,6 @@
"react/set-state-in-effect": {
"count": 2
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 6
- },
- "tailwindcss/no-duplicate-classes": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 2
}
@@ -5331,12 +4329,6 @@
"react/set-state-in-effect": {
"count": 2
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 6
- },
- "tailwindcss/no-duplicate-classes": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 2
}
@@ -5372,22 +4364,11 @@
"web/app/components/workflow/block-selector/rag-tool-recommendations/index.tsx": {
"react/set-state-in-effect": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
- "web/app/components/workflow/block-selector/rag-tool-recommendations/uninstalled-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
}
},
"web/app/components/workflow/block-selector/start-blocks.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
}
},
"web/app/components/workflow/block-selector/tabs.tsx": {
@@ -5459,16 +4440,6 @@
"count": 2
}
},
- "web/app/components/workflow/comment/mention-input.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/workflow/comment/thread.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/context.tsx": {
"react-refresh/only-export-components": {
"count": 1
@@ -5484,21 +4455,6 @@
"count": 1
}
},
- "web/app/components/workflow/header/editing-title.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/workflow/header/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/workflow/header/restoring-title.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/workflow/header/run-mode.tsx": {
"no-console": {
"count": 1
@@ -5507,16 +4463,6 @@
"count": 1
}
},
- "web/app/components/workflow/header/running-title.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/workflow/header/test-run-menu-helpers.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/header/test-run-menu.tsx": {
"erasable-syntax-only/enums": {
"count": 1
@@ -5660,11 +4606,6 @@
"count": 3
}
},
- "web/app/components/workflow/nodes/_base/components/before-run-form/bool-input.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/_base/components/before-run-form/form-item.tsx": {
"no-restricted-imports": {
"count": 1
@@ -5686,19 +4627,6 @@
"count": 5
}
},
- "web/app/components/workflow/nodes/_base/components/before-run-form/panel-wrap.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- }
- },
- "web/app/components/workflow/nodes/_base/components/collapse/field-collapse.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/_base/components/collapse/index.tsx": {
"no-barrel-files/no-barrel-files": {
"count": 1
@@ -5725,26 +4653,15 @@
"count": 6
}
},
- "web/app/components/workflow/nodes/_base/components/editor/text-editor.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/_base/components/entry-node-container.tsx": {
"erasable-syntax-only/enums": {
"count": 1
},
"react-refresh/only-export-components": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
}
},
"web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -5752,14 +4669,6 @@
"web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-panel.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/workflow/nodes/_base/components/error-handle/error-handle-tip.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/workflow/nodes/_base/components/error-handle/error-handle-type-selector.tsx": {
@@ -5780,11 +4689,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/_base/components/file-upload-setting.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/_base/components/form-input-item.tsx": {
"no-restricted-imports": {
"count": 1
@@ -5803,11 +4707,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/_base/components/info-panel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx": {
"no-restricted-imports": {
"count": 1
@@ -5850,9 +4749,6 @@
}
},
"web/app/components/workflow/nodes/_base/components/mixed-variable-text-input/placeholder.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -5913,22 +4809,9 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/_base/components/title-description-input.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/workflow/nodes/_base/components/variable/constant-field.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/workflow/nodes/_base/components/variable/manage-input-field.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
}
},
"web/app/components/workflow/nodes/_base/components/variable/match-schema-type.ts": {
@@ -5951,14 +4834,6 @@
"count": 32
}
},
- "web/app/components/workflow/nodes/_base/components/variable/var-full-path-panel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/_base/components/variable/var-list.tsx": {
"react/unsupported-syntax": {
"count": 1
@@ -5985,11 +4860,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-node-label.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/workflow/nodes/_base/components/variable/variable-label/hooks.ts": {
"react/no-unnecessary-use-prefix": {
"count": 2
@@ -6064,11 +4934,6 @@
"count": 2
}
},
- "web/app/components/workflow/nodes/_base/node-sections.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- }
- },
"web/app/components/workflow/nodes/_base/node.tsx": {
"ts/no-explicit-any": {
"count": 1
@@ -6086,9 +4951,6 @@
"no-restricted-imports": {
"count": 1
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-empty-object-type": {
"count": 1
}
@@ -6139,11 +5001,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/answer/panel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/assigner/components/operation-selector.tsx": {
"no-restricted-imports": {
"count": 1
@@ -6159,16 +5016,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/assigner/node.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/workflow/nodes/assigner/panel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/assigner/types.ts": {
"erasable-syntax-only/enums": {
"count": 2
@@ -6195,9 +5042,6 @@
"web/app/components/workflow/nodes/code/dependency-picker.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/workflow/nodes/code/types.ts": {
@@ -6246,11 +5090,6 @@
"count": 6
}
},
- "web/app/components/workflow/nodes/data-source/node.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/data-source/panel.tsx": {
"ts/no-explicit-any": {
"count": 3
@@ -6277,16 +5116,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/document-extractor/node.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/workflow/nodes/document-extractor/panel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/document-extractor/use-single-run-form-params.ts": {
"ts/no-explicit-any": {
"count": 4
@@ -6312,11 +5141,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/http/components/key-value/bulk-edit/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsx": {
"ts/no-explicit-any": {
"count": 2
@@ -6332,11 +5156,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/http/node.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/workflow/nodes/http/types.ts": {
"erasable-syntax-only/enums": {
"count": 5
@@ -6445,14 +5264,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/if-else/components/condition-files-list-value.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/if-else/components/condition-list/condition-input.tsx": {
"ts/no-explicit-any": {
"count": 1
@@ -6488,11 +5299,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/if-else/node.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/if-else/types.ts": {
"erasable-syntax-only/enums": {
"count": 2
@@ -6506,9 +5312,6 @@
"web/app/components/workflow/nodes/iteration-start/index.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/workflow/nodes/iteration/default.ts": {
@@ -6551,11 +5354,6 @@
"count": 4
}
},
- "web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/search-method-option.tsx": {
"no-restricted-imports": {
"count": 1
@@ -6589,19 +5387,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/knowledge-retrieval/components/dataset-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- }
- },
- "web/app/components/workflow/nodes/knowledge-retrieval/components/dataset-list.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/add-condition.tsx": {
"no-restricted-imports": {
"count": 1
@@ -6610,9 +5395,6 @@
"web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-common-variable-selector.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 4
}
},
"web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-item.tsx": {
@@ -6620,21 +5402,11 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-number.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-operator.tsx": {
"no-restricted-imports": {
"count": 1
}
},
- "web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-string.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-value-method.tsx": {
"no-restricted-imports": {
"count": 1
@@ -6643,17 +5415,11 @@
"web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-variable-selector.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
}
},
"web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-filter/index.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
}
},
"web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-filter/metadata-filter-selector.tsx": {
@@ -6661,11 +5427,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-panel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-trigger.tsx": {
"no-restricted-imports": {
"count": 1
@@ -6684,9 +5445,6 @@
"web/app/components/workflow/nodes/knowledge-retrieval/node.tsx": {
"react/set-state-in-effect": {
"count": 2
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/workflow/nodes/knowledge-retrieval/types.ts": {
@@ -6723,11 +5481,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/list-operator/node.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/list-operator/types.ts": {
"erasable-syntax-only/enums": {
"count": 1
@@ -6737,9 +5490,6 @@
"no-restricted-imports": {
"count": 1
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 3
}
@@ -6801,11 +5551,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/card.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 5
- }
- },
"web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/context.tsx": {
"react-refresh/only-export-components": {
"count": 2
@@ -6816,11 +5561,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/advanced-options.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/auto-width-input.tsx": {
"react/set-state-in-effect": {
"count": 1
@@ -6836,11 +5576,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/llm/components/resolution-picker.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/llm/components/structure-output.tsx": {
"ts/no-explicit-any": {
"count": 2
@@ -6880,9 +5615,6 @@
"web/app/components/workflow/nodes/loop-start/index.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
}
},
"web/app/components/workflow/nodes/loop/components/condition-add.tsx": {
@@ -6890,14 +5622,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/loop/components/condition-files-list-value.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/loop/components/condition-list/condition-input.tsx": {
"ts/no-explicit-any": {
"count": 1
@@ -6981,11 +5705,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 4
- }
- },
"web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/update.tsx": {
"no-restricted-imports": {
"count": 2
@@ -7048,9 +5767,6 @@
"web/app/components/workflow/nodes/question-classifier/node.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
}
},
"web/app/components/workflow/nodes/question-classifier/use-config.ts": {
@@ -7066,14 +5782,6 @@
"count": 8
}
},
- "web/app/components/workflow/nodes/start/node.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/start/panel.tsx": {
"ts/no-explicit-any": {
"count": 2
@@ -7107,12 +5815,6 @@
"web/app/components/workflow/nodes/tool/components/copy-id.tsx": {
"no-restricted-imports": {
"count": 1
- },
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
}
},
"web/app/components/workflow/nodes/tool/components/input-var-list.tsx": {
@@ -7198,9 +5900,6 @@
"react/unsupported-syntax": {
"count": 1
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 2
}
@@ -7235,16 +5934,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/trigger-schedule/components/next-execution-times.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
- "web/app/components/workflow/nodes/trigger-schedule/components/on-minute-selector.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/workflow/nodes/trigger-schedule/default.ts": {
"regexp/no-unused-capturing-group": {
"count": 2
@@ -7253,16 +5942,6 @@
"count": 10
}
},
- "web/app/components/workflow/nodes/trigger-schedule/node.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/app/components/workflow/nodes/trigger-schedule/panel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/trigger-webhook/components/generic-table.tsx": {
"no-restricted-imports": {
"count": 1
@@ -7278,33 +5957,17 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/trigger-webhook/node.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/trigger-webhook/panel.tsx": {
"no-restricted-imports": {
"count": 2
}
},
- "web/app/components/workflow/nodes/trigger-webhook/utils/render-output-vars.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/workflow/nodes/utils.ts": {
"ts/no-explicit-any": {
"count": 1
}
},
"web/app/components/workflow/nodes/variable-assigner/components/var-group-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -7367,11 +6030,6 @@
"count": 1
}
},
- "web/app/components/workflow/operator/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/operator/more-actions.tsx": {
"no-restricted-imports": {
"count": 1
@@ -7396,9 +6054,6 @@
}
},
"web/app/components/workflow/panel/chat-record/user-input.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -7417,9 +6072,6 @@
"react-refresh/only-export-components": {
"count": 1
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- },
"ts/no-explicit-any": {
"count": 5
},
@@ -7428,9 +6080,6 @@
}
},
"web/app/components/workflow/panel/chat-variable-panel/components/object-value-list.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
"ts/no-explicit-any": {
"count": 2
}
@@ -7448,11 +6097,6 @@
"count": 1
}
},
- "web/app/components/workflow/panel/comments-panel/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- }
- },
"web/app/components/workflow/panel/debug-and-preview/chat-wrapper.tsx": {
"ts/no-explicit-any": {
"count": 6
@@ -7466,11 +6110,6 @@
"count": 2
}
},
- "web/app/components/workflow/panel/debug-and-preview/empty.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/panel/debug-and-preview/hooks.ts": {
"ts/no-explicit-any": {
"count": 12
@@ -7502,11 +6141,6 @@
"count": 4
}
},
- "web/app/components/workflow/panel/record.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/panel/version-history-panel/context-menu/index.tsx": {
"no-restricted-imports": {
"count": 1
@@ -7517,21 +6151,11 @@
"count": 1
}
},
- "web/app/components/workflow/panel/version-history-panel/filter/filter-item.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/panel/version-history-panel/filter/index.tsx": {
"no-restricted-imports": {
"count": 1
}
},
- "web/app/components/workflow/panel/version-history-panel/loading/index.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/panel/version-history-panel/restore-confirm-modal.tsx": {
"no-restricted-imports": {
"count": 1
@@ -7587,11 +6211,6 @@
"count": 1
}
},
- "web/app/components/workflow/run/meta.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 13
- }
- },
"web/app/components/workflow/run/node.tsx": {
"no-restricted-imports": {
"count": 1
@@ -7601,28 +6220,16 @@
}
},
"web/app/components/workflow/run/output-panel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 3
}
},
"web/app/components/workflow/run/result-panel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 3
- },
"ts/no-explicit-any": {
"count": 4
}
},
"web/app/components/workflow/run/result-text.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 2
- },
- "tailwindcss/no-unnecessary-whitespace": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 2
}
@@ -7632,11 +6239,6 @@
"count": 2
}
},
- "web/app/components/workflow/run/retry-log/retry-result-panel.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/run/utils/format-log/agent/index.ts": {
"ts/no-explicit-any": {
"count": 11
@@ -7835,11 +6437,6 @@
"count": 1
}
},
- "web/app/components/workflow/workflow-preview/components/nodes/if-else/node.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/app/components/workflow/workflow-preview/components/nodes/iteration-start/index.tsx": {
"no-restricted-imports": {
"count": 1
@@ -7872,9 +6469,6 @@
"no-restricted-imports": {
"count": 1
},
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- },
"ts/no-explicit-any": {
"count": 1
}
@@ -7942,16 +6536,6 @@
"count": 1
}
},
- "web/app/signup/page.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
- "web/context/app-context-provider.tsx": {
- "tailwindcss/enforce-consistent-class-order": {
- "count": 1
- }
- },
"web/context/external-api-panel-context.tsx": {
"react-refresh/only-export-components": {
"count": 1
diff --git a/web/.storybook/utils/form-story-wrapper.tsx b/web/.storybook/utils/form-story-wrapper.tsx
index 90349a03255..7503e9905d3 100644
--- a/web/.storybook/utils/form-story-wrapper.tsx
+++ b/web/.storybook/utils/form-story-wrapper.tsx
@@ -47,7 +47,7 @@ export const FormStoryWrapper = ({
{children(form)}
</div>
<aside className="w-full max-w-sm rounded-xl border border-divider-subtle bg-components-panel-bg p-4 text-xs text-text-secondary shadow-sm">
- <div className="flex items-center justify-between text-[11px] uppercase tracking-wide text-text-tertiary">
+ <div className="flex items-center justify-between text-[11px] tracking-wide text-text-tertiary uppercase">
<span>Form State</span>
<span>
{submitCount}
diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/chart-view.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/chart-view.tsx
index 0d33de29720..0fbc41eb6b8 100644
--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/chart-view.tsx
+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/chart-view.tsx
@@ -48,7 +48,7 @@ export default function ChartView({ appId, headerRight }: IChartViewProps) {
return (
<div>
<div className="mb-4">
- <div className="system-xl-semibold mb-2 text-text-primary">{t('appMenus.overview', { ns: 'common' })}</div>
+ <div className="mb-2 system-xl-semibold text-text-primary">{t('appMenus.overview', { ns: 'common' })}</div>
<div className="flex items-center justify-between">
{IS_CLOUD_EDITION
? (
diff --git a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/settings/page.tsx b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/settings/page.tsx
index 1d65e4de53e..8aec27707b1 100644
--- a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/settings/page.tsx
+++ b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/settings/page.tsx
@@ -6,7 +6,7 @@ const Settings = () => {
return (
<div className="h-full overflow-y-auto">
- <div className="flex flex-col gap-y-0.5 px-6 pb-2 pt-3">
+ <div className="flex flex-col gap-y-0.5 px-6 pt-3 pb-2">
<div className="system-xl-semibold text-text-primary">{t('title')}</div>
<div className="system-sm-regular text-text-tertiary">{t('desc')}</div>
</div>
diff --git a/web/app/(shareLayout)/components/authenticated-layout.tsx b/web/app/(shareLayout)/components/authenticated-layout.tsx
index 9f956a85016..a7b65f33fee 100644
--- a/web/app/(shareLayout)/components/authenticated-layout.tsx
+++ b/web/app/(shareLayout)/components/authenticated-layout.tsx
@@ -81,7 +81,7 @@ const AuthenticatedLayout = ({ children }: { children: React.ReactNode }) => {
return (
<div className="flex h-full flex-col items-center justify-center gap-y-2">
<AppUnavailable className="h-auto w-auto" code={403} unknownReason="no permission." />
- <span className="system-sm-regular cursor-pointer text-text-tertiary" onClick={backToHome}>{t('userProfile.logout', { ns: 'common' })}</span>
+ <span className="cursor-pointer system-sm-regular text-text-tertiary" onClick={backToHome}>{t('userProfile.logout', { ns: 'common' })}</span>
</div>
)
}
diff --git a/web/app/(shareLayout)/components/splash.tsx b/web/app/(shareLayout)/components/splash.tsx
index 402005752d4..86d676721a8 100644
--- a/web/app/(shareLayout)/components/splash.tsx
+++ b/web/app/(shareLayout)/components/splash.tsx
@@ -95,7 +95,7 @@ const Splash: FC<PropsWithChildren> = ({ children }) => {
return (
<div className="flex h-full flex-col items-center justify-center gap-y-4">
<AppUnavailable className="h-auto w-auto" code={code || t('common.appUnavailable', { ns: 'share' })} unknownReason={message} />
- <span className="system-sm-regular cursor-pointer text-text-tertiary" onClick={backToHome}>{code === '403' ? t('userProfile.logout', { ns: 'common' }) : t('login.backToHome', { ns: 'share' })}</span>
+ <span className="cursor-pointer system-sm-regular text-text-tertiary" onClick={backToHome}>{code === '403' ? t('userProfile.logout', { ns: 'common' }) : t('login.backToHome', { ns: 'share' })}</span>
</div>
)
}
diff --git a/web/app/(shareLayout)/webapp-signin/page.tsx b/web/app/(shareLayout)/webapp-signin/page.tsx
index a5c2528cc70..4b94a7210ff 100644
--- a/web/app/(shareLayout)/webapp-signin/page.tsx
+++ b/web/app/(shareLayout)/webapp-signin/page.tsx
@@ -63,7 +63,7 @@ const WebSSOForm: FC = () => {
return (
<div className="flex h-full flex-col items-center justify-center gap-y-4">
<AppUnavailable className="h-auto w-auto" isUnknownReason={true} />
- <span className="system-sm-regular cursor-pointer text-text-tertiary" onClick={backToHome}>{t('login.backToHome', { ns: 'share' })}</span>
+ <span className="cursor-pointer system-sm-regular text-text-tertiary" onClick={backToHome}>{t('login.backToHome', { ns: 'share' })}</span>
</div>
)
}
diff --git a/web/app/components/app-sidebar/basic.tsx b/web/app/components/app-sidebar/basic.tsx
index 29a08f8a01b..2814072860a 100644
--- a/web/app/components/app-sidebar/basic.tsx
+++ b/web/app/components/app-sidebar/basic.tsx
@@ -76,8 +76,8 @@ export default function AppBasic({ icon, icon_background, name, isExternal, type
)}
{mode === 'expand' && (
<div className="group w-full">
- <div className={`flex flex-row items-center text-text-secondary system-md-semibold group-hover:text-text-primary ${textStyle?.main ?? ''}`}>
- <div className="min-w-0 overflow-hidden text-ellipsis break-normal">
+ <div className={`flex flex-row items-center system-md-semibold text-text-secondary group-hover:text-text-primary ${textStyle?.main ?? ''}`}>
+ <div className="min-w-0 overflow-hidden break-normal text-ellipsis">
{name}
</div>
{hoverTip
@@ -95,10 +95,10 @@ export default function AppBasic({ icon, icon_background, name, isExternal, type
)}
</div>
{!hideType && isExtraInLine && (
- <div className="flex text-text-tertiary system-2xs-medium-uppercase">{type}</div>
+ <div className="flex system-2xs-medium-uppercase text-text-tertiary">{type}</div>
)}
{!hideType && !isExtraInLine && (
- <div className="text-text-tertiary system-2xs-medium-uppercase">{isExternal ? t('externalTag', { ns: 'dataset' }) : type}</div>
+ <div className="system-2xs-medium-uppercase text-text-tertiary">{isExternal ? t('externalTag', { ns: 'dataset' }) : type}</div>
)}
</div>
)}
diff --git a/web/app/components/app-sidebar/dataset-info/menu-item.tsx b/web/app/components/app-sidebar/dataset-info/menu-item.tsx
index 7ad8d9407f8..d4265121760 100644
--- a/web/app/components/app-sidebar/dataset-info/menu-item.tsx
+++ b/web/app/components/app-sidebar/dataset-info/menu-item.tsx
@@ -22,7 +22,7 @@ const MenuItem = ({
}}
>
<Icon className="size-4 text-text-tertiary" />
- <span className="px-1 text-text-secondary system-md-regular">{name}</span>
+ <span className="px-1 system-md-regular text-text-secondary">{name}</span>
</div>
)
}
diff --git a/web/app/components/app/annotation/add-annotation-modal/edit-item/index.tsx b/web/app/components/app/annotation/add-annotation-modal/edit-item/index.tsx
index a1a3dc21c69..639854ae0aa 100644
--- a/web/app/components/app/annotation/add-annotation-modal/edit-item/index.tsx
+++ b/web/app/components/app/annotation/add-annotation-modal/edit-item/index.tsx
@@ -31,7 +31,7 @@ const EditItem: FC<Props> = ({
{avatar}
</div>
<div className="grow">
- <div className="system-xs-semibold mb-1 text-text-primary">{name}</div>
+ <div className="mb-1 system-xs-semibold text-text-primary">{name}</div>
<Textarea
value={content}
onChange={(e: React.ChangeEvent<HTMLTextAreaElement>) => onChange(e.target.value)}
diff --git a/web/app/components/app/annotation/batch-add-annotation-modal/csv-downloader.tsx b/web/app/components/app/annotation/batch-add-annotation-modal/csv-downloader.tsx
index 8db70104bcd..3828a1facca 100644
--- a/web/app/components/app/annotation/batch-add-annotation-modal/csv-downloader.tsx
+++ b/web/app/components/app/annotation/batch-add-annotation-modal/csv-downloader.tsx
@@ -38,30 +38,30 @@ const CSVDownload: FC = () => {
<table className="w-full table-fixed border-separate border-spacing-0 rounded-lg border border-divider-regular text-xs">
<thead className="text-text-tertiary">
<tr>
- <td className="h-9 border-b border-divider-regular pl-3 pr-2">{t('batchModal.question', { ns: 'appAnnotation' })}</td>
- <td className="h-9 border-b border-divider-regular pl-3 pr-2">{t('batchModal.answer', { ns: 'appAnnotation' })}</td>
+ <td className="h-9 border-b border-divider-regular pr-2 pl-3">{t('batchModal.question', { ns: 'appAnnotation' })}</td>
+ <td className="h-9 border-b border-divider-regular pr-2 pl-3">{t('batchModal.answer', { ns: 'appAnnotation' })}</td>
</tr>
</thead>
<tbody className="text-text-secondary">
<tr>
- <td className="h-9 border-b border-divider-subtle pl-3 pr-2 text-[13px]">
+ <td className="h-9 border-b border-divider-subtle pr-2 pl-3 text-[13px]">
{t('batchModal.question', { ns: 'appAnnotation' })}
{' '}
1
</td>
- <td className="h-9 border-b border-divider-subtle pl-3 pr-2 text-[13px]">
+ <td className="h-9 border-b border-divider-subtle pr-2 pl-3 text-[13px]">
{t('batchModal.answer', { ns: 'appAnnotation' })}
{' '}
1
</td>
</tr>
<tr>
- <td className="h-9 pl-3 pr-2 text-[13px]">
+ <td className="h-9 pr-2 pl-3 text-[13px]">
{t('batchModal.question', { ns: 'appAnnotation' })}
{' '}
2
</td>
- <td className="h-9 pl-3 pr-2 text-[13px]">
+ <td className="h-9 pr-2 pl-3 text-[13px]">
{t('batchModal.answer', { ns: 'appAnnotation' })}
{' '}
2
@@ -77,7 +77,7 @@ const CSVDownload: FC = () => {
bom={true}
data={getTemplate()}
>
- <div className="system-xs-medium flex h-[18px] items-center space-x-1 text-text-accent">
+ <div className="flex h-[18px] items-center space-x-1 system-xs-medium text-text-accent">
<DownloadIcon className="mr-1 h-3 w-3" />
{t('batchModal.template', { ns: 'appAnnotation' })}
</div>
diff --git a/web/app/components/app/annotation/edit-annotation-modal/index.tsx b/web/app/components/app/annotation/edit-annotation-modal/index.tsx
index 53bf813388f..c3d5b140ebb 100644
--- a/web/app/components/app/annotation/edit-annotation-modal/index.tsx
+++ b/web/app/components/app/annotation/edit-annotation-modal/index.tsx
@@ -146,7 +146,7 @@ const EditAnnotationModal: FC<Props> = ({
foot={(
<div>
{isAnnotationFull && (
- <div className="mb-4 mt-6 px-6">
+ <div className="mt-6 mb-4 px-6">
<AnnotationFull />
</div>
)}
@@ -154,7 +154,7 @@ const EditAnnotationModal: FC<Props> = ({
{
annotationId
? (
- <div className="system-sm-medium flex h-16 items-center justify-between rounded-bl-xl rounded-br-xl border-t border-divider-subtle bg-background-section-burn px-4 text-text-tertiary">
+ <div className="flex h-16 items-center justify-between rounded-br-xl rounded-bl-xl border-t border-divider-subtle bg-background-section-burn px-4 system-sm-medium text-text-tertiary">
<div
className="flex cursor-pointer items-center space-x-2 pl-3"
onClick={() => setShowModal(true)}
diff --git a/web/app/components/app/annotation/empty-element.tsx b/web/app/components/app/annotation/empty-element.tsx
index 5bcaaac303d..7473920d477 100644
--- a/web/app/components/app/annotation/empty-element.tsx
+++ b/web/app/components/app/annotation/empty-element.tsx
@@ -19,9 +19,9 @@ const EmptyElement: FC = () => {
<div className="box-border h-fit w-[560px] rounded-2xl bg-background-section-burn px-5 py-4">
<span className="system-md-semibold text-text-secondary">
{t('noData.title', { ns: 'appAnnotation' })}
- <ThreeDotsIcon className="relative -left-1.5 -top-3 inline" />
+ <ThreeDotsIcon className="relative -top-3 -left-1.5 inline" />
</span>
- <div className="system-sm-regular mt-2 text-text-tertiary">
+ <div className="mt-2 system-sm-regular text-text-tertiary">
{t('noData.description', { ns: 'appAnnotation' })}
</div>
</div>
diff --git a/web/app/components/app/app-access-control/specific-groups-or-members.tsx b/web/app/components/app/app-access-control/specific-groups-or-members.tsx
index 8f4e71c8d2a..5b5c8342fc9 100644
--- a/web/app/components/app/app-access-control/specific-groups-or-members.tsx
+++ b/web/app/components/app/app-access-control/specific-groups-or-members.tsx
@@ -60,14 +60,14 @@ function RenderGroupsAndMembers() {
const specificGroups = useAccessControlStore(s => s.specificGroups)
const specificMembers = useAccessControlStore(s => s.specificMembers)
if (specificGroups.length <= 0 && specificMembers.length <= 0)
- return <div className="px-2 pb-1.5 pt-5"><p className="system-xs-regular text-center text-text-tertiary">{t('accessControlDialog.noGroupsOrMembers', { ns: 'app' })}</p></div>
+ return <div className="px-2 pt-5 pb-1.5"><p className="text-center system-xs-regular text-text-tertiary">{t('accessControlDialog.noGroupsOrMembers', { ns: 'app' })}</p></div>
return (
<>
- <p className="system-2xs-medium-uppercase sticky top-0 text-text-tertiary">{t('accessControlDialog.groups', { ns: 'app', count: specificGroups.length ?? 0 })}</p>
+ <p className="sticky top-0 system-2xs-medium-uppercase text-text-tertiary">{t('accessControlDialog.groups', { ns: 'app', count: specificGroups.length ?? 0 })}</p>
<div className="flex flex-row flex-wrap gap-1">
{specificGroups.map((group, index) => <GroupItem key={index} group={group} />)}
</div>
- <p className="system-2xs-medium-uppercase sticky top-0 text-text-tertiary">{t('accessControlDialog.members', { ns: 'app', count: specificMembers.length ?? 0 })}</p>
+ <p className="sticky top-0 system-2xs-medium-uppercase text-text-tertiary">{t('accessControlDialog.members', { ns: 'app', count: specificMembers.length ?? 0 })}</p>
<div className="flex flex-row flex-wrap gap-1">
{specificMembers.map((member, index) => <MemberItem key={index} member={member} />)}
</div>
diff --git a/web/app/components/app/configuration/base/group-name/index.tsx b/web/app/components/app/configuration/base/group-name/index.tsx
index 210ba4ca877..cd73a2ef60d 100644
--- a/web/app/components/app/configuration/base/group-name/index.tsx
+++ b/web/app/components/app/configuration/base/group-name/index.tsx
@@ -11,7 +11,7 @@ const GroupName: FC<IGroupNameProps> = ({
}) => {
return (
<div className="mb-1 flex items-center">
- <div className="mr-3 text-xs font-semibold uppercase leading-[18px] text-text-tertiary">{name}</div>
+ <div className="mr-3 text-xs leading-[18px] font-semibold text-text-tertiary uppercase">{name}</div>
<div
className="h-px grow"
style={{
diff --git a/web/app/components/app/configuration/base/warning-mask/index.tsx b/web/app/components/app/configuration/base/warning-mask/index.tsx
index 5275f022cb4..763053835b7 100644
--- a/web/app/components/app/configuration/base/warning-mask/index.tsx
+++ b/web/app/components/app/configuration/base/warning-mask/index.tsx
@@ -25,7 +25,7 @@ const WarningMask: FC<IWarningMaskProps> = ({
<div className={`${s.mask} absolute inset-0 z-10 bg-components-panel-bg-blur pt-16`}>
<div className="mx-auto px-10">
<div className={`${s.icon} flex h-11 w-11 items-center justify-center rounded-xl bg-components-panel-bg`}>{warningIcon}</div>
- <div className="mt-4 text-[24px] font-semibold leading-normal text-text-primary">
+ <div className="mt-4 text-[24px] leading-normal font-semibold text-text-primary">
{title}
</div>
<div className="mt-3 text-base text-text-secondary">
diff --git a/web/app/components/app/configuration/config-var/input-type-icon.tsx b/web/app/components/app/configuration/config-var/input-type-icon.tsx
index d79964ab70c..7cd64c02300 100644
--- a/web/app/components/app/configuration/config-var/input-type-icon.tsx
+++ b/web/app/components/app/configuration/config-var/input-type-icon.tsx
@@ -11,7 +11,7 @@ export type IInputTypeIconProps = {
}
const IconMap = (type: IInputTypeIconProps['type'], className: string) => {
- const classNames = `w-3.5 h-3.5 ${className}`
+ const classNames = `h-3.5 w-3.5 ${className}`
const icons = {
string: (
<InputVarTypeIcon type={InputVarType.textInput} className={classNames} />
diff --git a/web/app/components/app/configuration/config-vision/param-config-content.tsx b/web/app/components/app/configuration/config-vision/param-config-content.tsx
index 56ecabcbafd..85f1689aa39 100644
--- a/web/app/components/app/configuration/config-vision/param-config-content.tsx
+++ b/web/app/components/app/configuration/config-vision/param-config-content.tsx
@@ -42,11 +42,11 @@ const ParamConfigContent: FC = () => {
return (
<div>
- <div className="text-base font-semibold leading-6 text-text-primary">{t('vision.visionSettings.title', { ns: 'appDebug' })}</div>
+ <div className="text-base leading-6 font-semibold text-text-primary">{t('vision.visionSettings.title', { ns: 'appDebug' })}</div>
<div className="space-y-6 pt-3">
<div>
- <div className="mb-2 flex items-center space-x-1">
- <div className="text-[13px] font-semibold leading-[18px] text-text-secondary">{t('vision.visionSettings.resolution', { ns: 'appDebug' })}</div>
+ <div className="mb-2 flex items-center space-x-1">
+ <div className="text-[13px] leading-[18px] font-semibold text-text-secondary">{t('vision.visionSettings.resolution', { ns: 'appDebug' })}</div>
<Tooltip
popupContent={(
<div className="w-[180px]">
@@ -79,7 +79,7 @@ const ParamConfigContent: FC = () => {
</div>
</div>
<div>
- <div className="mb-2 text-[13px] font-semibold leading-[18px] text-text-secondary">{t('vision.visionSettings.uploadMethod', { ns: 'appDebug' })}</div>
+ <div className="mb-2 text-[13px] leading-[18px] font-semibold text-text-secondary">{t('vision.visionSettings.uploadMethod', { ns: 'appDebug' })}</div>
<div className="flex items-center gap-1">
<OptionCard
className="grow"
diff --git a/web/app/components/app/configuration/config/automatic/res-placeholder.tsx b/web/app/components/app/configuration/config/automatic/res-placeholder.tsx
index 6b84e8ce8bc..54a51bb41ad 100644
--- a/web/app/components/app/configuration/config/automatic/res-placeholder.tsx
+++ b/web/app/components/app/configuration/config/automatic/res-placeholder.tsx
@@ -9,7 +9,7 @@ const ResPlaceholder: FC = () => {
return (
<div className="flex h-full w-0 grow flex-col items-center justify-center space-y-3 px-8">
<Generator className="size-8 text-text-quaternary" />
- <div className="text-center text-[13px] font-normal leading-5 text-text-tertiary">
+ <div className="text-center text-[13px] leading-5 font-normal text-text-tertiary">
<div>{t('generate.newNoDataLine1', { ns: 'appDebug' })}</div>
</div>
</div>
diff --git a/web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx b/web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx
index c8f7bc49ec3..8488d0269fc 100644
--- a/web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx
+++ b/web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx
@@ -36,7 +36,7 @@ const WeightedScore = ({
return (
<div>
- <div className="space-x-3 rounded-lg border border-components-panel-border px-3 pb-2 pt-5">
+ <div className="space-x-3 rounded-lg border border-components-panel-border px-3 pt-5 pb-2">
<div className="grow" style={weightedScoreSliderStyle}>
<Slider
className="grow"
@@ -50,13 +50,13 @@ const WeightedScore = ({
/>
</div>
<div className="mt-3 flex justify-between">
- <div className="flex w-[90px] shrink-0 items-center text-util-colors-blue-light-blue-light-500 system-xs-semibold-uppercase">
+ <div className="flex w-[90px] shrink-0 items-center system-xs-semibold-uppercase text-util-colors-blue-light-blue-light-500">
<div className="mr-1 truncate uppercase" title={t('weightedScore.semantic', { ns: 'dataset' }) || ''}>
{t('weightedScore.semantic', { ns: 'dataset' })}
</div>
{formatNumber(value.value[0]!)}
</div>
- <div className="flex w-[90px] shrink-0 items-center justify-end text-util-colors-teal-teal-500 system-xs-semibold-uppercase">
+ <div className="flex w-[90px] shrink-0 items-center justify-end system-xs-semibold-uppercase text-util-colors-teal-teal-500">
{formatNumber(value.value[1]!)}
<div className="ml-1 truncate uppercase" title={t('weightedScore.keyword', { ns: 'dataset' }) || ''}>
{t('weightedScore.keyword', { ns: 'dataset' })}
diff --git a/web/app/components/app/configuration/debug/debug-with-multiple-model/debug-item.tsx b/web/app/components/app/configuration/debug/debug-with-multiple-model/debug-item.tsx
index f7a31122251..7693c3ab433 100644
--- a/web/app/components/app/configuration/debug/debug-with-multiple-model/debug-item.tsx
+++ b/web/app/components/app/configuration/debug/debug-with-multiple-model/debug-item.tsx
@@ -69,7 +69,7 @@ const DebugItem: FC<DebugItemProps> = ({
style={style}
>
<div className="flex h-10 shrink-0 items-center justify-between border-b-[0.5px] border-divider-regular px-3">
- <div className="flex h-5 w-6 items-center justify-center font-medium italic text-text-tertiary">
+ <div className="flex h-5 w-6 items-center justify-center font-medium text-text-tertiary italic">
#
{index + 1}
</div>
diff --git a/web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx b/web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx
index f98e8c1f062..11241fec67a 100644
--- a/web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx
+++ b/web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx
@@ -122,7 +122,7 @@ const DebugWithMultipleModel = () => {
key={modelConfig.id}
modelAndParameter={modelConfig}
className={`
- absolute left-6 top-0 min-h-[200px]
+ absolute top-0 left-6 min-h-[200px]
${twoLine && index === 0 && 'mr-2'}
${threeLine && (index === 0 || index === 1) && 'mr-2'}
${fourLine && (index === 0 || index === 2) && 'mr-2'}
diff --git a/web/app/components/app/log/empty-element.tsx b/web/app/components/app/log/empty-element.tsx
index 95b0e7f03f0..7b89ac40604 100644
--- a/web/app/components/app/log/empty-element.tsx
+++ b/web/app/components/app/log/empty-element.tsx
@@ -30,9 +30,9 @@ const EmptyElement: FC<{ appDetail: App }> = ({ appDetail }) => {
<div className="box-border h-fit w-[560px] rounded-2xl bg-background-section-burn px-5 py-4">
<span className="system-md-semibold text-text-secondary">
{t('table.empty.element.title', { ns: 'appLog' })}
- <ThreeDotsIcon className="relative -left-1.5 -top-3 inline text-text-secondary" />
+ <ThreeDotsIcon className="relative -top-3 -left-1.5 inline text-text-secondary" />
</span>
- <div className="system-sm-regular mt-2 text-text-tertiary">
+ <div className="mt-2 system-sm-regular text-text-tertiary">
<Trans
i18nKey="table.empty.element.content"
ns="appLog"
diff --git a/web/app/components/app/log/index.tsx b/web/app/components/app/log/index.tsx
index 411ec8694dd..08991218387 100644
--- a/web/app/components/app/log/index.tsx
+++ b/web/app/components/app/log/index.tsx
@@ -118,7 +118,7 @@ const Logs: FC<ILogsProps> = ({ appDetail }) => {
return (
<div className="flex h-full grow flex-col">
- <p className="system-sm-regular shrink-0 text-text-tertiary">{t('description', { ns: 'appLog' })}</p>
+ <p className="shrink-0 system-sm-regular text-text-tertiary">{t('description', { ns: 'appLog' })}</p>
<div className="flex max-h-[calc(100%-16px)] flex-1 grow flex-col py-4">
<Filter isChatMode={isChatMode} appId={appDetail.id} queryParams={queryParams} setQueryParams={handleQueryParamsChange} />
{total === undefined
diff --git a/web/app/components/app/text-generate/item/result-tab.tsx b/web/app/components/app/text-generate/item/result-tab.tsx
index 575f3228483..5e8a0d2b243 100644
--- a/web/app/components/app/text-generate/item/result-tab.tsx
+++ b/web/app/components/app/text-generate/item/result-tab.tsx
@@ -24,8 +24,8 @@ const ResultTab = ({
{!!data?.files?.length && (
<div className="flex flex-col gap-2">
{data?.files.map((item: any) => (
- <div key={item.varName} className="system-xs-regular flex flex-col gap-1">
- <div className="py-1 text-text-tertiary ">{item.varName}</div>
+ <div key={item.varName} className="flex flex-col gap-1 system-xs-regular">
+ <div className="py-1 text-text-tertiary">{item.varName}</div>
<FileList
files={item.list}
showDeleteAction={false}
diff --git a/web/app/components/app/workflow-log/detail.tsx b/web/app/components/app/workflow-log/detail.tsx
index 99d2c70228a..e191bfb7942 100644
--- a/web/app/components/app/workflow-log/detail.tsx
+++ b/web/app/components/app/workflow-log/detail.tsx
@@ -27,11 +27,11 @@ const DetailPanel: FC<ILogDetail> = ({ runID, onClose, canReplay = false }) => {
return (
<div className="relative flex grow flex-col pt-3">
- <span className="absolute right-3 top-4 z-20 cursor-pointer p-1" onClick={onClose}>
+ <span className="absolute top-4 right-3 z-20 cursor-pointer p-1" onClick={onClose}>
<RiCloseLine className="h-4 w-4 text-text-tertiary" />
</span>
<div className="flex items-center bg-components-panel-bg">
- <h1 className="system-xl-semibold shrink-0 px-4 py-1 text-text-primary">{t('runDetail.workflowTitle', { ns: 'appLog' })}</h1>
+ <h1 className="shrink-0 px-4 py-1 system-xl-semibold text-text-primary">{t('runDetail.workflowTitle', { ns: 'appLog' })}</h1>
{canReplay && (
<TooltipPlus
popupContent={t('runDetail.testWithParams', { ns: 'appLog' })}
diff --git a/web/app/components/apps/footer.tsx b/web/app/components/apps/footer.tsx
index 9147ccf6a63..4c66393babe 100644
--- a/web/app/components/apps/footer.tsx
+++ b/web/app/components/apps/footer.tsx
@@ -29,8 +29,8 @@ const Footer = () => {
return (
<footer className="relative shrink-0 grow-0 px-12 py-2">
- <h3 className="text-gradient text-xl font-semibold leading-tight">{t('join', { ns: 'app' })}</h3>
- <p className="system-sm-regular mt-1 text-text-tertiary">{t('communityIntro', { ns: 'app' })}</p>
+ <h3 className="text-gradient text-xl leading-tight font-semibold">{t('join', { ns: 'app' })}</h3>
+ <p className="mt-1 system-sm-regular text-text-tertiary">{t('communityIntro', { ns: 'app' })}</p>
<div className="mt-3 flex items-center gap-2">
<CustomLink href="https://github.com/langgenius/dify">
<RiGithubFill className="h-5 w-5 text-text-tertiary" />
diff --git a/web/app/components/apps/list.tsx b/web/app/components/apps/list.tsx
index 3b30a839d48..02f12a0c785 100644
--- a/web/app/components/apps/list.tsx
+++ b/web/app/components/apps/list.tsx
@@ -241,7 +241,7 @@ const List: FC<Props> = ({
<>
<div ref={containerRef} className="relative flex h-0 shrink-0 grow flex-col overflow-y-auto bg-background-body">
{dragging && (
- <div className="inset-0 absolute z-50 m-0.5 rounded-2xl border-2 border-dashed border-components-dropzone-border-accent bg-[rgba(21,90,239,0.14)] p-2">
+ <div className="absolute inset-0 z-50 m-0.5 rounded-2xl border-2 border-dashed border-components-dropzone-border-accent bg-[rgba(21,90,239,0.14)] p-2">
</div>
)}
diff --git a/web/app/components/base/agent-log-modal/result.tsx b/web/app/components/base/agent-log-modal/result.tsx
index b4c614ac4e6..da7c43ebec3 100644
--- a/web/app/components/base/agent-log-modal/result.tsx
+++ b/web/app/components/base/agent-log-modal/result.tsx
@@ -66,7 +66,7 @@ const ResultPanel: FC<ResultPanelProps> = ({
</div>
<div className="px-4 py-2">
<div className="relative">
- <div className="h-6 text-xs font-medium leading-6 text-text-tertiary">{t('meta.title', { ns: 'runLog' })}</div>
+ <div className="h-6 text-xs leading-6 font-medium text-text-tertiary">{t('meta.title', { ns: 'runLog' })}</div>
<div className="py-1">
<div className="flex">
<div className="w-[104px] shrink-0 truncate px-2 py-[5px] text-xs leading-[18px] text-text-tertiary">{t('meta.status', { ns: 'runLog' })}</div>
diff --git a/web/app/components/base/app-icon/index.stories.tsx b/web/app/components/base/app-icon/index.stories.tsx
index 15438ca9d1b..2d7209ba2f9 100644
--- a/web/app/components/base/app-icon/index.stories.tsx
+++ b/web/app/components/base/app-icon/index.stories.tsx
@@ -52,7 +52,7 @@ export const Sizes: Story = {
{sizes.map(size => (
<div key={size} className="flex flex-col items-center gap-2">
<AppIcon {...args} size={size} icon="🚀" background="#E5DEFF" />
- <span className="text-xs uppercase text-text-tertiary">{size}</span>
+ <span className="text-xs text-text-tertiary uppercase">{size}</span>
</div>
))}
</div>
diff --git a/web/app/components/base/chat/chat-with-history/header/mobile-operation-dropdown.tsx b/web/app/components/base/chat/chat-with-history/header/mobile-operation-dropdown.tsx
index f8101e1b3a0..43cf25908c3 100644
--- a/web/app/components/base/chat/chat-with-history/header/mobile-operation-dropdown.tsx
+++ b/web/app/components/base/chat/chat-with-history/header/mobile-operation-dropdown.tsx
@@ -39,11 +39,11 @@ const MobileOperationDropdown = ({
<div
className="min-w-[160px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur p-1 shadow-lg backdrop-blur-xs"
>
- <div className="flex cursor-pointer items-center space-x-1 rounded-lg px-3 py-1.5 text-text-secondary system-md-regular hover:bg-state-base-hover" onClick={handleResetChat}>
+ <div className="flex cursor-pointer items-center space-x-1 rounded-lg px-3 py-1.5 system-md-regular text-text-secondary hover:bg-state-base-hover" onClick={handleResetChat}>
<span className="grow">{t('chat.resetChat', { ns: 'share' })}</span>
</div>
{!hideViewChatSettings && (
- <div className="flex cursor-pointer items-center space-x-1 rounded-lg px-3 py-1.5 text-text-secondary system-md-regular hover:bg-state-base-hover" onClick={handleViewChatSettings}>
+ <div className="flex cursor-pointer items-center space-x-1 rounded-lg px-3 py-1.5 system-md-regular text-text-secondary hover:bg-state-base-hover" onClick={handleViewChatSettings}>
<span className="grow">{t('chat.viewChatSettings', { ns: 'share' })}</span>
</div>
)}
diff --git a/web/app/components/base/chat/chat-with-history/inputs-form/view-form-dropdown.tsx b/web/app/components/base/chat/chat-with-history/inputs-form/view-form-dropdown.tsx
index fbf8128cc7e..057f3d03df6 100644
--- a/web/app/components/base/chat/chat-with-history/inputs-form/view-form-dropdown.tsx
+++ b/web/app/components/base/chat/chat-with-history/inputs-form/view-form-dropdown.tsx
@@ -33,7 +33,7 @@ const ViewFormDropdown = () => {
<div className="w-[400px] rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg shadow-lg backdrop-blur-xs">
<div className="flex items-center gap-3 rounded-t-2xl border-b border-divider-subtle px-6 py-4">
<Message3Fill className="h-6 w-6 shrink-0" />
- <div className="system-xl-semibold grow text-text-secondary">{t('chat.chatSettingsTitle', { ns: 'share' })}</div>
+ <div className="grow system-xl-semibold text-text-secondary">{t('chat.chatSettingsTitle', { ns: 'share' })}</div>
</div>
<div className="p-6">
<InputsFormContent />
diff --git a/web/app/components/base/chat/chat-with-history/sidebar/list.tsx b/web/app/components/base/chat/chat-with-history/sidebar/list.tsx
index d85f80cb5ec..fda1ceea0fc 100644
--- a/web/app/components/base/chat/chat-with-history/sidebar/list.tsx
+++ b/web/app/components/base/chat/chat-with-history/sidebar/list.tsx
@@ -21,7 +21,7 @@ const List: FC<ListProps> = ({
return (
<div className="space-y-0.5">
{title && (
- <div className="system-xs-medium-uppercase px-3 pb-1 pt-2 text-text-tertiary">{title}</div>
+ <div className="px-3 pt-2 pb-1 system-xs-medium-uppercase text-text-tertiary">{title}</div>
)}
{list.map(item => (
<Item
diff --git a/web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx b/web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx
index a063fee777e..0d85311cdcf 100644
--- a/web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx
+++ b/web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx
@@ -12,13 +12,13 @@ const ExecutedAction = ({
}: ExecutedActionProps) => {
return (
<div className="flex flex-col gap-y-1 py-1" data-testid="executed-action">
- <Divider className="mb-2 mt-1 w-[30px]" />
- <div className="flex items-center gap-x-1 text-text-tertiary system-xs-regular">
+ <Divider className="mt-1 mb-2 w-[30px]" />
+ <div className="flex items-center gap-x-1 system-xs-regular text-text-tertiary">
<div className="i-custom-vender-workflow-trigger-all size-3.5 shrink-0" />
<Trans
i18nKey="nodes.humanInput.userActions.triggered"
ns="workflow"
- components={{ strong: <span className="text-text-secondary system-xs-medium"></span> }}
+ components={{ strong: <span className="system-xs-medium text-text-secondary"></span> }}
values={{ actionName: executedAction.id }}
/>
</div>
diff --git a/web/app/components/base/chat/chat/answer/human-input-content/tips.tsx b/web/app/components/base/chat/chat/answer/human-input-content/tips.tsx
index 42e9b784c91..724b639fcde 100644
--- a/web/app/components/base/chat/chat/answer/human-input-content/tips.tsx
+++ b/web/app/components/base/chat/chat/answer/human-input-content/tips.tsx
@@ -22,10 +22,10 @@ const Tips = ({
<Divider className="my-2! w-[30px]" />
<div className="space-y-1 pt-1" data-testid="tips">
{showEmailTip && !isEmailDebugMode && (
- <div className="text-text-secondary system-xs-regular">{t('common.humanInputEmailTip', { ns: 'workflow' })}</div>
+ <div className="system-xs-regular text-text-secondary">{t('common.humanInputEmailTip', { ns: 'workflow' })}</div>
)}
{showEmailTip && isEmailDebugMode && (
- <div className="text-text-secondary system-xs-regular">
+ <div className="system-xs-regular text-text-secondary">
<Trans
i18nKey="common.humanInputEmailTipInDebugMode"
ns="workflow"
@@ -34,7 +34,7 @@ const Tips = ({
/>
</div>
)}
- {showDebugModeTip && <div className="text-text-warning system-xs-medium">{t('common.humanInputWebappTip', { ns: 'workflow' })}</div>}
+ {showDebugModeTip && <div className="system-xs-medium text-text-warning">{t('common.humanInputWebappTip', { ns: 'workflow' })}</div>}
</div>
</>
)
diff --git a/web/app/components/base/chat/chat/answer/more.tsx b/web/app/components/base/chat/chat/answer/more.tsx
index 700c548ee43..11d93e56f05 100644
--- a/web/app/components/base/chat/chat/answer/more.tsx
+++ b/web/app/components/base/chat/chat/answer/more.tsx
@@ -14,7 +14,7 @@ const More: FC<MoreProps> = ({
return (
<div
- className="mt-1 flex items-center text-text-quaternary opacity-0 system-xs-regular group-hover:opacity-100"
+ className="mt-1 flex items-center system-xs-regular text-text-quaternary opacity-0 group-hover:opacity-100"
data-testid="more-container"
>
{
diff --git a/web/app/components/base/chat/chat/citation/index.tsx b/web/app/components/base/chat/chat/citation/index.tsx
index 56eb0e602d5..cd5998e74ff 100644
--- a/web/app/components/base/chat/chat/citation/index.tsx
+++ b/web/app/components/base/chat/chat/citation/index.tsx
@@ -74,8 +74,8 @@ const Citation: FC<CitationProps> = ({
const resourcesLength = resources.length
return (
- <div className="-mb-1 mt-3">
- <div data-testid="citation-title" className="mb-2 flex items-center text-text-tertiary system-xs-medium">
+ <div className="mt-3 -mb-1">
+ <div data-testid="citation-title" className="mb-2 flex items-center system-xs-medium text-text-tertiary">
{t('chat.citation.title', { ns: 'common' })}
<div className="ml-2 h-px grow bg-divider-regular" />
</div>
@@ -85,7 +85,7 @@ const Citation: FC<CitationProps> = ({
<div
key={res.documentId}
data-testid="citation-measurement-item"
- className="absolute left-0 top-0 -z-10 mb-1 mr-1 h-7 w-auto max-w-[240px] whitespace-nowrap pl-7 pr-2 text-xs opacity-0"
+ className="absolute top-0 left-0 -z-10 mr-1 mb-1 h-7 w-auto max-w-[240px] pr-2 pl-7 text-xs whitespace-nowrap opacity-0"
ref={(ele: HTMLDivElement | null) => { elesRef.current[index] = ele! }}
>
{res.documentName}
@@ -94,7 +94,7 @@ const Citation: FC<CitationProps> = ({
}
{
resources.slice(0, showMore ? resourcesLength : limitNumberInOneLine).map(res => (
- <div key={res.documentId} className="mb-1 mr-1 cursor-pointer">
+ <div key={res.documentId} className="mr-1 mb-1 cursor-pointer">
<Popup
data={res}
showHitInfo={showHitInfo}
@@ -106,7 +106,7 @@ const Citation: FC<CitationProps> = ({
limitNumberInOneLine < resourcesLength && (
<div
data-testid="citation-more-toggle"
- className="flex h-7 cursor-pointer items-center rounded-lg bg-components-panel-bg px-2 text-text-tertiary system-xs-medium"
+ className="flex h-7 cursor-pointer items-center rounded-lg bg-components-panel-bg px-2 system-xs-medium text-text-tertiary"
onClick={() => setShowMore(v => !v)}
>
{
diff --git a/web/app/components/base/chat/chat/citation/popup.tsx b/web/app/components/base/chat/chat/citation/popup.tsx
index 2b4070b69a0..51a73bc4b6e 100644
--- a/web/app/components/base/chat/chat/citation/popup.tsx
+++ b/web/app/components/base/chat/chat/citation/popup.tsx
@@ -64,10 +64,10 @@ const Popup: FC<PopupProps> = ({
</PortalToFollowElemTrigger>
<PortalToFollowElemContent style={{ zIndex: 1000 }}>
<div data-testid="popup-content" className="max-w-[360px] rounded-xl bg-background-section-burn shadow-lg backdrop-blur-[5px]">
- <div className="px-4 pb-2 pt-3">
+ <div className="px-4 pt-3 pb-2">
<div className="flex h-[18px] items-center">
<FileIcon type={fileType} className="mr-1 h-4 w-4 shrink-0" />
- <div className="truncate text-text-tertiary system-xs-medium">
+ <div className="truncate system-xs-medium text-text-tertiary">
{(data.dataSourceType === 'upload_file' || data.dataSourceType === 'file') && !!data.sources?.[0]?.dataset_id
? (
<button
@@ -98,7 +98,7 @@ const Popup: FC<PopupProps> = ({
<div className="mb-2 flex items-center justify-between">
<div className="flex h-5 items-center rounded-md border border-divider-subtle px-1.5">
{/* replaced svg component with tailwind icon class per lint rule */}
- <i className="i-custom-vender-line-general-hash-02 mr-0.5 h-3 w-3 text-text-quaternary" aria-hidden />
+ <i className="mr-0.5 i-custom-vender-line-general-hash-02 h-3 w-3 text-text-quaternary" aria-hidden />
<div data-testid="popup-segment-position" className="text-[11px] font-medium text-text-tertiary">
{source.segment_position || index + 1}
</div>
@@ -111,29 +111,29 @@ const Popup: FC<PopupProps> = ({
className="hidden h-[18px] items-center text-xs text-text-accent group-hover:flex"
>
{t('chat.citation.linkToDataset', { ns: 'common' })}
- <i className="i-custom-vender-line-arrows-arrow-up-right ml-1 h-3 w-3" aria-hidden />
+ <i className="ml-1 i-custom-vender-line-arrows-arrow-up-right h-3 w-3" aria-hidden />
</Link>
)
}
</div>
- <div data-testid="popup-source-content" className="wrap-break-word text-[13px] text-text-secondary">{source.content}</div>
+ <div data-testid="popup-source-content" className="text-[13px] wrap-break-word text-text-secondary">{source.content}</div>
{
showHitInfo && (
- <div data-testid="popup-hit-info" className="mt-2 flex flex-wrap items-center text-text-quaternary system-xs-medium">
+ <div data-testid="popup-hit-info" className="mt-2 flex flex-wrap items-center system-xs-medium text-text-quaternary">
<Tooltip
text={t('chat.citation.characters', { ns: 'common' })}
data={source.word_count}
- icon={<i className="i-custom-vender-line-editor-type-square mr-1 h-3 w-3" aria-hidden />}
+ icon={<i className="mr-1 i-custom-vender-line-editor-type-square h-3 w-3" aria-hidden />}
/>
<Tooltip
text={t('chat.citation.hitCount', { ns: 'common' })}
data={source.hit_count}
- icon={<i className="i-custom-vender-line-general-target-04 mr-1 h-3 w-3" aria-hidden />}
+ icon={<i className="mr-1 i-custom-vender-line-general-target-04 h-3 w-3" aria-hidden />}
/>
<Tooltip
text={t('chat.citation.vectorHash', { ns: 'common' })}
data={source.index_node_hash?.substring(0, 7)}
- icon={<i className="i-custom-vender-line-editor-bezier-curve-03 mr-1 h-3 w-3" aria-hidden />}
+ icon={<i className="mr-1 i-custom-vender-line-editor-bezier-curve-03 h-3 w-3" aria-hidden />}
/>
{
!!source.score && (
diff --git a/web/app/components/base/chat/chat/citation/progress-tooltip.tsx b/web/app/components/base/chat/chat/citation/progress-tooltip.tsx
index 7915a09d20f..fd75c2f3b05 100644
--- a/web/app/components/base/chat/chat/citation/progress-tooltip.tsx
+++ b/web/app/components/base/chat/chat/citation/progress-tooltip.tsx
@@ -40,7 +40,7 @@ const ProgressTooltip: FC<ProgressTooltipProps> = ({
</div>
</PortalToFollowElemTrigger>
<PortalToFollowElemContent style={{ zIndex: 1001 }}>
- <div data-testid="progress-tooltip-popup" className="rounded-lg bg-components-tooltip-bg p-3 text-text-quaternary shadow-lg system-xs-medium">
+ <div data-testid="progress-tooltip-popup" className="rounded-lg bg-components-tooltip-bg p-3 system-xs-medium text-text-quaternary shadow-lg">
{t('chat.citation.hitScore', { ns: 'common' })}
{' '}
{data}
diff --git a/web/app/components/base/chat/chat/citation/tooltip.tsx b/web/app/components/base/chat/chat/citation/tooltip.tsx
index d23234a6604..16e122bc047 100644
--- a/web/app/components/base/chat/chat/citation/tooltip.tsx
+++ b/web/app/components/base/chat/chat/citation/tooltip.tsx
@@ -36,7 +36,7 @@ const Tooltip: FC<TooltipProps> = ({
</div>
</PortalToFollowElemTrigger>
<PortalToFollowElemContent style={{ zIndex: 1001 }}>
- <div data-testid="tooltip-popup" className="rounded-lg bg-components-tooltip-bg p-3 text-text-quaternary shadow-lg system-xs-medium">
+ <div data-testid="tooltip-popup" className="rounded-lg bg-components-tooltip-bg p-3 system-xs-medium text-text-quaternary shadow-lg">
{text}
{' '}
{data}
diff --git a/web/app/components/base/content-dialog/index.tsx b/web/app/components/base/content-dialog/index.tsx
index 7348879111e..5367a35fc4d 100644
--- a/web/app/components/base/content-dialog/index.tsx
+++ b/web/app/components/base/content-dialog/index.tsx
@@ -19,7 +19,7 @@ const ContentDialog = ({
<Transition
show={show}
as="div"
- className="absolute left-0 top-0 z-[70] box-border h-full w-full p-2"
+ className="absolute top-0 left-0 z-[70] box-border h-full w-full p-2"
>
<TransitionChild>
<div
diff --git a/web/app/components/base/copy-icon/index.tsx b/web/app/components/base/copy-icon/index.tsx
index 15332592d06..b0b4635a391 100644
--- a/web/app/components/base/copy-icon/index.tsx
+++ b/web/app/components/base/copy-icon/index.tsx
@@ -30,8 +30,8 @@ const CopyIcon = ({ content }: Props) => {
>
<div onMouseLeave={reset}>
{!copied
- ? (<span className="i-custom-vender-line-files-copy mx-1 h-3.5 w-3.5 cursor-pointer text-text-tertiary" onClick={handleCopy} data-testid="copy-icon" />)
- : (<span className="i-custom-vender-line-files-copy-check mx-1 h-3.5 w-3.5 text-text-tertiary" data-testid="copied-icon" />)}
+ ? (<span className="mx-1 i-custom-vender-line-files-copy h-3.5 w-3.5 cursor-pointer text-text-tertiary" onClick={handleCopy} data-testid="copy-icon" />)
+ : (<span className="mx-1 i-custom-vender-line-files-copy-check h-3.5 w-3.5 text-text-tertiary" data-testid="copied-icon" />)}
</div>
</Tooltip>
)
diff --git a/web/app/components/base/corner-label/index.stories.tsx b/web/app/components/base/corner-label/index.stories.tsx
index cb7a180c852..ce2ff6d277d 100644
--- a/web/app/components/base/corner-label/index.stories.tsx
+++ b/web/app/components/base/corner-label/index.stories.tsx
@@ -31,7 +31,7 @@ export const Default: Story = {}
export const OnCard: Story = {
render: args => (
<div className="relative w-80 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <CornerLabel {...args} className="absolute -right-px -top-px" />
+ <CornerLabel {...args} className="absolute -top-px -right-px" />
<div className="text-sm text-text-secondary">
Showcase how the label sits on a card header. Pair with contextual text or status information.
</div>
diff --git a/web/app/components/base/date-and-time-picker/calendar/days-of-week.tsx b/web/app/components/base/date-and-time-picker/calendar/days-of-week.tsx
index 46670b27b33..e9bdd70e620 100644
--- a/web/app/components/base/date-and-time-picker/calendar/days-of-week.tsx
+++ b/web/app/components/base/date-and-time-picker/calendar/days-of-week.tsx
@@ -9,7 +9,7 @@ export const DaysOfWeek = () => {
{daysOfWeek.map(day => (
<div
key={day}
- className="system-2xs-medium flex items-center justify-center text-text-tertiary"
+ className="flex items-center justify-center system-2xs-medium text-text-tertiary"
>
{day}
</div>
diff --git a/web/app/components/base/date-and-time-picker/date-picker/header.tsx b/web/app/components/base/date-and-time-picker/date-picker/header.tsx
index 4177edfe7a5..272a4958d29 100644
--- a/web/app/components/base/date-and-time-picker/date-picker/header.tsx
+++ b/web/app/components/base/date-and-time-picker/date-picker/header.tsx
@@ -18,7 +18,7 @@ const Header: FC<DatePickerHeaderProps> = ({
<button
type="button"
onClick={handleOpenYearMonthPicker}
- className="system-md-semibold flex items-center gap-x-0.5 rounded-lg px-2 py-1.5 text-text-primary hover:bg-state-base-hover"
+ className="flex items-center gap-x-0.5 rounded-lg px-2 py-1.5 system-md-semibold text-text-primary hover:bg-state-base-hover"
>
<span>{`${months[currentDate.month()]} ${currentDate.year()}`}</span>
<RiArrowDownSLine className="h-4 w-4 text-text-tertiary" />
diff --git a/web/app/components/base/date-and-time-picker/time-picker/header.tsx b/web/app/components/base/date-and-time-picker/time-picker/header.tsx
index ffda3d486ff..23e86a18c16 100644
--- a/web/app/components/base/date-and-time-picker/time-picker/header.tsx
+++ b/web/app/components/base/date-and-time-picker/time-picker/header.tsx
@@ -11,7 +11,7 @@ const Header = ({
return (
<div className="flex flex-col border-b-[0.5px] border-divider-regular">
- <div className="system-md-semibold flex items-center px-2 py-1.5 text-text-primary">
+ <div className="flex items-center px-2 py-1.5 system-md-semibold text-text-primary">
{title || t('title.pickTime', { ns: 'time' })}
</div>
</div>
diff --git a/web/app/components/base/date-and-time-picker/year-and-month-picker/header.tsx b/web/app/components/base/date-and-time-picker/year-and-month-picker/header.tsx
index 043598884af..c0a90d7acb7 100644
--- a/web/app/components/base/date-and-time-picker/year-and-month-picker/header.tsx
+++ b/web/app/components/base/date-and-time-picker/year-and-month-picker/header.tsx
@@ -17,7 +17,7 @@ const Header: FC<YearAndMonthPickerHeaderProps> = ({
<button
type="button"
onClick={onClick}
- className="system-md-semibold flex items-center gap-x-0.5 rounded-lg px-2 py-1.5 text-text-primary hover:bg-state-base-hover"
+ className="flex items-center gap-x-0.5 rounded-lg px-2 py-1.5 system-md-semibold text-text-primary hover:bg-state-base-hover"
>
<span>{`${months[selectedMonth]} ${selectedYear}`}</span>
<RiArrowUpSLine className="h-4 w-4 text-text-tertiary" />
diff --git a/web/app/components/base/effect/index.stories.tsx b/web/app/components/base/effect/index.stories.tsx
index 8452e9aefea..a631e30166e 100644
--- a/web/app/components/base/effect/index.stories.tsx
+++ b/web/app/components/base/effect/index.stories.tsx
@@ -28,8 +28,8 @@ type Story = StoryObj<typeof meta>
export const Playground: Story = {
render: () => (
<div className="relative h-40 w-72 overflow-hidden rounded-2xl border border-divider-subtle bg-background-default-subtle">
- <Effect className="left-8 top-6" />
- <Effect className="bg-util-colors-purple-brand-purple-brand-500 right-10 top-14" />
+ <Effect className="top-6 left-8" />
+ <Effect className="bg-util-colors-purple-brand-purple-brand-500 top-14 right-10" />
<div className="absolute inset-x-0 bottom-4 flex justify-center text-xs text-text-secondary">
Accent glow
</div>
diff --git a/web/app/components/base/features/new-feature-panel/annotation-reply/config-param.tsx b/web/app/components/base/features/new-feature-panel/annotation-reply/config-param.tsx
index b3985df4814..0335587af06 100644
--- a/web/app/components/base/features/new-feature-panel/annotation-reply/config-param.tsx
+++ b/web/app/components/base/features/new-feature-panel/annotation-reply/config-param.tsx
@@ -11,10 +11,10 @@ export const Item: FC<{ title: string, tooltip: string, children: React.JSX.Elem
return (
<div>
<div className="mb-1 flex items-center space-x-1">
- <div className="py-1 text-text-secondary system-sm-semibold">{title}</div>
+ <div className="py-1 system-sm-semibold text-text-secondary">{title}</div>
<Tooltip
popupContent={
- <div className="max-w-[200px] text-text-secondary system-sm-regular">{tooltip}</div>
+ <div className="max-w-[200px] system-sm-regular text-text-secondary">{tooltip}</div>
}
/>
</div>
diff --git a/web/app/components/base/features/new-feature-panel/annotation-reply/score-slider/index.tsx b/web/app/components/base/features/new-feature-panel/annotation-reply/score-slider/index.tsx
index 0363eb28208..f3d86749f45 100644
--- a/web/app/components/base/features/new-feature-panel/annotation-reply/score-slider/index.tsx
+++ b/web/app/components/base/features/new-feature-panel/annotation-reply/score-slider/index.tsx
@@ -38,7 +38,7 @@ const ScoreSlider: FC<Props> = ({
aria-label={t('feature.annotation.scoreThreshold.title', { ns: 'appDebug' })}
/>
<div
- className="pointer-events-none absolute top-[-16px] text-text-primary system-sm-semibold"
+ className="pointer-events-none absolute top-[-16px] system-sm-semibold text-text-primary"
style={{
left: `calc(4px + ${(safeValue - 80) / 20} * (100% - 8px))`,
transform: 'translateX(-50%)',
diff --git a/web/app/components/base/features/new-feature-panel/index.tsx b/web/app/components/base/features/new-feature-panel/index.tsx
index 9ee2f407ebe..8425e03ae1c 100644
--- a/web/app/components/base/features/new-feature-panel/index.tsx
+++ b/web/app/components/base/features/new-feature-panel/index.tsx
@@ -66,12 +66,12 @@ const NewFeaturePanel = ({
<div className="grow basis-0 overflow-y-auto px-4 pb-4">
{showFileUpload && (
<div className="relative mb-1 rounded-xl border border-components-panel-border p-2 shadow-xs">
- <div className="absolute left-0 top-0 h-full w-full rounded-xl opacity-40" style={{ background: 'linear-gradient(92deg, rgba(11, 165, 236, 0.25) 18.12%, rgba(255, 255, 255, 0.00) 167.31%)' }}></div>
+ <div className="absolute top-0 left-0 h-full w-full rounded-xl opacity-40" style={{ background: 'linear-gradient(92deg, rgba(11, 165, 236, 0.25) 18.12%, rgba(255, 255, 255, 0.00) 167.31%)' }}></div>
<div className="relative flex h-full w-full items-start">
<div className="mr-0.5 shrink-0 p-0.5">
<RiInformation2Fill className="h-5 w-5 text-text-accent" />
</div>
- <div className="system-xs-medium p-1 text-text-primary">
+ <div className="p-1 system-xs-medium text-text-primary">
<span>{isChatMode ? t('common.fileUploadTip', { ns: 'workflow' }) : t('common.ImageUploadLegacyTip', { ns: 'workflow' })}</span>
</div>
</div>
diff --git a/web/app/components/base/file-icon/index.stories.tsx b/web/app/components/base/file-icon/index.stories.tsx
index 4f0ec61c948..65be658a7c6 100644
--- a/web/app/components/base/file-icon/index.stories.tsx
+++ b/web/app/components/base/file-icon/index.stories.tsx
@@ -61,7 +61,7 @@ export const Gallery: Story = {
{examples.map(type => (
<div key={type} className="flex flex-col items-center gap-1">
<FileIcon type={type} className="h-9 w-9" />
- <span className="text-xs uppercase text-text-tertiary">{type}</span>
+ <span className="text-xs text-text-tertiary uppercase">{type}</span>
</div>
))}
</div>
diff --git a/web/app/components/base/file-uploader/audio-preview.tsx b/web/app/components/base/file-uploader/audio-preview.tsx
index 11b5ea12da0..28988b3a7cb 100644
--- a/web/app/components/base/file-uploader/audio-preview.tsx
+++ b/web/app/components/base/file-uploader/audio-preview.tsx
@@ -32,7 +32,7 @@ const AudioPreview: FC<AudioPreviewProps> = ({
</audio>
</div>
<div
- className="absolute right-6 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-white/[0.08] backdrop-blur-[2px]"
+ className="absolute top-6 right-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-white/[0.08] backdrop-blur-[2px]"
onClick={onCancel}
>
<span className="i-ri-close-line h-4 w-4 text-gray-500" data-testid="close-btn" />
diff --git a/web/app/components/base/file-uploader/pdf-preview.tsx b/web/app/components/base/file-uploader/pdf-preview.tsx
index 7b271249330..bfd115401b8 100644
--- a/web/app/components/base/file-uploader/pdf-preview.tsx
+++ b/web/app/components/base/file-uploader/pdf-preview.tsx
@@ -78,7 +78,7 @@ const PdfPreview: FC<PdfPreviewProps> = ({
</div>
<Tooltip popupContent={t('operation.zoomOut', { ns: 'common' })}>
<div
- className="absolute right-24 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
+ className="absolute top-6 right-24 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
onClick={zoomOut}
>
<RiZoomOutLine className="h-4 w-4 text-gray-500" />
@@ -86,7 +86,7 @@ const PdfPreview: FC<PdfPreviewProps> = ({
</Tooltip>
<Tooltip popupContent={t('operation.zoomIn', { ns: 'common' })}>
<div
- className="absolute right-16 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
+ className="absolute top-6 right-16 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
onClick={zoomIn}
>
<RiZoomInLine className="h-4 w-4 text-gray-500" />
@@ -94,7 +94,7 @@ const PdfPreview: FC<PdfPreviewProps> = ({
</Tooltip>
<Tooltip popupContent={t('operation.cancel', { ns: 'common' })}>
<div
- className="absolute right-6 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-white/8 backdrop-blur-[2px]"
+ className="absolute top-6 right-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-white/8 backdrop-blur-[2px]"
onClick={onCancel}
>
<RiCloseLine className="h-4 w-4 text-gray-500" />
diff --git a/web/app/components/base/file-uploader/video-preview.tsx b/web/app/components/base/file-uploader/video-preview.tsx
index 00bed2c67a5..ec1644400f3 100644
--- a/web/app/components/base/file-uploader/video-preview.tsx
+++ b/web/app/components/base/file-uploader/video-preview.tsx
@@ -31,7 +31,7 @@ const VideoPreview: FC<VideoPreviewProps> = ({
</video>
</div>
<div
- className="absolute right-6 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-white/[0.08] backdrop-blur-[2px]"
+ className="absolute top-6 right-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-white/[0.08] backdrop-blur-[2px]"
onClick={onCancel}
>
<span className="i-ri-close-line h-4 w-4 text-gray-500" data-testid="video-preview-close-btn" />
diff --git a/web/app/components/base/form/components/field/mixed-variable-text-input/placeholder.tsx b/web/app/components/base/form/components/field/mixed-variable-text-input/placeholder.tsx
index b6b7a858de5..c4efd7b0a04 100644
--- a/web/app/components/base/form/components/field/mixed-variable-text-input/placeholder.tsx
+++ b/web/app/components/base/form/components/field/mixed-variable-text-input/placeholder.tsx
@@ -25,9 +25,9 @@ const Placeholder = () => {
>
<div className="flex grow items-center">
Type or press
- <div className="system-kbd mx-0.5 flex h-4 w-4 items-center justify-center rounded-sm bg-components-kbd-bg-gray text-text-placeholder">/</div>
+ <div className="mx-0.5 flex h-4 w-4 items-center justify-center rounded-sm bg-components-kbd-bg-gray system-kbd text-text-placeholder">/</div>
<div
- className="system-sm-regular cursor-pointer text-components-input-text-placeholder underline decoration-dotted decoration-auto underline-offset-auto hover:text-text-tertiary"
+ className="cursor-pointer system-sm-regular text-components-input-text-placeholder underline decoration-dotted decoration-auto underline-offset-auto hover:text-text-tertiary"
onClick={((e) => {
e.stopPropagation()
handleInsert('/')
diff --git a/web/app/components/base/grid-mask/index.stories.tsx b/web/app/components/base/grid-mask/index.stories.tsx
index 75ec38b6849..318955ba4fa 100644
--- a/web/app/components/base/grid-mask/index.stories.tsx
+++ b/web/app/components/base/grid-mask/index.stories.tsx
@@ -18,8 +18,8 @@ const meta = {
gradientClassName: '',
children: (
<div className="relative z-10 flex flex-col gap-3 text-left text-white">
- <span className="text-xs uppercase tracking-[0.16em] text-white/70">Grid Mask Demo</span>
- <span className="text-2xl font-semibold leading-tight">Beautiful backgrounds for feature highlights</span>
+ <span className="text-xs tracking-[0.16em] text-white/70 uppercase">Grid Mask Demo</span>
+ <span className="text-2xl leading-tight font-semibold">Beautiful backgrounds for feature highlights</span>
<p className="max-w-md text-sm text-white/80">
Place any content inside the mask. On dark backgrounds the grid and soft gradient add depth without distracting from the main message.
</p>
@@ -41,7 +41,7 @@ export const CustomBackground: Story = {
children: (
<div className="flex flex-col gap-2 text-white">
<span className="text-sm font-medium text-white/80">Custom gradient</span>
- <span className="text-3xl font-semibold leading-tight">Use your own colors</span>
+ <span className="text-3xl leading-tight font-semibold">Use your own colors</span>
<p className="max-w-md text-sm text-white/70">
Override gradient and canvas classes to match brand palettes while keeping the grid texture.
</p>
diff --git a/web/app/components/base/image-uploader/audio-preview.tsx b/web/app/components/base/image-uploader/audio-preview.tsx
index ea6bdd60620..aa87d9d04e7 100644
--- a/web/app/components/base/image-uploader/audio-preview.tsx
+++ b/web/app/components/base/image-uploader/audio-preview.tsx
@@ -23,7 +23,7 @@ const AudioPreview: FC<AudioPreviewProps> = ({
</audio>
</div>
<div
- className="absolute right-6 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-white/[0.08] backdrop-blur-[2px]"
+ className="absolute top-6 right-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-white/[0.08] backdrop-blur-[2px]"
onClick={onCancel}
data-testid="close-preview"
>
diff --git a/web/app/components/base/image-uploader/image-list.stories.tsx b/web/app/components/base/image-uploader/image-list.stories.tsx
index cfea4a0da0c..0c27211d163 100644
--- a/web/app/components/base/image-uploader/image-list.stories.tsx
+++ b/web/app/components/base/image-uploader/image-list.stories.tsx
@@ -132,7 +132,7 @@ const ImageUploaderPlayground = ({ readonly }: Story['args']) => {
return (
<div className="flex w-[360px] flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-4">
<div className="flex flex-col gap-2">
- <span className="text-xs font-medium uppercase tracking-[0.18em] text-text-tertiary">Add images</span>
+ <span className="text-xs font-medium tracking-[0.18em] text-text-tertiary uppercase">Add images</span>
<div className="flex items-center gap-2">
<ImageLinkInput onUpload={handleUploadFromLink} disabled={readonly} />
<button
@@ -156,7 +156,7 @@ const ImageUploaderPlayground = ({ readonly }: Story['args']) => {
/>
<div className="rounded-lg border border-divider-subtle bg-background-default p-2">
- <span className="mb-1 block text-[11px] font-semibold uppercase tracking-widest text-text-tertiary">
+ <span className="mb-1 block text-[11px] font-semibold tracking-widest text-text-tertiary uppercase">
Files state
</span>
<pre className="max-h-40 overflow-auto text-[11px] leading-relaxed text-text-tertiary">
diff --git a/web/app/components/base/image-uploader/image-preview.tsx b/web/app/components/base/image-uploader/image-preview.tsx
index 4ae6ccb7e6a..ec240be9ec8 100644
--- a/web/app/components/base/image-uploader/image-preview.tsx
+++ b/web/app/components/base/image-uploader/image-preview.tsx
@@ -200,7 +200,7 @@ const ImagePreview: FC<ImagePreviewProps> = ({
/>
<Tooltip popupContent={t('operation.copyImage', { ns: 'common' })}>
<div
- className="absolute right-48 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
+ className="absolute top-6 right-48 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
onClick={imageCopy}
>
{isCopied
@@ -210,7 +210,7 @@ const ImagePreview: FC<ImagePreviewProps> = ({
</Tooltip>
<Tooltip popupContent={t('operation.zoomOut', { ns: 'common' })}>
<div
- className="absolute right-40 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
+ className="absolute top-6 right-40 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
onClick={zoomOut}
>
<span className="i-ri-zoom-out-line h-4 w-4 text-gray-500" data-testid="image-preview-zoom-out-button" />
@@ -218,7 +218,7 @@ const ImagePreview: FC<ImagePreviewProps> = ({
</Tooltip>
<Tooltip popupContent={t('operation.zoomIn', { ns: 'common' })}>
<div
- className="absolute right-32 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
+ className="absolute top-6 right-32 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
onClick={zoomIn}
>
<span className="i-ri-zoom-in-line h-4 w-4 text-gray-500" data-testid="image-preview-zoom-in-button" />
@@ -226,7 +226,7 @@ const ImagePreview: FC<ImagePreviewProps> = ({
</Tooltip>
<Tooltip popupContent={t('operation.download', { ns: 'common' })}>
<div
- className="absolute right-24 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
+ className="absolute top-6 right-24 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
onClick={downloadImage}
>
<span className="i-ri-download-cloud-2-line h-4 w-4 text-gray-500" data-testid="image-preview-download-button" />
@@ -234,7 +234,7 @@ const ImagePreview: FC<ImagePreviewProps> = ({
</Tooltip>
<Tooltip popupContent={t('operation.openInNewTab', { ns: 'common' })}>
<div
- className="absolute right-16 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
+ className="absolute top-6 right-16 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg"
onClick={openInNewTab}
>
<span className="i-ri-add-box-line h-4 w-4 text-gray-500" data-testid="image-preview-open-in-tab-button" />
@@ -242,7 +242,7 @@ const ImagePreview: FC<ImagePreviewProps> = ({
</Tooltip>
<Tooltip popupContent={t('operation.cancel', { ns: 'common' })}>
<div
- className="absolute right-6 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-white/8 backdrop-blur-[2px]"
+ className="absolute top-6 right-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-white/8 backdrop-blur-[2px]"
onClick={onCancel}
>
<span className="i-ri-close-line h-4 w-4 text-gray-500" data-testid="image-preview-close-button" />
diff --git a/web/app/components/base/image-uploader/video-preview.tsx b/web/app/components/base/image-uploader/video-preview.tsx
index 618d31944a0..d2a0179b575 100644
--- a/web/app/components/base/image-uploader/video-preview.tsx
+++ b/web/app/components/base/image-uploader/video-preview.tsx
@@ -23,7 +23,7 @@ const VideoPreview: FC<VideoPreviewProps> = ({
</video>
</div>
<div
- className="absolute right-6 top-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-white/[0.08] backdrop-blur-[2px]"
+ className="absolute top-6 right-6 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-white/[0.08] backdrop-blur-[2px]"
onClick={onCancel}
>
<span className="i-ri-close-line h-4 w-4 text-gray-500" data-testid="close-button" />
diff --git a/web/app/components/base/loading/index.stories.tsx b/web/app/components/base/loading/index.stories.tsx
index 22fe746709b..643ef553399 100644
--- a/web/app/components/base/loading/index.stories.tsx
+++ b/web/app/components/base/loading/index.stories.tsx
@@ -33,7 +33,7 @@ const LoadingPreview = ({ type }: { type: 'area' | 'app' }) => {
return (
<div className="flex flex-col items-center gap-4">
- <span className="text-xs uppercase tracking-[0.18em] text-text-tertiary">{title}</span>
+ <span className="text-xs tracking-[0.18em] text-text-tertiary uppercase">{title}</span>
<div
className={`flex w-64 items-center justify-center rounded-xl border border-divider-subtle bg-background-default-subtle ${containerHeight}`}
>
diff --git a/web/app/components/base/logo/index.stories.tsx b/web/app/components/base/logo/index.stories.tsx
index 2aa7ec2bb9a..90209564aeb 100644
--- a/web/app/components/base/logo/index.stories.tsx
+++ b/web/app/components/base/logo/index.stories.tsx
@@ -55,7 +55,7 @@ export const Playground: Story = {
<ThemePreview theme="dark">
<div className="flex flex-col gap-6">
<div className="flex flex-col gap-2">
- <span className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Primary logo</span>
+ <span className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Primary logo</span>
<div className="flex items-center justify-between rounded-xl border border-divider-subtle bg-background-default p-4">
<DifyLogo size={size} style={style} />
<code className="text-[11px] text-text-tertiary">{`size="${size}" | style="${style}"`}</code>
@@ -63,15 +63,15 @@ export const Playground: Story = {
</div>
<div className="grid gap-4 sm:grid-cols-2">
<div className="flex flex-col gap-2 rounded-xl border border-divider-subtle bg-background-default p-4">
- <span className="text-[11px] font-medium uppercase tracking-widest text-text-tertiary">Site favicon</span>
+ <span className="text-[11px] font-medium tracking-widest text-text-tertiary uppercase">Site favicon</span>
<LogoSite />
</div>
<div className="flex flex-col gap-2 rounded-xl border border-divider-subtle bg-background-default p-4">
- <span className="text-[11px] font-medium uppercase tracking-widest text-text-tertiary">Embedded header</span>
+ <span className="text-[11px] font-medium tracking-widest text-text-tertiary uppercase">Embedded header</span>
<LogoEmbeddedChatHeader />
</div>
<div className="flex flex-col gap-2 rounded-xl border border-divider-subtle bg-background-default p-4 sm:col-span-2">
- <span className="text-[11px] font-medium uppercase tracking-widest text-text-tertiary">Embedded avatar</span>
+ <span className="text-[11px] font-medium tracking-widest text-text-tertiary uppercase">Embedded avatar</span>
<LogoEmbeddedChatAvatar className="border-divider-strong rounded-2xl border" />
</div>
</div>
diff --git a/web/app/components/base/markdown-blocks/code-block.stories.tsx b/web/app/components/base/markdown-blocks/code-block.stories.tsx
index b9e92ada22c..5e797dc3484 100644
--- a/web/app/components/base/markdown-blocks/code-block.stories.tsx
+++ b/web/app/components/base/markdown-blocks/code-block.stories.tsx
@@ -14,7 +14,7 @@ const CodeBlockDemo = ({
}) => {
return (
<div className="flex w-full max-w-xl flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Code block</div>
+ <div className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Code block</div>
<CodeBlock
className={`language-${language}`}
>
diff --git a/web/app/components/base/markdown-blocks/think-block.stories.tsx b/web/app/components/base/markdown-blocks/think-block.stories.tsx
index 7c3f809ee73..85b8ec8a5d7 100644
--- a/web/app/components/base/markdown-blocks/think-block.stories.tsx
+++ b/web/app/components/base/markdown-blocks/think-block.stories.tsx
@@ -32,7 +32,7 @@ const ThinkBlockDemo = ({
onFeedback={undefined}
>
<div className="flex w-full max-w-xl flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="flex items-center justify-between text-xs uppercase tracking-[0.18em] text-text-tertiary">
+ <div className="flex items-center justify-between text-xs tracking-[0.18em] text-text-tertiary uppercase">
<span>Think block</span>
<button
type="button"
@@ -43,7 +43,7 @@ const ThinkBlockDemo = ({
</button>
</div>
<ThinkBlock data-think>
- <pre className="whitespace-pre-wrap text-sm text-text-secondary">
+ <pre className="text-sm whitespace-pre-wrap text-text-secondary">
{THOUGHT_TEXT}
</pre>
</ThinkBlock>
diff --git a/web/app/components/base/markdown/index.stories.tsx b/web/app/components/base/markdown/index.stories.tsx
index 2267864ac58..cfab49b6c00 100644
--- a/web/app/components/base/markdown/index.stories.tsx
+++ b/web/app/components/base/markdown/index.stories.tsx
@@ -47,7 +47,7 @@ const MarkdownDemo = ({
return (
<div className="flex w-full max-w-3xl flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Markdown renderer</div>
+ <div className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Markdown renderer</div>
<Markdown
content={content}
className={compact ? 'text-sm! leading-relaxed' : ''}
diff --git a/web/app/components/base/mermaid/index.stories.tsx b/web/app/components/base/mermaid/index.stories.tsx
index 70c259db084..e27a9f633db 100644
--- a/web/app/components/base/mermaid/index.stories.tsx
+++ b/web/app/components/base/mermaid/index.stories.tsx
@@ -20,7 +20,7 @@ const MermaidDemo = ({
return (
<div className="flex w-full max-w-3xl flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="flex items-center justify-between text-xs uppercase tracking-[0.18em] text-text-tertiary">
+ <div className="flex items-center justify-between text-xs tracking-[0.18em] text-text-tertiary uppercase">
<span>Mermaid diagram</span>
<button
type="button"
diff --git a/web/app/components/base/modal-like-wrap/index.stories.tsx b/web/app/components/base/modal-like-wrap/index.stories.tsx
index ed6688773d1..38d969b2cec 100644
--- a/web/app/components/base/modal-like-wrap/index.stories.tsx
+++ b/web/app/components/base/modal-like-wrap/index.stories.tsx
@@ -81,10 +81,10 @@ export const WithBackLink: Story = {
hideCloseBtn
beforeHeader={(
<button
- className="mb-1 flex items-center gap-1 text-xs font-medium uppercase text-text-accent"
+ className="mb-1 flex items-center gap-1 text-xs font-medium text-text-accent uppercase"
onClick={() => console.log('back')}
>
- <span className="bg-text-accent/10 inline-block h-4 w-4 rounded-sm text-center text-[10px] leading-4 text-text-accent">{'<'}</span>
+ <span className="inline-block h-4 w-4 rounded-sm bg-text-accent/10 text-center text-[10px] leading-4 text-text-accent">{'<'}</span>
Back
</button>
)}
diff --git a/web/app/components/base/notion-page-selector/credential-selector/index.tsx b/web/app/components/base/notion-page-selector/credential-selector/index.tsx
index 63ee6e65cce..c8db7bc9781 100644
--- a/web/app/components/base/notion-page-selector/credential-selector/index.tsx
+++ b/web/app/components/base/notion-page-selector/credential-selector/index.tsx
@@ -66,7 +66,7 @@ const CredentialSelector = ({
leaveTo="transform opacity-0 scale-95"
>
<MenuItems
- className="absolute left-0 top-8 z-10 w-80
+ className="absolute top-8 left-0 z-10 w-80
origin-top-right rounded-lg border-[0.5px]
border-components-panel-border bg-components-panel-bg-blur shadow-lg shadow-shadow-shadow-5"
>
@@ -88,7 +88,7 @@ const CredentialSelector = ({
size={20}
/>
<div
- className="mr-2 grow truncate text-text-secondary system-sm-medium"
+ className="mr-2 grow truncate system-sm-medium text-text-secondary"
title={displayName}
>
{displayName}
diff --git a/web/app/components/base/notion-page-selector/index.stories.tsx b/web/app/components/base/notion-page-selector/index.stories.tsx
index d3387933639..71bd7201a88 100644
--- a/web/app/components/base/notion-page-selector/index.stories.tsx
+++ b/web/app/components/base/notion-page-selector/index.stories.tsx
@@ -168,7 +168,7 @@ const NotionSelectorPreview = () => {
canPreview
/>
<div className="rounded-xl border border-divider-subtle bg-background-default-subtle p-4 text-xs text-text-secondary">
- <div className="mb-2 font-semibold uppercase tracking-[0.18em] text-text-tertiary">
+ <div className="mb-2 font-semibold tracking-[0.18em] text-text-tertiary uppercase">
Debug state
</div>
<p className="mb-1">
diff --git a/web/app/components/base/pagination/index.stories.tsx b/web/app/components/base/pagination/index.stories.tsx
index e53f285bb2e..f764ef120dc 100644
--- a/web/app/components/base/pagination/index.stories.tsx
+++ b/web/app/components/base/pagination/index.stories.tsx
@@ -22,7 +22,7 @@ const PaginationDemo = ({
return (
<div className="flex w-full max-w-3xl flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="flex items-center justify-between text-xs uppercase tracking-[0.18em] text-text-tertiary">
+ <div className="flex items-center justify-between text-xs tracking-[0.18em] text-text-tertiary uppercase">
<span>Log pagination</span>
<span className="rounded-md border border-divider-subtle bg-background-default px-2 py-1 font-medium text-text-secondary">
{pageSummary}
diff --git a/web/app/components/base/param-item/index.stories.tsx b/web/app/components/base/param-item/index.stories.tsx
index 6ba6650dd43..adad09dfefc 100644
--- a/web/app/components/base/param-item/index.stories.tsx
+++ b/web/app/components/base/param-item/index.stories.tsx
@@ -74,7 +74,7 @@ const ParamItemPlayground = () => {
return (
<div className="flex w-full max-w-2xl flex-col gap-5 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="flex items-center justify-between text-xs uppercase tracking-[0.18em] text-text-tertiary">
+ <div className="flex items-center justify-between text-xs tracking-[0.18em] text-text-tertiary uppercase">
<span>Generation parameters</span>
<code className="rounded-md border border-divider-subtle bg-background-default px-2 py-1 text-[11px] text-text-tertiary">
{JSON.stringify(state, null, 0)}
diff --git a/web/app/components/base/portal-to-follow-elem/index.stories.tsx b/web/app/components/base/portal-to-follow-elem/index.stories.tsx
index c9c43f34c67..8f0fc489212 100644
--- a/web/app/components/base/portal-to-follow-elem/index.stories.tsx
+++ b/web/app/components/base/portal-to-follow-elem/index.stories.tsx
@@ -8,7 +8,7 @@ import {
const TooltipCard = ({ title, description }: { title: string, description: string }) => (
<div className="w-[220px] rounded-lg border border-divider-subtle bg-components-panel-bg px-3 py-2 text-sm text-text-secondary shadow-lg">
- <div className="mb-1 text-xs font-semibold uppercase tracking-[0.14em] text-text-tertiary">
+ <div className="mb-1 text-xs font-semibold tracking-[0.14em] text-text-tertiary uppercase">
{title}
</div>
<p className="leading-5">{description}</p>
diff --git a/web/app/components/base/premium-badge/index.stories.tsx b/web/app/components/base/premium-badge/index.stories.tsx
index 9d892cbf61d..5f3786a2eab 100644
--- a/web/app/components/base/premium-badge/index.stories.tsx
+++ b/web/app/components/base/premium-badge/index.stories.tsx
@@ -12,14 +12,14 @@ const PremiumBadgeGallery = ({
}) => {
return (
<div className="flex w-full max-w-xl flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <p className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Brand badge variants</p>
+ <p className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Brand badge variants</p>
<div className="grid grid-cols-2 gap-4 sm:grid-cols-4">
{colors.map(color => (
<div key={color} className="flex flex-col items-center gap-2 rounded-xl border border-transparent px-2 py-4 hover:border-divider-subtle hover:bg-background-default-subtle">
<PremiumBadge color={color} size={size} allowHover={allowHover}>
- <span className="px-2 text-xs font-semibold uppercase tracking-[0.14em]">Premium</span>
+ <span className="px-2 text-xs font-semibold tracking-[0.14em] uppercase">Premium</span>
</PremiumBadge>
- <span className="text-[11px] uppercase tracking-[0.16em] text-text-tertiary">{color}</span>
+ <span className="text-[11px] tracking-[0.16em] text-text-tertiary uppercase">{color}</span>
</div>
))}
</div>
diff --git a/web/app/components/base/progress-bar/progress-circle.stories.tsx b/web/app/components/base/progress-bar/progress-circle.stories.tsx
index 1dd52d56830..2c0e70b4a14 100644
--- a/web/app/components/base/progress-bar/progress-circle.stories.tsx
+++ b/web/app/components/base/progress-bar/progress-circle.stories.tsx
@@ -13,7 +13,7 @@ const ProgressCircleDemo = ({
return (
<div className="flex w-full max-w-md flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="flex items-center justify-between text-xs uppercase tracking-[0.18em] text-text-tertiary">
+ <div className="flex items-center justify-between text-xs tracking-[0.18em] text-text-tertiary uppercase">
<span>Upload progress</span>
<span className="rounded-md border border-divider-subtle bg-background-default px-2 py-1 text-[11px] text-text-secondary">
{percentage}
diff --git a/web/app/components/base/prompt-editor/index.stories.tsx b/web/app/components/base/prompt-editor/index.stories.tsx
index 271b1db383e..4c8175ea123 100644
--- a/web/app/components/base/prompt-editor/index.stories.tsx
+++ b/web/app/components/base/prompt-editor/index.stories.tsx
@@ -86,7 +86,7 @@ const PromptEditorDemo = (args: any) => {
{value && (
<div className="mt-4 rounded-lg bg-gray-50 p-3">
<div className="mb-2 text-xs font-medium text-gray-600">Current Value:</div>
- <div className="whitespace-pre-wrap font-mono text-sm text-gray-800">
+ <div className="font-mono text-sm whitespace-pre-wrap text-gray-800">
{value}
</div>
</div>
@@ -204,7 +204,7 @@ const MultipleEditorsDemo = () => {
{(systemPrompt || userPrompt) && (
<div className="rounded-lg bg-gray-50 p-4">
<div className="mb-2 text-xs font-medium text-gray-600">Combined Output:</div>
- <div className="whitespace-pre-wrap text-sm text-gray-800">
+ <div className="text-sm whitespace-pre-wrap text-gray-800">
{systemPrompt && (
<>
<strong>System:</strong>
diff --git a/web/app/components/base/prompt-editor/plugins/component-picker-block/prompt-option.tsx b/web/app/components/base/prompt-editor/plugins/component-picker-block/prompt-option.tsx
index a36403b898d..1499fc1d7fb 100644
--- a/web/app/components/base/prompt-editor/plugins/component-picker-block/prompt-option.tsx
+++ b/web/app/components/base/prompt-editor/plugins/component-picker-block/prompt-option.tsx
@@ -23,7 +23,7 @@ export const PromptMenuItem = memo(({
className={`
flex h-6 cursor-pointer items-center rounded-md px-3 hover:bg-state-base-hover
${isSelected && !disabled && 'bg-state-base-hover!'}
- ${disabled ? 'cursor-not-allowed opacity-30' : 'cursor-pointer hover:bg-state-base-hover'}
+ ${disabled ? 'cursor-not-allowed opacity-30' : ''}
`}
tabIndex={-1}
ref={setRefElement}
diff --git a/web/app/components/base/prompt-editor/plugins/context-block/component.tsx b/web/app/components/base/prompt-editor/plugins/context-block/component.tsx
index 49f14daed08..35f6948e076 100644
--- a/web/app/components/base/prompt-editor/plugins/context-block/component.tsx
+++ b/web/app/components/base/prompt-editor/plugins/context-block/component.tsx
@@ -40,13 +40,13 @@ const ContextBlockComponent: FC<ContextBlockComponentProps> = ({
return (
<div
className={`
- group inline-flex h-6 items-center rounded-[5px] border border-transparent bg-[#F4F3FF] pl-1 pr-0.5 text-[#6938EF] hover:bg-[#EBE9FE]
+ group inline-flex h-6 items-center rounded-[5px] border border-transparent bg-[#F4F3FF] pr-0.5 pl-1 text-[#6938EF] hover:bg-[#EBE9FE]
${open ? 'bg-[#EBE9FE]' : ''}
${isSelected && 'border-[#9B8AFB]!'}
`}
ref={ref}
>
- <span className="i-custom-vender-solid-files-file-05 mr-1 h-[14px] w-[14px]" data-testid="file-icon" />
+ <span className="mr-1 i-custom-vender-solid-files-file-05 h-[14px] w-[14px]" data-testid="file-icon" />
<div className="mr-1 text-xs font-medium">{t('promptEditor.context.item.title', { ns: 'common' })}</div>
{!canNotAddContext && (
<PortalToFollowElem
diff --git a/web/app/components/base/prompt-editor/plugins/history-block/component.tsx b/web/app/components/base/prompt-editor/plugins/history-block/component.tsx
index 8335023ce64..15ce102bd96 100644
--- a/web/app/components/base/prompt-editor/plugins/history-block/component.tsx
+++ b/web/app/components/base/prompt-editor/plugins/history-block/component.tsx
@@ -41,7 +41,7 @@ const HistoryBlockComponent: FC<HistoryBlockComponentProps> = ({
return (
<div
className={`
- group inline-flex h-6 items-center rounded-[5px] border border-transparent pl-1 pr-0.5 text-[#DD2590] hover:bg-[#FCE7F6]
+ group inline-flex h-6 items-center rounded-[5px] border border-transparent pr-0.5 pl-1 text-[#DD2590] hover:bg-[#FCE7F6]
${open ? 'bg-[#FCE7F6]' : 'bg-[#FDF2FA]'}
${isSelected && 'border-[#F670C7]!'}
`}
diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/component.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/component.tsx
index df4147fc33c..e13ac2aee36 100644
--- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/component.tsx
+++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/component.tsx
@@ -63,7 +63,7 @@ const HITLInputComponent: FC<HITLInputComponentProps> = ({
return (
<div
ref={ref}
- className="w-full pb-1 pt-3"
+ className="w-full pt-3 pb-1"
>
<ComponentUi
nodeId={nodeId}
diff --git a/web/app/components/base/prompt-editor/plugins/query-block/component.tsx b/web/app/components/base/prompt-editor/plugins/query-block/component.tsx
index a5b5969904b..cd5b60bc9bf 100644
--- a/web/app/components/base/prompt-editor/plugins/query-block/component.tsx
+++ b/web/app/components/base/prompt-editor/plugins/query-block/component.tsx
@@ -17,7 +17,7 @@ const QueryBlockComponent: FC<QueryBlockComponentProps> = ({
return (
<div
className={`
- inline-flex h-6 items-center rounded-[5px] border border-transparent bg-[#FFF6ED] pl-1 pr-0.5 hover:bg-[#FFEAD5]
+ inline-flex h-6 items-center rounded-[5px] border border-transparent bg-[#FFF6ED] pr-0.5 pl-1 hover:bg-[#FFEAD5]
${isSelected && 'border-[#FD853A]!'}
`}
ref={ref}
diff --git a/web/app/components/base/prompt-log-modal/card.tsx b/web/app/components/base/prompt-log-modal/card.tsx
index 515fa6bf2cc..28a0a13922d 100644
--- a/web/app/components/base/prompt-log-modal/card.tsx
+++ b/web/app/components/base/prompt-log-modal/card.tsx
@@ -23,7 +23,7 @@ const Card: FC<CardProps> = ({
<div>
{
log.map((item, index) => (
- <div key={index} className="group/card mb-2 rounded-xl px-4 pb-4 pt-2 last-of-type:mb-0 hover:bg-state-base-hover">
+ <div key={index} className="group/card mb-2 rounded-xl px-4 pt-2 pb-4 last-of-type:mb-0 hover:bg-state-base-hover">
<div className="flex h-8 items-center justify-between">
<div className="font-semibold text-[#2D31A6]">{item.role.toUpperCase()}</div>
<CopyFeedbackNew className="hidden h-6 w-6 group-hover/card:block" content={item.text} />
diff --git a/web/app/components/base/prompt-log-modal/index.tsx b/web/app/components/base/prompt-log-modal/index.tsx
index 5b9468a501c..08200623ae2 100644
--- a/web/app/components/base/prompt-log-modal/index.tsx
+++ b/web/app/components/base/prompt-log-modal/index.tsx
@@ -42,7 +42,7 @@ const PromptLogModal: FC<PromptLogModalProps> = ({
}}
ref={ref}
>
- <div className="flex h-14 shrink-0 items-center justify-between border-b border-divider-regular pl-6 pr-5">
+ <div className="flex h-14 shrink-0 items-center justify-between border-b border-divider-regular pr-5 pl-6">
<div className="text-base font-semibold text-text-primary">PROMPT LOG</div>
<div className="flex items-center">
{
diff --git a/web/app/components/base/qrcode/index.stories.tsx b/web/app/components/base/qrcode/index.stories.tsx
index 700a71fcebd..2453b990abe 100644
--- a/web/app/components/base/qrcode/index.stories.tsx
+++ b/web/app/components/base/qrcode/index.stories.tsx
@@ -8,7 +8,7 @@ const QRDemo = ({
}) => {
return (
<div className="flex w-full max-w-sm flex-col gap-3 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <p className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Share QR</p>
+ <p className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Share QR</p>
<div className="flex items-center gap-2 text-sm text-text-secondary">
<span>Generated URL:</span>
<code className="rounded-md bg-background-default px-2 py-1 text-[11px]">{content}</code>
diff --git a/web/app/components/base/qrcode/index.tsx b/web/app/components/base/qrcode/index.tsx
index f3335fe889e..ba3946b185a 100644
--- a/web/app/components/base/qrcode/index.tsx
+++ b/web/app/components/base/qrcode/index.tsx
@@ -64,7 +64,7 @@ const ShareQRCode = ({ content }: Props) => {
{isShow && (
<div
ref={qrCodeRef}
- className="absolute -right-8 top-8 z-10 flex w-[232px] flex-col items-center rounded-lg bg-components-panel-bg p-4 shadow-xs"
+ className="absolute top-8 -right-8 z-10 flex w-[232px] flex-col items-center rounded-lg bg-components-panel-bg p-4 shadow-xs"
onClick={handlePanelClick}
>
<QRCode size={160} value={content} className="mb-2" />
diff --git a/web/app/components/base/segmented-control/index.stories.tsx b/web/app/components/base/segmented-control/index.stories.tsx
index 6ccb3e293a6..3f8f9b7c623 100644
--- a/web/app/components/base/segmented-control/index.stories.tsx
+++ b/web/app/components/base/segmented-control/index.stories.tsx
@@ -24,7 +24,7 @@ const SegmentedControlDemo = ({
return (
<div className="flex w-full max-w-lg flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="flex items-center justify-between text-xs uppercase tracking-[0.18em] text-text-tertiary">
+ <div className="flex items-center justify-between text-xs tracking-[0.18em] text-text-tertiary uppercase">
<span>Segmented control</span>
<code className="rounded-md bg-background-default px-2 py-1 text-[11px] text-text-tertiary">
value="
diff --git a/web/app/components/base/select/locale-signin.tsx b/web/app/components/base/select/locale-signin.tsx
index 3c5dd999f69..046a76a5d4e 100644
--- a/web/app/components/base/select/locale-signin.tsx
+++ b/web/app/components/base/select/locale-signin.tsx
@@ -36,7 +36,7 @@ export default function LocaleSigninSelect({
leaveTo="transform opacity-0 scale-95"
>
<MenuItems className="absolute right-0 z-10 mt-2 w-[200px] origin-top-right divide-y divide-divider-regular rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg focus:outline-hidden">
- <div className="max-h-96 overflow-y-auto px-1 py-1 mask-[linear-gradient(to_bottom,transparent_0px,black_8px,black_calc(100%-8px),transparent_100%)]">
+ <div className="max-h-96 overflow-y-auto mask-[linear-gradient(to_bottom,transparent_0px,black_8px,black_calc(100%-8px),transparent_100%)] px-1 py-1">
{items.map((item) => {
return (
<MenuItem key={item.value}>
diff --git a/web/app/components/base/simple-pie-chart/index.stories.tsx b/web/app/components/base/simple-pie-chart/index.stories.tsx
index 25f82979d10..5d66a9424c5 100644
--- a/web/app/components/base/simple-pie-chart/index.stories.tsx
+++ b/web/app/components/base/simple-pie-chart/index.stories.tsx
@@ -17,7 +17,7 @@ const PieChartPlayground = ({
return (
<div className="flex w-full max-w-md flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="flex items-center justify-between text-xs uppercase tracking-[0.18em] text-text-tertiary">
+ <div className="flex items-center justify-between text-xs tracking-[0.18em] text-text-tertiary uppercase">
<span>Conversion snapshot</span>
<span className="rounded-md border border-divider-subtle bg-background-default px-2 py-1 text-[11px] text-text-secondary">
{label}
diff --git a/web/app/components/base/skeleton/index.stories.tsx b/web/app/components/base/skeleton/index.stories.tsx
index e7678524068..24a7383e386 100644
--- a/web/app/components/base/skeleton/index.stories.tsx
+++ b/web/app/components/base/skeleton/index.stories.tsx
@@ -9,7 +9,7 @@ import {
const SkeletonDemo = () => {
return (
<div className="flex w-full max-w-xl flex-col gap-6 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Loading skeletons</div>
+ <div className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Loading skeletons</div>
<div className="space-y-4 rounded-xl border border-divider-subtle bg-background-default-subtle p-4">
<SkeletonContainer>
<SkeletonRow>
diff --git a/web/app/components/base/sort/index.stories.tsx b/web/app/components/base/sort/index.stories.tsx
index 46b46e8d1e4..abc11b1ea36 100644
--- a/web/app/components/base/sort/index.stories.tsx
+++ b/web/app/components/base/sort/index.stories.tsx
@@ -21,7 +21,7 @@ const SortPlayground = () => {
return (
<div className="flex w-full max-w-xl flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="flex items-center justify-between text-xs uppercase tracking-[0.18em] text-text-tertiary">
+ <div className="flex items-center justify-between text-xs tracking-[0.18em] text-text-tertiary uppercase">
<span>Sort control</span>
<code className="rounded-md bg-background-default px-2 py-1 text-[11px] text-text-tertiary">
sort_by="
diff --git a/web/app/components/base/spinner/index.stories.tsx b/web/app/components/base/spinner/index.stories.tsx
index f5a8e830592..cff5c367944 100644
--- a/web/app/components/base/spinner/index.stories.tsx
+++ b/web/app/components/base/spinner/index.stories.tsx
@@ -11,7 +11,7 @@ const SpinnerPlayground = ({
return (
<div className="flex w-full max-w-xs flex-col items-center gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <p className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Spinner</p>
+ <p className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Spinner</p>
<Spinner loading={isLoading} className="text-primary-500" />
<button
type="button"
diff --git a/web/app/components/base/spinner/index.tsx b/web/app/components/base/spinner/index.tsx
index 65fea46a91a..48ee65b99f2 100644
--- a/web/app/components/base/spinner/index.tsx
+++ b/web/app/components/base/spinner/index.tsx
@@ -14,7 +14,7 @@ const Spinner: FC<Props> = ({ loading = false, children, className }) => {
role="status"
>
<span
- className="absolute! -m-px! h-px! w-px! overflow-hidden! whitespace-nowrap! border-0! p-0! [clip:rect(0,0,0,0)]!"
+ className="absolute! -m-px! h-px! w-px! overflow-hidden! border-0! p-0! whitespace-nowrap! [clip:rect(0,0,0,0)]!"
>
Loading...
</span>
diff --git a/web/app/components/base/svg/index.stories.tsx b/web/app/components/base/svg/index.stories.tsx
index a97bfe2e5a2..cdf4f6bcb60 100644
--- a/web/app/components/base/svg/index.stories.tsx
+++ b/web/app/components/base/svg/index.stories.tsx
@@ -7,7 +7,7 @@ const SvgToggleDemo = () => {
return (
<div className="flex w-full max-w-xs flex-col items-center gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <p className="text-xs uppercase tracking-[0.18em] text-text-tertiary">SVG toggle</p>
+ <p className="text-xs tracking-[0.18em] text-text-tertiary uppercase">SVG toggle</p>
<SVGBtn isSVG={isSVG} setIsSVG={setIsSVG} />
<span className="text-xs text-text-secondary">
Mode:
diff --git a/web/app/components/base/tab-header/index.stories.tsx b/web/app/components/base/tab-header/index.stories.tsx
index 2b459077880..e783b67cd27 100644
--- a/web/app/components/base/tab-header/index.stories.tsx
+++ b/web/app/components/base/tab-header/index.stories.tsx
@@ -20,7 +20,7 @@ const TabHeaderDemo = ({
return (
<div className="flex w-full max-w-3xl flex-col gap-6 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="flex items-center justify-between text-xs uppercase tracking-[0.18em] text-text-tertiary">
+ <div className="flex items-center justify-between text-xs tracking-[0.18em] text-text-tertiary uppercase">
<span>Tabs</span>
<code className="rounded-md bg-background-default px-2 py-1 text-[11px] text-text-tertiary">
active="
diff --git a/web/app/components/base/tab-slider-new/index.stories.tsx b/web/app/components/base/tab-slider-new/index.stories.tsx
index 56f9df4e275..83abb179743 100644
--- a/web/app/components/base/tab-slider-new/index.stories.tsx
+++ b/web/app/components/base/tab-slider-new/index.stories.tsx
@@ -17,7 +17,7 @@ const TabSliderNewDemo = ({
return (
<div className="flex w-full max-w-sm flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Pill tabs</div>
+ <div className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Pill tabs</div>
<TabSliderNew value={value} options={OPTIONS} onChange={setValue} />
</div>
)
diff --git a/web/app/components/base/tab-slider-plain/index.stories.tsx b/web/app/components/base/tab-slider-plain/index.stories.tsx
index e621ba43aaf..abc27883714 100644
--- a/web/app/components/base/tab-slider-plain/index.stories.tsx
+++ b/web/app/components/base/tab-slider-plain/index.stories.tsx
@@ -17,7 +17,7 @@ const TabSliderPlainDemo = ({
return (
<div className="flex w-full max-w-2xl flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Underline tabs</div>
+ <div className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Underline tabs</div>
<TabSliderPlain
value={value}
onChange={setValue}
diff --git a/web/app/components/base/tab-slider/index.stories.tsx b/web/app/components/base/tab-slider/index.stories.tsx
index 0db53491bd2..2cfa7d9d152 100644
--- a/web/app/components/base/tab-slider/index.stories.tsx
+++ b/web/app/components/base/tab-slider/index.stories.tsx
@@ -54,7 +54,7 @@ const TabSliderDemo = ({
return (
<div className="flex w-full max-w-lg flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Segmented tabs</div>
+ <div className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Segmented tabs</div>
<TabSlider
value={value}
options={OPTIONS}
diff --git a/web/app/components/base/tag-management/index.tsx b/web/app/components/base/tag-management/index.tsx
index 79c557a8b9a..8e693fb9f1c 100644
--- a/web/app/components/base/tag-management/index.tsx
+++ b/web/app/components/base/tag-management/index.tsx
@@ -48,8 +48,8 @@ const TagManagementModal = ({ show, type }: TagManagementModalProps) => {
}, [type])
return (
<Modal className="!w-[600px] !max-w-[600px] rounded-xl px-8 py-6" isShow={show} onClose={() => setShowTagManagementModal(false)}>
- <div className="relative pb-2 text-xl font-semibold leading-[30px] text-text-primary">{t('tag.manageTags', { ns: 'common' })}</div>
- <div className="absolute right-4 top-4 cursor-pointer p-2" onClick={() => setShowTagManagementModal(false)}>
+ <div className="relative pb-2 text-xl leading-[30px] font-semibold text-text-primary">{t('tag.manageTags', { ns: 'common' })}</div>
+ <div className="absolute top-4 right-4 cursor-pointer p-2" onClick={() => setShowTagManagementModal(false)}>
<span className="i-ri-close-line h-4 w-4 text-text-tertiary" data-testid="tag-management-modal-close-button" />
</div>
<div className="mt-3 flex flex-wrap gap-2">
diff --git a/web/app/components/base/tag-management/panel.tsx b/web/app/components/base/tag-management/panel.tsx
index cceb09b4d7a..db0aae1b05d 100644
--- a/web/app/components/base/tag-management/panel.tsx
+++ b/web/app/components/base/tag-management/panel.tsx
@@ -114,7 +114,7 @@ const Panel = (props: PanelProps) => {
<div className="p-1">
<div className="flex cursor-pointer items-center gap-x-1 rounded-lg px-2 py-1.5 hover:bg-state-base-hover" data-testid="create-tag-option" onClick={createNewTag}>
<span className="i-ri-add-line h-4 w-4 text-text-tertiary" />
- <div className="grow truncate px-1 text-text-secondary system-md-regular">
+ <div className="grow truncate px-1 system-md-regular text-text-secondary">
{`${t('tag.create', { ns: 'common' })} `}
<span className="system-md-medium">{`'${keywords}'`}</span>
</div>
@@ -127,7 +127,7 @@ const Panel = (props: PanelProps) => {
{filteredSelectedTagList.map(tag => (
<div key={tag.id} className="flex cursor-pointer items-center gap-x-1 rounded-lg px-2 py-1.5 hover:bg-state-base-hover" onClick={() => selectTag(tag)} data-testid="tag-row">
<Checkbox className="shrink-0" checked={selectedTagIDs.includes(tag.id)} onCheck={noop} id={tag.id} />
- <div title={tag.name} className="grow truncate px-1 text-text-secondary system-md-regular">
+ <div title={tag.name} className="grow truncate px-1 system-md-regular text-text-secondary">
{tag.name}
</div>
</div>
@@ -135,7 +135,7 @@ const Panel = (props: PanelProps) => {
{filteredTagList.map(tag => (
<div key={tag.id} className="flex cursor-pointer items-center gap-x-1 rounded-lg px-2 py-1.5 hover:bg-state-base-hover" onClick={() => selectTag(tag)} data-testid="tag-row">
<Checkbox className="shrink-0" checked={selectedTagIDs.includes(tag.id)} onCheck={noop} id={tag.id} />
- <div title={tag.name} className="grow truncate px-1 text-text-secondary system-md-regular">
+ <div title={tag.name} className="grow truncate px-1 system-md-regular text-text-secondary">
{tag.name}
</div>
</div>
@@ -146,7 +146,7 @@ const Panel = (props: PanelProps) => {
<div className="p-1">
<div className="flex flex-col items-center gap-y-1 p-3">
<span className="i-ri-price-tag-3-line h-6 w-6 text-text-quaternary" />
- <div className="text-text-tertiary system-xs-regular">{t('tag.noTag', { ns: 'common' })}</div>
+ <div className="system-xs-regular text-text-tertiary">{t('tag.noTag', { ns: 'common' })}</div>
</div>
</div>
)}
@@ -154,7 +154,7 @@ const Panel = (props: PanelProps) => {
<div className="p-1">
<div className="flex cursor-pointer items-center gap-x-1 rounded-lg px-2 py-1.5 hover:bg-state-base-hover" onClick={() => setShowTagManagementModal(true)}>
<span className="i-ri-price-tag-3-line h-4 w-4 text-text-tertiary" />
- <div className="grow truncate px-1 text-text-secondary system-md-regular">
+ <div className="grow truncate px-1 system-md-regular text-text-secondary">
{t('tag.manageTags', { ns: 'common' })}
</div>
</div>
diff --git a/web/app/components/base/tag-management/trigger.tsx b/web/app/components/base/tag-management/trigger.tsx
index 1ee5b17f163..def88b2c79c 100644
--- a/web/app/components/base/tag-management/trigger.tsx
+++ b/web/app/components/base/tag-management/trigger.tsx
@@ -16,7 +16,7 @@ const Trigger = ({
? (
<div className="flex items-center gap-x-0.5 rounded-[5px] border border-dashed border-divider-deep bg-components-badge-bg-dimm px-[5px] py-[3px]">
<span className="i-ri-price-tag-3-line h-3 w-3 shrink-0 text-text-quaternary" />
- <div className="text-nowrap text-text-tertiary system-2xs-medium-uppercase">
+ <div className="system-2xs-medium-uppercase text-nowrap text-text-tertiary">
{t('tag.addTag', { ns: 'common' })}
</div>
</div>
@@ -32,7 +32,7 @@ const Trigger = ({
data-testid={`tag-badge-${index}`}
>
<span className="i-ri-price-tag-3-line h-3 w-3 shrink-0 text-text-quaternary" />
- <div className="text-nowrap text-text-tertiary system-2xs-medium-uppercase">
+ <div className="system-2xs-medium-uppercase text-nowrap text-text-tertiary">
{content}
</div>
</div>
diff --git a/web/app/components/base/tag/index.stories.tsx b/web/app/components/base/tag/index.stories.tsx
index 219ed4f9e86..6f9294424d5 100644
--- a/web/app/components/base/tag/index.stories.tsx
+++ b/web/app/components/base/tag/index.stories.tsx
@@ -12,14 +12,14 @@ const TagGallery = ({
}) => {
return (
<div className="flex w-full max-w-md flex-col gap-4 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Tag variants</div>
+ <div className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Tag variants</div>
<div className="grid grid-cols-2 gap-3">
{COLORS.map(color => (
<div key={color} className="flex flex-col items-start gap-2 rounded-xl border border-transparent px-3 py-2 hover:border-divider-subtle hover:bg-background-default-subtle">
<Tag color={color} bordered={bordered} hideBg={hideBg}>
{color.charAt(0).toUpperCase() + color.slice(1)}
</Tag>
- <span className="text-[11px] uppercase tracking-[0.16em] text-text-quaternary">{color}</span>
+ <span className="text-[11px] tracking-[0.16em] text-text-quaternary uppercase">{color}</span>
</div>
))}
</div>
diff --git a/web/app/components/base/tooltip/index.stories.tsx b/web/app/components/base/tooltip/index.stories.tsx
index 9e2ce9977bb..69d0c5d2b60 100644
--- a/web/app/components/base/tooltip/index.stories.tsx
+++ b/web/app/components/base/tooltip/index.stories.tsx
@@ -4,7 +4,7 @@ import Tooltip from '.'
const TooltipGrid = () => {
return (
<div className="flex w-full max-w-xl flex-col gap-6 rounded-2xl border border-divider-subtle bg-components-panel-bg p-6">
- <div className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Hover tooltips</div>
+ <div className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Hover tooltips</div>
<div className="flex flex-wrap gap-4">
<Tooltip popupContent="Helpful hint explaining the setting.">
<button
@@ -20,7 +20,7 @@ const TooltipGrid = () => {
</span>
</Tooltip>
</div>
- <div className="text-xs uppercase tracking-[0.18em] text-text-tertiary">Click tooltips</div>
+ <div className="text-xs tracking-[0.18em] text-text-tertiary uppercase">Click tooltips</div>
<div className="flex flex-wrap gap-4">
<Tooltip popupContent="Click again to close." triggerMethod="click" position="bottom-start">
<button
diff --git a/web/app/components/base/voice-input/index.stories.tsx b/web/app/components/base/voice-input/index.stories.tsx
index f6c87fd436e..efbc3bb08d4 100644
--- a/web/app/components/base/voice-input/index.stories.tsx
+++ b/web/app/components/base/voice-input/index.stories.tsx
@@ -26,7 +26,7 @@ const VoiceInputMock = ({ onConverted, onCancel }: any) => {
return (
<div className="relative h-16 w-full overflow-hidden rounded-xl border-2 border-primary-600">
- <div className="absolute inset-[1.5px] flex items-center overflow-hidden rounded-[10.5px] bg-primary-25 py-[14px] pl-[14.5px] pr-[6.5px]">
+ <div className="absolute inset-[1.5px] flex items-center overflow-hidden rounded-[10.5px] bg-primary-25 py-[14px] pr-[6.5px] pl-[14.5px]">
{/* Waveform visualization placeholder */}
<div className="absolute bottom-0 left-0 flex h-4 w-full items-end gap-[3px] px-2">
{Array.from({ length: 40 }).map((_, i) => (
@@ -260,7 +260,7 @@ const SearchWithVoiceDemo = () => {
value={searchQuery}
onChange={e => setSearchQuery(e.target.value)}
/>
- <span className="absolute left-3 top-1/2 -translate-y-1/2 text-gray-400">
+ <span className="absolute top-1/2 left-3 -translate-y-1/2 text-gray-400">
🔍
</span>
</div>
diff --git a/web/app/components/billing/pricing/index.tsx b/web/app/components/billing/pricing/index.tsx
index 990939985ea..0873b2dea49 100644
--- a/web/app/components/billing/pricing/index.tsx
+++ b/web/app/components/billing/pricing/index.tsx
@@ -65,7 +65,7 @@ const Pricing: FC<PricingProps> = ({
<ScrollAreaViewport className={pricingScrollAreaClassNames.viewport}>
<ScrollAreaContent className={pricingScrollAreaClassNames.content}>
<div className="relative grid min-h-full grid-rows-[1fr_auto_auto_1fr] overflow-hidden">
- <div className="absolute -top-12 left-0 right-0 -z-10">
+ <div className="absolute -top-12 right-0 left-0 -z-10">
<NoiseTop />
</div>
<Header onClose={onCancel} />
@@ -82,7 +82,7 @@ const Pricing: FC<PricingProps> = ({
canPay={canPay}
/>
<Footer pricingPageURL={pricingPageURL} currentCategory={currentCategory} />
- <div className="absolute -bottom-12 left-0 right-0 -z-10">
+ <div className="absolute right-0 -bottom-12 left-0 -z-10">
<NoiseBottom />
</div>
</div>
diff --git a/web/app/components/billing/pricing/plans/cloud-plan-item/index.tsx b/web/app/components/billing/pricing/plans/cloud-plan-item/index.tsx
index b85f1d8631f..99d956ba90e 100644
--- a/web/app/components/billing/pricing/plans/cloud-plan-item/index.tsx
+++ b/web/app/components/billing/pricing/plans/cloud-plan-item/index.tsx
@@ -103,38 +103,38 @@ const CloudPlanItem: FC<CloudPlanItemProps> = ({
{ICON_MAP[plan]}
<div className="flex min-h-[104px] flex-col gap-y-2">
<div className="flex items-center gap-x-2.5">
- <div className="text-[30px] font-medium leading-[1.2] text-text-primary">{t(`${i18nPrefix}.name`, { ns: 'billing' })}</div>
+ <div className="text-[30px] leading-[1.2] font-medium text-text-primary">{t(`${i18nPrefix}.name`, { ns: 'billing' })}</div>
{
isMostPopularPlan && (
<div className="flex items-center justify-center bg-saas-dify-blue-static px-1.5 py-1">
- <span className="text-text-primary-on-surface system-2xs-semibold-uppercase">
+ <span className="system-2xs-semibold-uppercase text-text-primary-on-surface">
{t('plansCommon.mostPopular', { ns: 'billing' })}
</span>
</div>
)
}
</div>
- <div className="text-text-secondary system-sm-regular">{t(`${i18nPrefix}.description`, { ns: 'billing' })}</div>
+ <div className="system-sm-regular text-text-secondary">{t(`${i18nPrefix}.description`, { ns: 'billing' })}</div>
</div>
</div>
{/* Price */}
- <div className="flex items-end gap-x-2 px-1 pb-8 pt-4">
+ <div className="flex items-end gap-x-2 px-1 pt-4 pb-8">
{isFreePlan && (
- <span className="text-text-primary title-4xl-semi-bold">{t('plansCommon.free', { ns: 'billing' })}</span>
+ <span className="title-4xl-semi-bold text-text-primary">{t('plansCommon.free', { ns: 'billing' })}</span>
)}
{!isFreePlan && (
<>
{isYear && (
- <span className="text-text-quaternary line-through title-4xl-semi-bold">
+ <span className="title-4xl-semi-bold text-text-quaternary line-through">
$
{planInfo.price * 12}
</span>
)}
- <span className="text-text-primary title-4xl-semi-bold">
+ <span className="title-4xl-semi-bold text-text-primary">
$
{isYear ? planInfo.price * 10 : planInfo.price}
</span>
- <span className="pb-0.5 text-text-tertiary system-md-regular">
+ <span className="pb-0.5 system-md-regular text-text-tertiary">
{t('plansCommon.priceTip', { ns: 'billing' })}
{t(`plansCommon.${!isYear ? 'month' : 'year'}`, { ns: 'billing' })}
</span>
diff --git a/web/app/components/billing/pricing/plans/cloud-plan-item/list/item/index.tsx b/web/app/components/billing/pricing/plans/cloud-plan-item/list/item/index.tsx
index df93a5fb0ed..129ebaf8534 100644
--- a/web/app/components/billing/pricing/plans/cloud-plan-item/list/item/index.tsx
+++ b/web/app/components/billing/pricing/plans/cloud-plan-item/list/item/index.tsx
@@ -12,7 +12,7 @@ const Item = ({
}: ItemProps) => {
return (
<div className="flex items-center">
- <span className="system-sm-regular grow text-text-secondary">{label}</span>
+ <span className="grow system-sm-regular text-text-secondary">{label}</span>
{tooltip && (
<Tooltip
content={tooltip}
diff --git a/web/app/components/billing/pricing/plans/self-hosted-plan-item/list/item.tsx b/web/app/components/billing/pricing/plans/self-hosted-plan-item/list/item.tsx
index ee14117d24d..d84e946f36b 100644
--- a/web/app/components/billing/pricing/plans/self-hosted-plan-item/list/item.tsx
+++ b/web/app/components/billing/pricing/plans/self-hosted-plan-item/list/item.tsx
@@ -13,7 +13,7 @@ const Item = ({
<div className="py-px">
<RiCheckLine className="size-4 shrink-0 text-text-tertiary" />
</div>
- <span className="system-sm-regular grow text-text-secondary">{label}</span>
+ <span className="grow system-sm-regular text-text-secondary">{label}</span>
</div>
)
}
diff --git a/web/app/components/custom/custom-page/index.tsx b/web/app/components/custom/custom-page/index.tsx
index 38f651882d7..cd85a912303 100644
--- a/web/app/components/custom/custom-page/index.tsx
+++ b/web/app/components/custom/custom-page/index.tsx
@@ -20,7 +20,7 @@ const CustomPage = () => {
<div className="title-xl-semi-bold">{t('upgradeTip.title', { ns: 'custom' })}</div>
<div className="system-sm-regular">{t('upgradeTip.des', { ns: 'custom' })}</div>
</div>
- <div className="system-md-semibold flex h-10 w-[120px] cursor-pointer items-center justify-center rounded-3xl bg-white text-text-accent shadow-xs hover:opacity-95" onClick={() => setShowPricingModal()}>{t('upgradeBtn.encourageShort', { ns: 'billing' })}</div>
+ <div className="flex h-10 w-[120px] cursor-pointer items-center justify-center rounded-3xl bg-white system-md-semibold text-text-accent shadow-xs hover:opacity-95" onClick={() => setShowPricingModal()}>{t('upgradeBtn.encourageShort', { ns: 'billing' })}</div>
</div>
)}
<CustomWebAppBrand />
diff --git a/web/app/components/custom/custom-web-app-brand/components/powered-by-brand.tsx b/web/app/components/custom/custom-web-app-brand/components/powered-by-brand.tsx
index 8a0feffbc45..51c0db53d75 100644
--- a/web/app/components/custom/custom-web-app-brand/components/powered-by-brand.tsx
+++ b/web/app/components/custom/custom-web-app-brand/components/powered-by-brand.tsx
@@ -20,7 +20,7 @@ const PoweredByBrand = ({
return (
<>
- <div className="text-text-tertiary system-2xs-medium-uppercase">POWERED BY</div>
+ <div className="system-2xs-medium-uppercase text-text-tertiary">POWERED BY</div>
{previewLogo
? <img src={previewLogo} alt="logo" className="block h-5 w-auto" />
: <DifyLogo size="small" />}
diff --git a/web/app/components/datasets/chunk.tsx b/web/app/components/datasets/chunk.tsx
index e0d820a4f3a..947f2859c4e 100644
--- a/web/app/components/datasets/chunk.tsx
+++ b/web/app/components/datasets/chunk.tsx
@@ -50,11 +50,11 @@ export const QAPreview: FC<QAPreviewProps> = (props) => {
return (
<div className="flex flex-col gap-y-2">
<div className="flex gap-x-1">
- <label className="shrink-0 text-[13px] font-medium leading-[20px] text-text-tertiary">Q</label>
+ <label className="shrink-0 text-[13px] leading-[20px] font-medium text-text-tertiary">Q</label>
<p className="body-md-regular text-text-secondary">{qa.question}</p>
</div>
<div className="flex gap-x-1">
- <label className="shrink-0 text-[13px] font-medium leading-[20px] text-text-tertiary">A</label>
+ <label className="shrink-0 text-[13px] leading-[20px] font-medium text-text-tertiary">A</label>
<p className="body-md-regular text-text-secondary">{qa.answer}</p>
</div>
</div>
diff --git a/web/app/components/datasets/common/image-list/more.tsx b/web/app/components/datasets/common/image-list/more.tsx
index be6b53a5a57..255e5e4d877 100644
--- a/web/app/components/datasets/common/image-list/more.tsx
+++ b/web/app/components/datasets/common/image-list/more.tsx
@@ -32,7 +32,7 @@ const More = ({ count, onClick }: MoreProps) => {
</span>
</div>
</div>
- <div className="absolute -right-0.5 top-1 z-0 h-6 w-1 rounded-r-md bg-divider-regular" />
+ <div className="absolute top-1 -right-0.5 z-0 h-6 w-1 rounded-r-md bg-divider-regular" />
</div>
)
}
diff --git a/web/app/components/datasets/common/retrieval-method-info/index.tsx b/web/app/components/datasets/common/retrieval-method-info/index.tsx
index 865db355cfa..c219a5c15f6 100644
--- a/web/app/components/datasets/common/retrieval-method-info/index.tsx
+++ b/web/app/components/datasets/common/retrieval-method-info/index.tsx
@@ -37,7 +37,7 @@ const EconomicalRetrievalMethodConfig: FC<Props> = ({
noRadio
chosenConfigWrapClassName="pb-3!"
chosenConfig={(
- <div className="flex flex-wrap text-xs font-normal leading-[18px]">
+ <div className="flex flex-wrap text-xs leading-[18px] font-normal">
{value.reranking_model.reranking_model_name && (
<div className="mr-8 flex space-x-1">
<div className="text-gray-500">{t('modelProvider.rerankModel.key', { ns: 'common' })}</div>
diff --git a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/header.tsx b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/header.tsx
index 5e4cb88c27c..cf759880be1 100644
--- a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/header.tsx
+++ b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/header.tsx
@@ -12,10 +12,10 @@ const Header = ({
const { t } = useTranslation()
return (
- <div className="title-2xl-semi-bold relative flex items-center justify-between pb-3 pl-6 pr-14 pt-6 text-text-primary">
+ <div className="relative flex items-center justify-between pt-6 pr-14 pb-3 pl-6 title-2xl-semi-bold text-text-primary">
{t('importFromDSL', { ns: 'app' })}
<div
- className="absolute right-5 top-5 flex size-8 cursor-pointer items-center"
+ className="absolute top-5 right-5 flex size-8 cursor-pointer items-center"
onClick={onClose}
>
<RiCloseLine className="size-[18px] text-text-tertiary" />
diff --git a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/tab/index.tsx b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/tab/index.tsx
index 76507de7c2f..125cd70737d 100644
--- a/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/tab/index.tsx
+++ b/web/app/components/datasets/create-from-pipeline/create-options/create-from-dsl-modal/tab/index.tsx
@@ -26,7 +26,7 @@ const Tab = ({
]
return (
- <div className="system-md-semibold flex h-9 items-center gap-x-6 border-b border-divider-subtle px-6 text-text-tertiary">
+ <div className="flex h-9 items-center gap-x-6 border-b border-divider-subtle px-6 system-md-semibold text-text-tertiary">
{
tabs.map(tab => (
<Item
diff --git a/web/app/components/datasets/create-from-pipeline/footer.tsx b/web/app/components/datasets/create-from-pipeline/footer.tsx
index ae1bb483946..dee48163d2c 100644
--- a/web/app/components/datasets/create-from-pipeline/footer.tsx
+++ b/web/app/components/datasets/create-from-pipeline/footer.tsx
@@ -39,11 +39,11 @@ const Footer = () => {
}, [invalidDatasetList])
return (
- <div className="absolute bottom-0 left-0 right-0 z-10 flex flex-col gap-y-4 bg-knowledge-pipeline-creation-footer-bg px-16 pb-6 backdrop-blur-[6px]">
+ <div className="absolute right-0 bottom-0 left-0 z-10 flex flex-col gap-y-4 bg-knowledge-pipeline-creation-footer-bg px-16 pb-6 backdrop-blur-[6px]">
<Divider type="horizontal" className="my-0 w-8" />
<button
type="button"
- className="system-md-medium flex items-center gap-x-3 text-text-accent"
+ className="flex items-center gap-x-3 system-md-medium text-text-accent"
onClick={openImportFromDSL}
>
<RiFileUploadLine className="size-5" />
diff --git a/web/app/components/datasets/create-from-pipeline/index.tsx b/web/app/components/datasets/create-from-pipeline/index.tsx
index 0c788f613d7..f5b5c2ec8bf 100644
--- a/web/app/components/datasets/create-from-pipeline/index.tsx
+++ b/web/app/components/datasets/create-from-pipeline/index.tsx
@@ -9,7 +9,7 @@ const CreateFromPipeline = () => {
<div
className="relative flex h-[calc(100vh-56px)] flex-col overflow-hidden rounded-t-2xl border-t border-effects-highlight bg-background-default-subtle"
>
- <Effect className="left-8 top-[-34px] opacity-20" />
+ <Effect className="top-[-34px] left-8 opacity-20" />
<Header />
<List />
<Footer />
diff --git a/web/app/components/datasets/create-from-pipeline/list/customized-list.tsx b/web/app/components/datasets/create-from-pipeline/list/customized-list.tsx
index b14a42c489d..e7f2f4156c8 100644
--- a/web/app/components/datasets/create-from-pipeline/list/customized-list.tsx
+++ b/web/app/components/datasets/create-from-pipeline/list/customized-list.tsx
@@ -12,7 +12,7 @@ const CustomizedList = () => {
return (
<>
- <div className="system-sm-semibold-uppercase pt-2 text-text-tertiary">{t('templates.customized', { ns: 'datasetPipeline' })}</div>
+ <div className="pt-2 system-sm-semibold-uppercase text-text-tertiary">{t('templates.customized', { ns: 'datasetPipeline' })}</div>
<div className="grid grid-cols-1 gap-3 py-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
{list.map((pipeline, index) => (
<TemplateCard
diff --git a/web/app/components/datasets/create-from-pipeline/list/index.tsx b/web/app/components/datasets/create-from-pipeline/list/index.tsx
index 7b56e12b749..baad1318b3d 100644
--- a/web/app/components/datasets/create-from-pipeline/list/index.tsx
+++ b/web/app/components/datasets/create-from-pipeline/list/index.tsx
@@ -3,7 +3,7 @@ import CustomizedList from './customized-list'
const List = () => {
return (
- <div className="grow gap-y-1 overflow-y-auto px-16 pb-[60px] pt-1">
+ <div className="grow gap-y-1 overflow-y-auto px-16 pt-1 pb-[60px]">
<BuiltInPipelineList />
<CustomizedList />
</div>
diff --git a/web/app/components/datasets/create-from-pipeline/list/template-card/content.tsx b/web/app/components/datasets/create-from-pipeline/list/template-card/content.tsx
index 31c6ea1a82d..b4091f65ef6 100644
--- a/web/app/components/datasets/create-from-pipeline/list/template-card/content.tsx
+++ b/web/app/components/datasets/create-from-pipeline/list/template-card/content.tsx
@@ -32,13 +32,13 @@ const Content = ({
background={iconInfo.icon_type === 'image' ? undefined : iconInfo.icon_background}
imageUrl={iconInfo.icon_type === 'image' ? iconInfo.icon_url : undefined}
/>
- <div className="absolute -bottom-1 -right-1 z-10">
+ <div className="absolute -right-1 -bottom-1 z-10">
<Icon className="size-4" />
</div>
</div>
<div className="flex grow flex-col gap-y-1 overflow-hidden py-px">
<div
- className="system-md-semibold truncate text-text-secondary"
+ className="truncate system-md-semibold text-text-secondary"
title={name}
>
{name}
@@ -49,7 +49,7 @@ const Content = ({
</div>
</div>
<p
- className="system-xs-regular line-clamp-3 grow px-4 py-1 text-text-tertiary"
+ className="line-clamp-3 grow px-4 py-1 system-xs-regular text-text-tertiary"
title={description}
>
{description}
diff --git a/web/app/components/datasets/create/step-one/upgrade-card.tsx b/web/app/components/datasets/create/step-one/upgrade-card.tsx
index 356e15ed432..e7016206ea3 100644
--- a/web/app/components/datasets/create/step-one/upgrade-card.tsx
+++ b/web/app/components/datasets/create/step-one/upgrade-card.tsx
@@ -15,9 +15,9 @@ const UpgradeCard: FC = () => {
}, [setShowPricingModal])
return (
- <div className="flex items-center justify-between rounded-xl border-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg py-3 pl-4 pr-3.5 shadow-xs backdrop-blur-[5px] ">
+ <div className="flex items-center justify-between rounded-xl border-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg py-3 pr-3.5 pl-4 shadow-xs backdrop-blur-[5px]">
<div>
- <div className="title-md-semi-bold bg-[linear-gradient(92deg,var(--components-input-border-active-prompt-1,#0BA5EC)_0%,var(--components-input-border-active-prompt-2,#155AEF)_99.21%)] bg-clip-text text-transparent">{t('upgrade.uploadMultipleFiles.title', { ns: 'billing' })}</div>
+ <div className="bg-[linear-gradient(92deg,var(--components-input-border-active-prompt-1,#0BA5EC)_0%,var(--components-input-border-active-prompt-2,#155AEF)_99.21%)] bg-clip-text title-md-semi-bold text-transparent">{t('upgrade.uploadMultipleFiles.title', { ns: 'billing' })}</div>
<div className="system-xs-regular text-text-tertiary">{t('upgrade.uploadMultipleFiles.description', { ns: 'billing' })}</div>
</div>
<UpgradeBtn
diff --git a/web/app/components/datasets/create/step-two/preview-item/index.tsx b/web/app/components/datasets/create/step-two/preview-item/index.tsx
index 87978508884..75ccadbec78 100644
--- a/web/app/components/datasets/create/step-two/preview-item/index.tsx
+++ b/web/app/components/datasets/create/step-two/preview-item/index.tsx
@@ -46,7 +46,7 @@ const PreviewItem: FC<IPreviewItemProps> = ({
return (
<div className="rounded-xl bg-gray-50 p-4">
<div className="flex h-5 items-center justify-between text-xs text-gray-500">
- <div className="box-border flex h-[18px] items-center space-x-1 rounded-md border border-gray-200 pl-1 pr-1.5 font-medium italic">
+ <div className="box-border flex h-[18px] items-center space-x-1 rounded-md border border-gray-200 pr-1.5 pl-1 font-medium italic">
{sharpIcon}
<span>{formattedIndex}</span>
</div>
diff --git a/web/app/components/datasets/create/website/base/input.tsx b/web/app/components/datasets/create/website/base/input.tsx
index 49b01c610bc..a9c42a6b7c5 100644
--- a/web/app/components/datasets/create/website/base/input.tsx
+++ b/web/app/components/datasets/create/website/base/input.tsx
@@ -51,8 +51,8 @@ const Input: FC<Props> = ({
{...otherOption}
value={value}
onChange={handleChange}
- className="system-xs-regular focus:bg-components-inout-border-active flex h-8 w-full rounded-lg border border-transparent
- bg-components-input-bg-normal p-2 text-components-input-text-filled
+ 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
diff --git a/web/app/components/datasets/documents/components/list.tsx b/web/app/components/datasets/documents/components/list.tsx
index e40e4c061bb..abd40c33a05 100644
--- a/web/app/components/datasets/documents/components/list.tsx
+++ b/web/app/components/datasets/documents/components/list.tsx
@@ -117,8 +117,8 @@ const DocumentList: FC<DocumentListProps> = ({
return (
<div className="relative mt-3 flex h-full w-full flex-col">
<div className="relative h-0 grow overflow-x-auto">
- <table className={`w-full min-w-[700px] max-w-full border-collapse border-0 text-sm ${s.documentTable}`}>
- <thead className="h-8 border-b border-divider-subtle text-xs font-medium uppercase leading-8 text-text-tertiary">
+ <table className={`w-full max-w-full min-w-[700px] border-collapse border-0 text-sm ${s.documentTable}`}>
+ <thead className="h-8 border-b border-divider-subtle text-xs leading-8 font-medium text-text-tertiary uppercase">
<tr>
<td className="w-12">
<div className="flex items-center" onClick={e => e.stopPropagation()}>
diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/base/credential-selector/item.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/base/credential-selector/item.tsx
index 4d54a04d1fa..b162411f6ce 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/base/credential-selector/item.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/base/credential-selector/item.tsx
@@ -31,7 +31,7 @@ const Item = ({
name={name}
size={20}
/>
- <span className="system-sm-medium grow truncate text-text-secondary">
+ <span className="grow truncate system-sm-medium text-text-secondary">
{name}
</span>
{
diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-documents/title.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-documents/title.tsx
index 4f555f3e1f2..2d4eb81212d 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-documents/title.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-documents/title.tsx
@@ -11,7 +11,7 @@ const Title = ({
const { t } = useTranslation()
return (
- <div className="system-sm-medium px-[5px] py-1 text-text-secondary">
+ <div className="px-[5px] py-1 system-sm-medium text-text-secondary">
{t('onlineDocument.pageSelectorTitle', { ns: 'datasetPipeline', name })}
</div>
)
diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/dropdown/item.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/dropdown/item.tsx
index 864cade85ca..6f04ede88a1 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/dropdown/item.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/header/breadcrumbs/dropdown/item.tsx
@@ -18,7 +18,7 @@ const Item = ({
return (
<div
- className="system-md-regular rounded-lg px-3 py-1.5 text-text-secondary hover:bg-state-base-hover"
+ className="rounded-lg px-3 py-1.5 system-md-regular text-text-secondary hover:bg-state-base-hover"
onClick={handleClick}
>
{name}
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 91d3acc1d14..1dfa0443d01 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
@@ -83,7 +83,7 @@ const Breadcrumbs = ({
return (
<div className="flex grow items-center overflow-hidden">
{showSearchResult && (
- <div className="system-sm-medium text-test-secondary px-[5px]">
+ <div className="text-test-secondary px-[5px] system-sm-medium">
{t('onlineDrive.breadcrumbs.searchResult', {
ns: 'datasetPipeline',
searchResultsLength,
@@ -92,7 +92,7 @@ const Breadcrumbs = ({
</div>
)}
{!showSearchResult && showBucketListTitle && (
- <div className="system-sm-medium text-test-secondary px-[5px]">
+ <div className="text-test-secondary px-[5px] system-sm-medium">
{t('onlineDrive.breadcrumbs.allBuckets', { ns: 'datasetPipeline' })}
</div>
)}
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 6e1b567bd65..d8cee8b0406 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
@@ -29,12 +29,12 @@ const FilePreview = ({
}, [file])
return (
- <div className="flex h-full w-full flex-col rounded-t-xl border-l border-t border-components-panel-border bg-background-default-lighter shadow-md shadow-shadow-shadow-5">
- <div className="flex gap-x-2 border-b border-divider-subtle pb-3 pl-6 pr-4 pt-4">
+ <div className="flex h-full w-full flex-col rounded-t-xl border-t border-l border-components-panel-border bg-background-default-lighter shadow-md shadow-shadow-shadow-5">
+ <div className="flex gap-x-2 border-b border-divider-subtle pt-4 pr-4 pb-3 pl-6">
<div className="flex grow flex-col gap-y-1">
<div className="system-2xs-semibold-uppercase text-text-accent">{t('addDocuments.stepOne.preview', { ns: 'datasetPipeline' })}</div>
- <div className="title-md-semi-bold text-tex-primary">{`${fileName}.${file.extension || ''}`}</div>
- <div className="system-xs-medium flex items-center gap-x-1 text-text-tertiary">
+ <div className="text-tex-primary 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"
name={file.name}
@@ -65,7 +65,7 @@ const FilePreview = ({
</div>
)}
{!isFetching && fileData && (
- <div className="body-md-regular grow overflow-hidden px-6 py-5 text-text-secondary">
+ <div className="grow overflow-hidden px-6 py-5 body-md-regular text-text-secondary">
{fileData.content}
</div>
)}
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 ff2f9f46a45..3e9b409a70f 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
@@ -50,12 +50,12 @@ const OnlineDocumentPreview = ({
}, [currentPage.page_id])
return (
- <div className="flex h-full w-full flex-col rounded-t-xl border-l border-t border-components-panel-border bg-background-default-lighter shadow-md shadow-shadow-shadow-5">
- <div className="flex gap-x-2 border-b border-divider-subtle pb-3 pl-6 pr-4 pt-4">
+ <div className="flex h-full w-full flex-col rounded-t-xl border-t border-l border-components-panel-border bg-background-default-lighter shadow-md shadow-shadow-shadow-5">
+ <div className="flex gap-x-2 border-b border-divider-subtle pt-4 pr-4 pb-3 pl-6">
<div className="flex grow flex-col gap-y-1">
<div className="system-2xs-semibold-uppercase text-text-accent">{t('addDocuments.stepOne.preview', { ns: 'datasetPipeline' })}</div>
- <div className="title-md-semi-bold text-tex-primary">{currentPage?.page_name}</div>
- <div className="system-xs-medium flex items-center gap-x-1 text-text-tertiary">
+ <div className="text-tex-primary 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>
<span>·</span>
@@ -76,7 +76,7 @@ const OnlineDocumentPreview = ({
</div>
)}
{!isPending && content && (
- <div className="body-md-regular grow overflow-hidden px-6 py-5 text-text-secondary">
+ <div className="grow overflow-hidden px-6 py-5 body-md-regular text-text-secondary">
<Markdown content={content} />
</div>
)}
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 a527f12c0dc..f83d68902f7 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
@@ -17,12 +17,12 @@ const WebsitePreview = ({
const { t } = useTranslation()
return (
- <div className="flex h-full w-full flex-col rounded-t-xl border-l border-t border-components-panel-border bg-background-default-lighter shadow-md shadow-shadow-shadow-5">
- <div className="flex gap-x-2 border-b border-divider-subtle pb-3 pl-6 pr-4 pt-4">
+ <div className="flex h-full w-full flex-col rounded-t-xl border-t border-l border-components-panel-border bg-background-default-lighter shadow-md shadow-shadow-shadow-5">
+ <div className="flex gap-x-2 border-b border-divider-subtle pt-4 pr-4 pb-3 pl-6">
<div className="flex grow flex-col gap-y-1">
<div className="system-2xs-semibold-uppercase">{t('addDocuments.stepOne.preview', { ns: 'datasetPipeline' })}</div>
- <div className="title-md-semi-bold text-tex-primary">{currentWebsite.title}</div>
- <div className="system-xs-medium flex gap-x-1 text-text-tertiary">
+ <div className="text-tex-primary 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}>{currentWebsite.source_url}</span>
<span>·</span>
@@ -38,7 +38,7 @@ const WebsitePreview = ({
<RiCloseLine className="size-[18px]" />
</button>
</div>
- <div className="body-md-regular grow overflow-hidden px-6 py-5 text-text-secondary">
+ <div className="grow overflow-hidden px-6 py-5 body-md-regular text-text-secondary">
{currentWebsite.markdown}
</div>
</div>
diff --git a/web/app/components/datasets/documents/create-from-pipeline/steps/preview-panel.tsx b/web/app/components/datasets/documents/create-from-pipeline/steps/preview-panel.tsx
index 7687345664b..392d28bb9e8 100644
--- a/web/app/components/datasets/documents/create-from-pipeline/steps/preview-panel.tsx
+++ b/web/app/components/datasets/documents/create-from-pipeline/steps/preview-panel.tsx
@@ -30,7 +30,7 @@ export const StepOnePreview = memo(({
}: StepOnePreviewProps) => {
return (
<div className="h-full min-w-0 flex-1">
- <div className="flex h-full flex-col pl-2 pt-2">
+ <div className="flex h-full flex-col pt-2 pl-2">
{currentLocalFile && (
<FilePreview
file={currentLocalFile}
@@ -89,7 +89,7 @@ export const StepTwoPreview = memo(({
}: StepTwoPreviewProps) => {
return (
<div className="h-full min-w-0 flex-1">
- <div className="flex h-full flex-col pl-2 pt-2">
+ <div className="flex h-full flex-col pt-2 pl-2">
<ChunkPreview
dataSourceType={datasourceType as DatasourceType}
localFiles={localFileList.map(file => file.file)}
diff --git a/web/app/components/datasets/documents/detail/batch-modal/csv-downloader.tsx b/web/app/components/datasets/documents/detail/batch-modal/csv-downloader.tsx
index 83008b7d40a..0ef734b0793 100644
--- a/web/app/components/datasets/documents/detail/batch-modal/csv-downloader.tsx
+++ b/web/app/components/datasets/documents/detail/batch-modal/csv-downloader.tsx
@@ -55,30 +55,30 @@ const CSVDownload: FC<{ docForm: ChunkingMode }> = ({ docForm }) => {
<table className="w-full table-fixed border-separate border-spacing-0 rounded-lg border border-divider-subtle text-xs">
<thead className="text-text-secondary">
<tr>
- <td className="h-9 border-b border-divider-subtle pl-3 pr-2">{t('list.batchModal.question', { ns: 'datasetDocuments' })}</td>
- <td className="h-9 border-b border-divider-subtle pl-3 pr-2">{t('list.batchModal.answer', { ns: 'datasetDocuments' })}</td>
+ <td className="h-9 border-b border-divider-subtle pr-2 pl-3">{t('list.batchModal.question', { ns: 'datasetDocuments' })}</td>
+ <td className="h-9 border-b border-divider-subtle pr-2 pl-3">{t('list.batchModal.answer', { ns: 'datasetDocuments' })}</td>
</tr>
</thead>
<tbody className="text-text-tertiary">
<tr>
- <td className="h-9 border-b border-divider-subtle pl-3 pr-2 text-[13px]">
+ <td className="h-9 border-b border-divider-subtle pr-2 pl-3 text-[13px]">
{t('list.batchModal.question', { ns: 'datasetDocuments' })}
{' '}
1
</td>
- <td className="h-9 border-b border-divider-subtle pl-3 pr-2 text-[13px]">
+ <td className="h-9 border-b border-divider-subtle pr-2 pl-3 text-[13px]">
{t('list.batchModal.answer', { ns: 'datasetDocuments' })}
{' '}
1
</td>
</tr>
<tr>
- <td className="h-9 pl-3 pr-2 text-[13px]">
+ <td className="h-9 pr-2 pl-3 text-[13px]">
{t('list.batchModal.question', { ns: 'datasetDocuments' })}
{' '}
2
</td>
- <td className="h-9 pl-3 pr-2 text-[13px]">
+ <td className="h-9 pr-2 pl-3 text-[13px]">
{t('list.batchModal.answer', { ns: 'datasetDocuments' })}
{' '}
2
@@ -91,19 +91,19 @@ const CSVDownload: FC<{ docForm: ChunkingMode }> = ({ docForm }) => {
<table className="w-full table-fixed border-separate border-spacing-0 rounded-lg border border-divider-subtle text-xs">
<thead className="text-text-secondary">
<tr>
- <td className="h-9 border-b border-divider-subtle pl-3 pr-2">{t('list.batchModal.contentTitle', { ns: 'datasetDocuments' })}</td>
+ <td className="h-9 border-b border-divider-subtle pr-2 pl-3">{t('list.batchModal.contentTitle', { ns: 'datasetDocuments' })}</td>
</tr>
</thead>
<tbody className="text-text-tertiary">
<tr>
- <td className="h-9 border-b border-divider-subtle pl-3 pr-2 text-[13px]">
+ <td className="h-9 border-b border-divider-subtle pr-2 pl-3 text-[13px]">
{t('list.batchModal.content', { ns: 'datasetDocuments' })}
{' '}
1
</td>
</tr>
<tr>
- <td className="h-9 pl-3 pr-2 text-[13px]">
+ <td className="h-9 pr-2 pl-3 text-[13px]">
{t('list.batchModal.content', { ns: 'datasetDocuments' })}
{' '}
2
diff --git a/web/app/components/datasets/documents/detail/completed/common/empty.tsx b/web/app/components/datasets/documents/detail/completed/common/empty.tsx
index c212a55c864..d4c9d8ea0b0 100644
--- a/web/app/components/datasets/documents/detail/completed/common/empty.tsx
+++ b/web/app/components/datasets/documents/detail/completed/common/empty.tsx
@@ -48,30 +48,30 @@ const Empty: FC<IEmptyProps> = ({
<div className="flex flex-col items-center">
<div className="relative z-10 flex h-14 w-14 items-center justify-center rounded-xl border border-divider-subtle bg-components-card-bg shadow-lg shadow-shadow-shadow-5">
<RiFileList2Line className="h-6 w-6 text-text-secondary" />
- <Line className="absolute -right-px top-1/2 -translate-y-1/2" />
- <Line className="absolute -left-px top-1/2 -translate-y-1/2" />
- <Line className="absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 rotate-90" />
- <Line className="absolute left-1/2 top-full -translate-x-1/2 -translate-y-1/2 rotate-90" />
+ <Line className="absolute top-1/2 -right-px -translate-y-1/2" />
+ <Line className="absolute top-1/2 -left-px -translate-y-1/2" />
+ <Line className="absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 rotate-90" />
+ <Line className="absolute top-full left-1/2 -translate-x-1/2 -translate-y-1/2 rotate-90" />
</div>
- <div className="system-md-regular mt-3 text-text-tertiary">
+ <div className="mt-3 system-md-regular text-text-tertiary">
{t('segment.empty', { ns: 'datasetDocuments' })}
</div>
<button
type="button"
- className="system-sm-medium mt-1 text-text-accent"
+ className="mt-1 system-sm-medium text-text-accent"
onClick={onClearFilter}
>
{t('segment.clearFilter', { ns: 'datasetDocuments' })}
</button>
</div>
- <div className="absolute left-0 top-0 -z-20 flex h-full w-full flex-col gap-y-3 overflow-hidden">
+ <div className="absolute top-0 left-0 -z-20 flex h-full w-full flex-col gap-y-3 overflow-hidden">
{
Array.from({ length: 10 }).map((_, i) => (
<EmptyCard key={i} />
))
}
</div>
- <div className="absolute left-0 top-0 -z-10 h-full w-full bg-dataset-chunk-list-mask-bg" />
+ <div className="absolute top-0 left-0 -z-10 h-full w-full bg-dataset-chunk-list-mask-bg" />
</div>
)
}
diff --git a/web/app/components/datasets/documents/detail/completed/components/menu-bar.tsx b/web/app/components/datasets/documents/detail/completed/components/menu-bar.tsx
index 57a903f5c72..156137cd3a1 100644
--- a/web/app/components/datasets/documents/detail/completed/components/menu-bar.tsx
+++ b/web/app/components/datasets/documents/detail/completed/components/menu-bar.tsx
@@ -47,7 +47,7 @@ const MenuBar: FC<MenuBarProps> = ({
onCheck={onSelectedAll}
disabled={isLoading}
/>
- <div className="system-sm-semibold-uppercase flex-1 pl-5 text-text-secondary">{totalText}</div>
+ <div className="flex-1 pl-5 system-sm-semibold-uppercase text-text-secondary">{totalText}</div>
<SimpleSelect
onSelect={onChangeStatus}
items={statusList}
diff --git a/web/app/components/datasets/documents/detail/completed/skeleton/full-doc-list-skeleton.tsx b/web/app/components/datasets/documents/detail/completed/skeleton/full-doc-list-skeleton.tsx
index 9f9f51b55ba..388f2f85deb 100644
--- a/web/app/components/datasets/documents/detail/completed/skeleton/full-doc-list-skeleton.tsx
+++ b/web/app/components/datasets/documents/detail/completed/skeleton/full-doc-list-skeleton.tsx
@@ -16,7 +16,7 @@ Slice.displayName = 'Slice'
const FullDocListSkeleton = () => {
return (
<div className="relative z-10 flex w-full grow flex-col gap-y-3 overflow-y-hidden">
- <div className="absolute bottom-14 left-0 top-0 z-20 h-full w-full bg-dataset-chunk-list-mask-bg" />
+ <div className="absolute top-0 bottom-14 left-0 z-20 h-full w-full bg-dataset-chunk-list-mask-bg" />
{Array.from({ length: 15 }).map((_, index) => <Slice key={index} />)}
</div>
)
diff --git a/web/app/components/datasets/documents/detail/completed/skeleton/general-list-skeleton.tsx b/web/app/components/datasets/documents/detail/completed/skeleton/general-list-skeleton.tsx
index 118a39ef567..c8e581fa1f9 100644
--- a/web/app/components/datasets/documents/detail/completed/skeleton/general-list-skeleton.tsx
+++ b/web/app/components/datasets/documents/detail/completed/skeleton/general-list-skeleton.tsx
@@ -49,7 +49,7 @@ CardSkelton.displayName = 'CardSkelton'
const GeneralListSkeleton = () => {
return (
<div className="relative z-10 flex grow flex-col overflow-y-hidden">
- <div className="absolute left-0 top-0 z-20 h-full w-full bg-dataset-chunk-list-mask-bg" />
+ <div className="absolute top-0 left-0 z-20 h-full w-full bg-dataset-chunk-list-mask-bg" />
{Array.from({ length: 10 }).map((_, index) => {
return (
<div key={index} className="flex items-start gap-x-2">
diff --git a/web/app/components/datasets/documents/detail/completed/skeleton/paragraph-list-skeleton.tsx b/web/app/components/datasets/documents/detail/completed/skeleton/paragraph-list-skeleton.tsx
index 9af0543fb6e..f2c4c9e6c48 100644
--- a/web/app/components/datasets/documents/detail/completed/skeleton/paragraph-list-skeleton.tsx
+++ b/web/app/components/datasets/documents/detail/completed/skeleton/paragraph-list-skeleton.tsx
@@ -36,7 +36,7 @@ const CardSkelton = React.memo(() => {
</SkeletonContainer>
<SkeletonContainer className="p-1 pb-2">
<SkeletonRow>
- <SkeletonRow className="h-7 gap-x-0.5 rounded-lg bg-dataset-child-chunk-expand-btn-bg pl-1 pr-3">
+ <SkeletonRow className="h-7 gap-x-0.5 rounded-lg bg-dataset-child-chunk-expand-btn-bg pr-3 pl-1">
<RiArrowRightSLine className="h-4 w-4 text-text-secondary opacity-20" />
<SkeletonRectangle className="w-32 bg-text-quaternary" />
</SkeletonRow>
@@ -51,7 +51,7 @@ CardSkelton.displayName = 'CardSkelton'
const ParagraphListSkeleton = () => {
return (
<div className="relative z-10 flex h-full flex-col overflow-y-hidden">
- <div className="absolute left-0 top-0 z-20 h-full w-full bg-dataset-chunk-list-mask-bg" />
+ <div className="absolute top-0 left-0 z-20 h-full w-full bg-dataset-chunk-list-mask-bg" />
{Array.from({ length: 10 }).map((_, index) => {
return (
<div key={index} className="flex items-start gap-x-2">
diff --git a/web/app/components/datasets/documents/detail/completed/skeleton/parent-chunk-card-skeleton.tsx b/web/app/components/datasets/documents/detail/completed/skeleton/parent-chunk-card-skeleton.tsx
index 376d7f3cc86..4c3fe9d0bdf 100644
--- a/web/app/components/datasets/documents/detail/completed/skeleton/parent-chunk-card-skeleton.tsx
+++ b/web/app/components/datasets/documents/detail/completed/skeleton/parent-chunk-card-skeleton.tsx
@@ -32,7 +32,7 @@ const ParentChunkCardSkelton = () => {
</SkeletonContainer>
</SkeletonContainer>
<div className="mt-0.5 flex items-center px-3">
- <button type="button" className="system-xs-semibold-uppercase pt-0.5 text-components-button-secondary-accent-text-disabled" disabled>
+ <button type="button" className="pt-0.5 system-xs-semibold-uppercase text-components-button-secondary-accent-text-disabled" disabled>
{t('operation.viewMore', { ns: 'common' })}
</button>
</div>
diff --git a/web/app/components/datasets/documents/detail/embedding/components/status-header.tsx b/web/app/components/datasets/documents/detail/embedding/components/status-header.tsx
index e72f0553b52..0c07abae944 100644
--- a/web/app/components/datasets/documents/detail/embedding/components/status-header.tsx
+++ b/web/app/components/datasets/documents/detail/embedding/components/status-header.tsx
@@ -46,7 +46,7 @@ const StatusHeader: FC<StatusHeaderProps> = React.memo(({
return (
<div className="flex h-6 items-center gap-x-1">
{isEmbedding && <RiLoader2Line className="h-4 w-4 animate-spin text-text-secondary" />}
- <span className="system-md-semibold-uppercase grow text-text-secondary">
+ <span className="grow system-md-semibold-uppercase text-text-secondary">
{getStatusText()}
</span>
{isEmbedding && (
@@ -57,7 +57,7 @@ const StatusHeader: FC<StatusHeaderProps> = React.memo(({
disabled={isPauseLoading}
>
<RiPauseCircleLine className="h-3.5 w-3.5 text-components-button-secondary-text" />
- <span className="system-xs-medium pr-[3px] text-components-button-secondary-text">
+ <span className="pr-[3px] system-xs-medium text-components-button-secondary-text">
{t('embedding.pause', { ns: 'datasetDocuments' })}
</span>
</button>
@@ -70,7 +70,7 @@ const StatusHeader: FC<StatusHeaderProps> = React.memo(({
disabled={isResumeLoading}
>
<RiPlayCircleLine className="h-3.5 w-3.5 text-components-button-secondary-text" />
- <span className="system-xs-medium pr-[3px] text-components-button-secondary-text">
+ <span className="pr-[3px] system-xs-medium text-components-button-secondary-text">
{t('embedding.resume', { ns: 'datasetDocuments' })}
</span>
</button>
diff --git a/web/app/components/datasets/documents/detail/embedding/skeleton/index.tsx b/web/app/components/datasets/documents/detail/embedding/skeleton/index.tsx
index 469d928eaa7..767d3a68ce6 100644
--- a/web/app/components/datasets/documents/detail/embedding/skeleton/index.tsx
+++ b/web/app/components/datasets/documents/detail/embedding/skeleton/index.tsx
@@ -48,7 +48,7 @@ CardSkelton.displayName = 'CardSkelton'
const EmbeddingSkeleton = () => {
return (
<div className="relative z-10 flex grow flex-col overflow-y-hidden">
- <div className="absolute left-0 top-0 z-20 h-full w-full bg-dataset-chunk-list-mask-bg" />
+ <div className="absolute top-0 left-0 z-20 h-full w-full bg-dataset-chunk-list-mask-bg" />
{Array.from({ length: 5 }).map((_, index) => {
return (
<div key={index} className="w-full px-11">
diff --git a/web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx b/web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx
index 4c9dd641e30..28706c221f3 100644
--- a/web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx
+++ b/web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx
@@ -185,7 +185,7 @@ const PipelineSettings = ({
</div>
{/* Preview */}
<div className="h-full min-w-0 flex-1">
- <div className="flex h-full flex-col pl-2 pt-2">
+ <div className="flex h-full flex-col pt-2 pl-2">
<ChunkPreview
dataSourceType={lastRunData!.datasource_type}
localFiles={files}
diff --git a/web/app/components/datasets/external-knowledge-base/create/ExternalApiSelect.tsx b/web/app/components/datasets/external-knowledge-base/create/ExternalApiSelect.tsx
index a527da982a0..f0b22ad448f 100644
--- a/web/app/components/datasets/external-knowledge-base/create/ExternalApiSelect.tsx
+++ b/web/app/components/datasets/external-knowledge-base/create/ExternalApiSelect.tsx
@@ -69,7 +69,7 @@ const ExternalApiSelect: React.FC<ExternalApiSelectProps> = ({ items, value, onS
<div className="flex items-center gap-2 self-stretch rounded-lg p-1">
<ApiConnectionMod className="h-4 w-4 text-text-secondary" />
<div className="flex grow items-center">
- <span className="system-sm-regular overflow-hidden text-ellipsis text-components-input-text-filled">{selectedItem.name}</span>
+ <span className="overflow-hidden system-sm-regular text-ellipsis text-components-input-text-filled">{selectedItem.name}</span>
</div>
</div>
)
@@ -88,8 +88,8 @@ const ExternalApiSelect: React.FC<ExternalApiSelectProps> = ({ items, value, onS
>
<div className="flex w-full items-center gap-2 self-stretch rounded-lg p-2 hover:bg-state-base-hover">
<ApiConnectionMod className="h-4 w-4 text-text-secondary" />
- <span className="system-sm-medium grow overflow-hidden text-ellipsis text-text-secondary">{item.name}</span>
- <span className="system-xs-regular overflow-hidden text-ellipsis text-right text-text-tertiary">{item.url}</span>
+ <span className="grow overflow-hidden system-sm-medium text-ellipsis text-text-secondary">{item.name}</span>
+ <span className="overflow-hidden text-right system-xs-regular text-ellipsis text-text-tertiary">{item.url}</span>
</div>
</div>
))}
@@ -99,7 +99,7 @@ const ExternalApiSelect: React.FC<ExternalApiSelectProps> = ({ items, value, onS
onClick={handleAddNewAPI}
>
<RiAddLine className="h-4 w-4 text-text-secondary" />
- <span className="system-sm-medium grow overflow-hidden text-ellipsis text-text-secondary">{t('createNewExternalAPI', { ns: 'dataset' })}</span>
+ <span className="grow overflow-hidden system-sm-medium text-ellipsis text-text-secondary">{t('createNewExternalAPI', { ns: 'dataset' })}</span>
</div>
</div>
</div>
diff --git a/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx b/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx
index 61b37a0a1d1..83888c6e42c 100644
--- a/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx
+++ b/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx
@@ -7,24 +7,24 @@ const InfoPanel = () => {
const docLink = useDocLink()
return (
- <div className="flex w-[360px] flex-col items-start pb-2 pr-8 pt-[108px]">
+ <div className="flex w-[360px] flex-col items-start pt-[108px] pr-8 pb-2">
<div className="flex w-full min-w-[240px] flex-col items-start gap-3 self-stretch rounded-xl bg-background-section p-6">
<div className="flex h-10 w-10 grow items-center justify-center gap-2 self-stretch rounded-lg border-[0.5px] border-components-card-border bg-components-card-bg p-1">
<RiBookOpenLine className="h-5 w-5 text-text-accent" />
</div>
<p className="flex flex-col items-start gap-2 self-stretch">
- <span className="system-xl-semibold self-stretch text-text-secondary">
+ <span className="self-stretch system-xl-semibold text-text-secondary">
{t('connectDatasetIntro.title', { ns: 'dataset' })}
</span>
<span className="system-sm-regular text-text-tertiary">
{t('connectDatasetIntro.content.front', { ns: 'dataset' })}
- <a className="system-sm-regular ml-1 text-text-accent" href={docLink('/use-dify/knowledge/external-knowledge-api')} target="_blank" rel="noopener noreferrer">
+ <a className="ml-1 system-sm-regular text-text-accent" href={docLink('/use-dify/knowledge/external-knowledge-api')} target="_blank" rel="noopener noreferrer">
{t('connectDatasetIntro.content.link', { ns: 'dataset' })}
</a>
{t('connectDatasetIntro.content.end', { ns: 'dataset' })}
</span>
<a
- className="system-sm-regular self-stretch text-text-accent"
+ className="self-stretch system-sm-regular text-text-accent"
href={docLink('/use-dify/knowledge/connect-external-knowledge-base')}
target="_blank"
rel="noopener noreferrer"
diff --git a/web/app/components/datasets/extra-info/statistics.tsx b/web/app/components/datasets/extra-info/statistics.tsx
index 18a66849af9..f02db4c5dc4 100644
--- a/web/app/components/datasets/extra-info/statistics.tsx
+++ b/web/app/components/datasets/extra-info/statistics.tsx
@@ -25,7 +25,7 @@ const Statistics = ({
return (
<div className="flex items-center gap-x-0.5 p-2 pb-0">
- <div className="flex grow flex-col px-2 pb-1.5 pt-1">
+ <div className="flex grow flex-col px-2 pt-1 pb-1.5">
<div className="system-md-semibold-uppercase text-text-secondary">
{documentCount ?? '--'}
</div>
@@ -33,10 +33,10 @@ const Statistics = ({
{t('datasetMenus.documents', { ns: 'common' })}
</div>
</div>
- <div className="py-2 pl-0.5 pr-1.5">
+ <div className="py-2 pr-1.5 pl-0.5">
<Divider className="text-test-divider-regular h-full w-fit" />
</div>
- <div className="flex grow flex-col px-2 pb-1.5 pt-1">
+ <div className="flex grow flex-col px-2 pt-1 pb-1.5">
<div className="system-md-semibold-uppercase text-text-secondary">
{relatedAppsTotal ?? '--'}
</div>
@@ -55,7 +55,7 @@ const Statistics = ({
: <NoLinkedAppsPanel />
}
>
- <div className="system-2xs-medium-uppercase flex cursor-pointer items-center gap-x-0.5 text-text-tertiary">
+ <div className="flex cursor-pointer items-center gap-x-0.5 system-2xs-medium-uppercase text-text-tertiary">
<span>{t('datasetMenus.relatedApp', { ns: 'common' })}</span>
<RiInformation2Line className="size-3" />
</div>
diff --git a/web/app/components/datasets/hit-testing/components/child-chunks-item.tsx b/web/app/components/datasets/hit-testing/components/child-chunks-item.tsx
index bca73994bd2..dccf868b30c 100644
--- a/web/app/components/datasets/hit-testing/components/child-chunks-item.tsx
+++ b/web/app/components/datasets/hit-testing/components/child-chunks-item.tsx
@@ -20,7 +20,7 @@ const ChildChunks: FC<Props> = ({
className={!isShowAll ? 'line-clamp-2 break-all' : ''}
>
<div className="relative top-[-2px] inline-flex items-center">
- <div className="system-2xs-semibold-uppercase flex h-[20.5px] items-center bg-state-accent-solid px-1 text-text-primary-on-surface">
+ <div className="flex h-[20.5px] items-center bg-state-accent-solid px-1 system-2xs-semibold-uppercase text-text-primary-on-surface">
C-
{position}
</div>
diff --git a/web/app/components/datasets/hit-testing/components/result-item-footer.tsx b/web/app/components/datasets/hit-testing/components/result-item-footer.tsx
index bdb43eb4bd4..5b1198fcc11 100644
--- a/web/app/components/datasets/hit-testing/components/result-item-footer.tsx
+++ b/web/app/components/datasets/hit-testing/components/result-item-footer.tsx
@@ -21,7 +21,7 @@ const ResultItemFooter: FC<Props> = ({
const { t } = useTranslation()
return (
- <div className="mt-3 flex h-10 items-center justify-between border-t border-divider-subtle pl-3 pr-2">
+ <div className="mt-3 flex h-10 items-center justify-between border-t border-divider-subtle pr-2 pl-3">
<div className="flex grow items-center space-x-1">
<FileIcon type={docType} size="sm" />
<span className="w-0 grow truncate text-[13px] font-normal text-text-secondary">
diff --git a/web/app/components/datasets/list/dataset-card/operation-item.tsx b/web/app/components/datasets/list/dataset-card/operation-item.tsx
index 668c9a3c534..6aaf093358c 100644
--- a/web/app/components/datasets/list/dataset-card/operation-item.tsx
+++ b/web/app/components/datasets/list/dataset-card/operation-item.tsx
@@ -22,7 +22,7 @@ const OperationItem = ({
}}
>
<span aria-hidden className={cn(iconClassName, 'size-4 text-text-tertiary')} />
- <span className="system-md-regular px-1 text-text-secondary">
+ <span className="px-1 system-md-regular text-text-secondary">
{name}
</span>
</div>
diff --git a/web/app/components/datasets/list/dataset-footer/index.tsx b/web/app/components/datasets/list/dataset-footer/index.tsx
index 33b554e1f92..96a7c1ad882 100644
--- a/web/app/components/datasets/list/dataset-footer/index.tsx
+++ b/web/app/components/datasets/list/dataset-footer/index.tsx
@@ -8,8 +8,8 @@ const DatasetFooter = () => {
return (
<footer className="shrink-0 px-12 py-6">
- <h3 className="text-gradient text-xl font-semibold leading-tight">{t('didYouKnow', { ns: 'dataset' })}</h3>
- <p className="mt-1 text-sm font-normal leading-tight text-text-secondary">
+ <h3 className="text-gradient text-xl leading-tight font-semibold">{t('didYouKnow', { ns: 'dataset' })}</h3>
+ <p className="mt-1 text-sm leading-tight font-normal text-text-secondary">
{t('intro1', { ns: 'dataset' })}
<span className="inline-flex items-center gap-1 text-text-accent">{t('intro2', { ns: 'dataset' })}</span>
{t('intro3', { ns: 'dataset' })}
diff --git a/web/app/components/datasets/list/new-dataset-card/option.tsx b/web/app/components/datasets/list/new-dataset-card/option.tsx
index 05b14fef1ad..b9a1d2f8ff0 100644
--- a/web/app/components/datasets/list/new-dataset-card/option.tsx
+++ b/web/app/components/datasets/list/new-dataset-card/option.tsx
@@ -19,7 +19,7 @@ const Option = ({
href={href}
>
<Icon className="h-4 w-4 shrink-0" />
- <span className="system-sm-medium grow text-left">{text}</span>
+ <span className="grow text-left system-sm-medium">{text}</span>
</Link>
)
}
diff --git a/web/app/components/datasets/metadata/metadata-dataset/field.tsx b/web/app/components/datasets/metadata/metadata-dataset/field.tsx
index 4e8e3e02d82..e78c32ff62d 100644
--- a/web/app/components/datasets/metadata/metadata-dataset/field.tsx
+++ b/web/app/components/datasets/metadata/metadata-dataset/field.tsx
@@ -15,7 +15,7 @@ const Field: FC<Props> = ({
}) => {
return (
<div className={className}>
- <div className="system-sm-semibold py-1 text-text-secondary">{label}</div>
+ <div className="py-1 system-sm-semibold text-text-secondary">{label}</div>
<div className="mt-1">{children}</div>
</div>
)
diff --git a/web/app/components/datasets/metadata/metadata-dataset/select-metadata.tsx b/web/app/components/datasets/metadata/metadata-dataset/select-metadata.tsx
index 284bd46ef6e..4d86ddf28ef 100644
--- a/web/app/components/datasets/metadata/metadata-dataset/select-metadata.tsx
+++ b/web/app/components/datasets/metadata/metadata-dataset/select-metadata.tsx
@@ -34,7 +34,7 @@ const SelectMetadata: FC<Props> = ({
})
}, [query, notFilteredList])
return (
- <div className="w-[320px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur pb-0 pt-2 shadow-lg backdrop-blur-[5px]">
+ <div className="w-[320px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur pt-2 pb-0 shadow-lg backdrop-blur-[5px]">
<SearchInput
className="mx-2"
value={query}
@@ -47,7 +47,7 @@ const SelectMetadata: FC<Props> = ({
return (
<div
key={item.id}
- className="mx-1 flex h-6 cursor-pointer items-center justify-between rounded-md px-3 hover:bg-state-base-hover"
+ className="mx-1 flex h-6 cursor-pointer items-center justify-between rounded-md px-3 hover:bg-state-base-hover"
onClick={() => onSelect({
id: item.id,
name: item.name,
@@ -56,9 +56,9 @@ const SelectMetadata: FC<Props> = ({
>
<div className="flex h-full w-0 grow items-center text-text-secondary">
<Icon className="mr-[5px] size-3.5 shrink-0" />
- <div className="system-sm-medium w-0 grow truncate">{item.name}</div>
+ <div className="w-0 grow truncate system-sm-medium">{item.name}</div>
</div>
- <div className="system-xs-regular ml-1 shrink-0 text-text-tertiary">
+ <div className="ml-1 shrink-0 system-xs-regular text-text-tertiary">
{item.type}
</div>
</div>
@@ -70,10 +70,10 @@ const SelectMetadata: FC<Props> = ({
<RiAddLine className="size-3.5" />
<div className="system-sm-medium">{t(`${i18nPrefix}.newAction`, { ns: 'dataset' })}</div>
</div>
- <div className="flex h-6 items-center text-text-secondary ">
+ <div className="flex h-6 items-center text-text-secondary">
<div className="mr-[3px] h-3 w-px bg-divider-regular"></div>
<div className="flex h-full cursor-pointer items-center rounded-md px-1.5 hover:bg-state-base-hover" onClick={onManage}>
- <div className="system-sm-medium mr-1">{t(`${i18nPrefix}.manageAction`, { ns: 'dataset' })}</div>
+ <div className="mr-1 system-sm-medium">{t(`${i18nPrefix}.manageAction`, { ns: 'dataset' })}</div>
<RiArrowRightUpLine className="size-3.5" />
</div>
</div>
diff --git a/web/app/components/datasets/metadata/metadata-document/field.tsx b/web/app/components/datasets/metadata/metadata-document/field.tsx
index f6f5fdf8f1f..3993cfbb408 100644
--- a/web/app/components/datasets/metadata/metadata-document/field.tsx
+++ b/web/app/components/datasets/metadata/metadata-document/field.tsx
@@ -13,7 +13,7 @@ const Field: FC<Props> = ({
}) => {
return (
<div className="flex items-start space-x-2">
- <div className="system-xs-medium w-[128px] shrink-0 items-center truncate py-1 text-text-tertiary">
+ <div className="w-[128px] shrink-0 items-center truncate py-1 system-xs-medium text-text-tertiary">
{label}
</div>
<div className="w-[244px] shrink-0">
diff --git a/web/app/components/datasets/settings/form/components/external-knowledge-section.tsx b/web/app/components/datasets/settings/form/components/external-knowledge-section.tsx
index 4b08bb1e7ad..cb5c4d00285 100644
--- a/web/app/components/datasets/settings/form/components/external-knowledge-section.tsx
+++ b/web/app/components/datasets/settings/form/components/external-knowledge-section.tsx
@@ -53,7 +53,7 @@ const ExternalKnowledgeSection = ({
<div className="w-full">
<div className="flex h-full items-center gap-1 rounded-lg bg-components-input-bg-normal px-3 py-2">
<ApiConnectionMod className="h-4 w-4 text-text-secondary" />
- <div className="system-sm-medium overflow-hidden text-ellipsis text-text-secondary">
+ <div className="overflow-hidden system-sm-medium text-ellipsis text-text-secondary">
{currentDataset.external_knowledge_info.external_knowledge_api_name}
</div>
<div className="system-xs-regular text-text-tertiary">·</div>
diff --git a/web/app/components/datasets/settings/form/components/indexing-section.tsx b/web/app/components/datasets/settings/form/components/indexing-section.tsx
index f534dd56a85..51afe7dfbf0 100644
--- a/web/app/components/datasets/settings/form/components/indexing-section.tsx
+++ b/web/app/components/datasets/settings/form/components/indexing-section.tsx
@@ -73,7 +73,7 @@ const IndexingSection = ({
<Divider type="horizontal" className="my-1 h-px bg-divider-subtle" />
<div className={rowClass}>
<div className="flex w-[180px] shrink-0 flex-col">
- <div className="system-sm-semibold flex h-8 items-center text-text-secondary">
+ <div className="flex h-8 items-center system-sm-semibold text-text-secondary">
{t('form.chunkStructure.title', { ns: 'datasetSettings' })}
</div>
<div className="body-xs-regular text-text-tertiary">
@@ -116,7 +116,7 @@ const IndexingSection = ({
/>
{showUpgradeWarning && (
<div className="relative 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 px-2 shadow-xs shadow-shadow-shadow-3">
- <div className="absolute left-0 top-0 flex h-full w-full items-center bg-toast-warning-bg opacity-40" />
+ <div className="absolute top-0 left-0 flex h-full w-full items-center bg-toast-warning-bg opacity-40" />
<div className="p-1">
<RiAlertFill className="size-4 text-text-warning-secondary" />
</div>
@@ -166,7 +166,7 @@ const IndexingSection = ({
<div className={rowClass}>
<div className={labelClass}>
<div className="flex w-[180px] shrink-0 flex-col">
- <div className="system-sm-semibold flex h-7 items-center pt-1 text-text-secondary">
+ <div className="flex h-7 items-center pt-1 system-sm-semibold text-text-secondary">
{t('form.retrievalSetting.title', { ns: 'datasetSettings' })}
</div>
<div className="body-xs-regular text-text-tertiary">
diff --git a/web/app/components/datasets/settings/permission-selector/permission-item.tsx b/web/app/components/datasets/settings/permission-selector/permission-item.tsx
index c5847896f78..28e1c78be20 100644
--- a/web/app/components/datasets/settings/permission-selector/permission-item.tsx
+++ b/web/app/components/datasets/settings/permission-selector/permission-item.tsx
@@ -20,7 +20,7 @@ const PermissionItem = ({
onClick={onClick}
>
{leftIcon}
- <div className="system-md-regular grow px-1 text-text-secondary">
+ <div className="grow px-1 system-md-regular text-text-secondary">
{text}
</div>
{isSelected && <RiCheckLine className="size-4 text-text-accent" />}
diff --git a/web/app/components/develop/ApiServer.tsx b/web/app/components/develop/ApiServer.tsx
index c4d53baade9..24398d1c858 100644
--- a/web/app/components/develop/ApiServer.tsx
+++ b/web/app/components/develop/ApiServer.tsx
@@ -17,7 +17,7 @@ const ApiServer: FC<ApiServerProps> = ({
return (
<div className="flex flex-wrap items-center gap-y-2">
- <div className="mr-2 flex h-8 items-center rounded-lg border-[0.5px] border-components-input-border-active bg-components-input-bg-normal pl-1.5 pr-1 leading-5">
+ <div className="mr-2 flex h-8 items-center rounded-lg border-[0.5px] border-components-input-border-active bg-components-input-bg-normal pr-1 pl-1.5 leading-5">
<div className="mr-0.5 h-5 shrink-0 rounded-md border border-divider-subtle px-1.5 text-[11px] text-text-tertiary">{t('apiServer', { ns: 'appApi' })}</div>
<div className="w-fit truncate px-1 text-[13px] font-medium text-text-secondary sm:w-[248px]">{apiBaseUrl}</div>
<div className="mx-1 h-[14px] w-px bg-divider-regular"></div>
diff --git a/web/app/components/develop/secret-key/input-copy.tsx b/web/app/components/develop/secret-key/input-copy.tsx
index 64703c857ad..8bc4a380eb4 100644
--- a/web/app/components/develop/secret-key/input-copy.tsx
+++ b/web/app/components/develop/secret-key/input-copy.tsx
@@ -37,7 +37,7 @@ const InputCopy = ({
{children}
<div className="relative h-full grow text-[13px]">
<div
- className="r-0 absolute left-0 top-0 w-full cursor-pointer truncate pl-2 pr-2"
+ className="r-0 absolute top-0 left-0 w-full cursor-pointer truncate pr-2 pl-2"
onClick={() => {
writeTextToClipboard(value).then(() => {
setIsCopied(true)
diff --git a/web/app/components/explore/installed-app/index.tsx b/web/app/components/explore/installed-app/index.tsx
index e8eaa3dd5a7..78191f28732 100644
--- a/web/app/components/explore/installed-app/index.tsx
+++ b/web/app/components/explore/installed-app/index.tsx
@@ -116,7 +116,7 @@ const InstalledApp = ({
)
}
return (
- <div className="h-full bg-background-default py-2 pl-0 pr-2 sm:p-2">
+ <div className="h-full bg-background-default py-2 pr-2 pl-0 sm:p-2">
{installedApp?.app.mode !== AppModeEnum.COMPLETION && installedApp?.app.mode !== AppModeEnum.WORKFLOW && (
<ChatWithHistory installedAppInfo={installedApp} className="overflow-hidden rounded-2xl shadow-md" />
)}
diff --git a/web/app/components/explore/try-app/preview/basic-app-preview.tsx b/web/app/components/explore/try-app/preview/basic-app-preview.tsx
index 43fb00600fe..ef29e1305a4 100644
--- a/web/app/components/explore/try-app/preview/basic-app-preview.tsx
+++ b/web/app/components/explore/try-app/preview/basic-app-preview.tsx
@@ -341,8 +341,8 @@ const BasicAppPreview: FC<Props> = ({
<Config />
</div>
{!isMobile && (
- <div className="relative flex h-full w-1/2 grow flex-col overflow-y-auto " style={{ borderColor: 'rgba(0, 0, 0, 0.02)' }}>
- <div className="flex grow flex-col rounded-tl-2xl border-l-[0.5px] border-t-[0.5px] border-components-panel-border bg-chatbot-bg ">
+ <div className="relative flex h-full w-1/2 grow flex-col overflow-y-auto" style={{ borderColor: 'rgba(0, 0, 0, 0.02)' }}>
+ <div className="flex grow flex-col rounded-tl-2xl border-t-[0.5px] border-l-[0.5px] border-components-panel-border bg-chatbot-bg">
<Debug
isAPIKeySet
onSetting={noop}
diff --git a/web/app/components/goto-anything/components/result-item.tsx b/web/app/components/goto-anything/components/result-item.tsx
index d6ec49ac227..1739486ccc8 100644
--- a/web/app/components/goto-anything/components/result-item.tsx
+++ b/web/app/components/goto-anything/components/result-item.tsx
@@ -28,7 +28,7 @@ const ResultItem: FC<ResultItemProps> = ({ result, onSelect }) => {
</div>
)}
</div>
- <div className="text-xs capitalize text-text-quaternary">
+ <div className="text-xs text-text-quaternary capitalize">
{result.type}
</div>
</Command.Item>
diff --git a/web/app/components/goto-anything/components/result-list.tsx b/web/app/components/goto-anything/components/result-list.tsx
index 70d2c6c61ed..cc2e1e7a7ed 100644
--- a/web/app/components/goto-anything/components/result-list.tsx
+++ b/web/app/components/goto-anything/components/result-list.tsx
@@ -32,7 +32,7 @@ const ResultList: FC<ResultListProps> = ({ groupedResults, onSelect }) => {
<Command.Group
key={type}
heading={getGroupHeading(type)}
- className="p-2 capitalize text-text-secondary"
+ className="p-2 text-text-secondary capitalize"
>
{results.map(result => (
<ResultItem
diff --git a/web/app/components/header/account-setting/api-based-extension-page/selector.tsx b/web/app/components/header/account-setting/api-based-extension-page/selector.tsx
index 5497fe7781c..041657d4be1 100644
--- a/web/app/components/header/account-setting/api-based-extension-page/selector.tsx
+++ b/web/app/components/header/account-setting/api-based-extension-page/selector.tsx
@@ -51,7 +51,7 @@ const ApiBasedExtensionSelector: FC<ApiBasedExtensionSelectorProps> = ({
{
currentItem
? (
- <div className="flex h-9 cursor-pointer items-center justify-between rounded-lg bg-components-input-bg-normal pl-3 pr-2.5">
+ <div className="flex h-9 cursor-pointer items-center justify-between rounded-lg bg-components-input-bg-normal pr-2.5 pl-3">
<div className="text-sm text-text-primary">{currentItem.name}</div>
<div className="flex items-center">
<div className="mr-1.5 w-[270px] truncate text-right text-xs text-text-quaternary">
@@ -62,7 +62,7 @@ const ApiBasedExtensionSelector: FC<ApiBasedExtensionSelectorProps> = ({
</div>
)
: (
- <div className="flex h-9 cursor-pointer items-center justify-between rounded-lg bg-components-input-bg-normal pl-3 pr-2.5 text-sm text-text-quaternary">
+ <div className="flex h-9 cursor-pointer items-center justify-between rounded-lg bg-components-input-bg-normal pr-2.5 pl-3 text-sm text-text-quaternary">
{t('apiBasedExtension.selector.placeholder', { ns: 'common' })}
<RiArrowDownSLine className={`h-4 w-4 text-text-secondary ${!open && 'opacity-60'}`} />
</div>
@@ -72,7 +72,7 @@ const ApiBasedExtensionSelector: FC<ApiBasedExtensionSelectorProps> = ({
<PortalToFollowElemContent className="z-1002 w-[calc(100%-32px)] max-w-[576px]">
<div className="z-10 w-full rounded-lg border-[0.5px] border-components-panel-border bg-components-panel-bg shadow-lg">
<div className="p-1">
- <div className="flex items-center justify-between px-3 pb-1 pt-2">
+ <div className="flex items-center justify-between px-3 pt-2 pb-1">
<div className="text-xs font-medium text-text-tertiary">
{t('apiBasedExtension.selector.title', { ns: 'common' })}
</div>
diff --git a/web/app/components/header/account-setting/data-source-page-new/operator.tsx b/web/app/components/header/account-setting/data-source-page-new/operator.tsx
index 22303fb8f0a..c94f1bb192f 100644
--- a/web/app/components/header/account-setting/data-source-page-new/operator.tsx
+++ b/web/app/components/header/account-setting/data-source-page-new/operator.tsx
@@ -39,7 +39,7 @@ const Operator = ({
text: (
<div className="flex items-center">
<RiHome9Line className="mr-2 h-4 w-4 text-text-tertiary" />
- <div className="text-text-secondary system-sm-semibold">{t('auth.setDefault', { ns: 'plugin' })}</div>
+ <div className="system-sm-semibold text-text-secondary">{t('auth.setDefault', { ns: 'plugin' })}</div>
</div>
),
},
@@ -51,7 +51,7 @@ const Operator = ({
text: (
<div className="flex items-center">
<RiEditLine className="mr-2 h-4 w-4 text-text-tertiary" />
- <div className="text-text-secondary system-sm-semibold">{t('operation.rename', { ns: 'common' })}</div>
+ <div className="system-sm-semibold text-text-secondary">{t('operation.rename', { ns: 'common' })}</div>
</div>
),
},
@@ -66,7 +66,7 @@ const Operator = ({
text: (
<div className="flex items-center">
<RiEqualizer2Line className="mr-2 h-4 w-4 text-text-tertiary" />
- <div className="text-text-secondary system-sm-semibold">{t('operation.edit', { ns: 'common' })}</div>
+ <div className="system-sm-semibold text-text-secondary">{t('operation.edit', { ns: 'common' })}</div>
</div>
),
},
@@ -81,7 +81,7 @@ const Operator = ({
text: (
<div className="flex items-center">
<RiStickyNoteAddLine className="mr-2 h-4 w-4 text-text-tertiary" />
- <div className="mb-1 text-text-secondary system-sm-semibold">{t('dataSource.notion.changeAuthorizedPages', { ns: 'common' })}</div>
+ <div className="mb-1 system-sm-semibold text-text-secondary">{t('dataSource.notion.changeAuthorizedPages', { ns: 'common' })}</div>
</div>
),
},
@@ -98,7 +98,7 @@ const Operator = ({
text: (
<div className="flex items-center">
<RiDeleteBinLine className="mr-2 h-4 w-4 text-text-tertiary" />
- <div className="text-text-secondary system-sm-semibold">
+ <div className="system-sm-semibold text-text-secondary">
{t('operation.remove', { ns: 'common' })}
</div>
</div>
diff --git a/web/app/components/header/account-setting/key-validator/KeyInput.tsx b/web/app/components/header/account-setting/key-validator/KeyInput.tsx
index cf8f88be7e3..c352cc48357 100644
--- a/web/app/components/header/account-setting/key-validator/KeyInput.tsx
+++ b/web/app/components/header/account-setting/key-validator/KeyInput.tsx
@@ -60,8 +60,8 @@ const KeyInput = ({
<input
className="
mr-2 w-full appearance-none
- bg-transparent py-[9px] text-xs font-medium
- leading-[18px] text-gray-700 outline-hidden
+ bg-transparent py-[9px] text-xs leading-[18px]
+ font-medium text-gray-700 outline-hidden
"
value={value}
placeholder={placeholder}
diff --git a/web/app/components/header/account-setting/members-page/index.tsx b/web/app/components/header/account-setting/members-page/index.tsx
index 6ac9ee5d2da..0a3ed87e8f9 100644
--- a/web/app/components/header/account-setting/members-page/index.tsx
+++ b/web/app/components/header/account-setting/members-page/index.tsx
@@ -50,12 +50,12 @@ const MembersPage = () => {
return (
<>
<div className="flex flex-col">
- <div className="mb-4 flex items-center gap-3 rounded-xl border-l-[0.5px] border-t-[0.5px] border-divider-subtle bg-linear-to-r from-background-gradient-bg-fill-chat-bg-2 to-background-gradient-bg-fill-chat-bg-1 p-3 pr-5">
+ <div className="mb-4 flex items-center gap-3 rounded-xl border-t-[0.5px] border-l-[0.5px] border-divider-subtle bg-linear-to-r from-background-gradient-bg-fill-chat-bg-2 to-background-gradient-bg-fill-chat-bg-1 p-3 pr-5">
<div className="flex h-12 w-12 items-center justify-center rounded-xl bg-components-icon-bg-blue-solid text-[20px]">
- <span className="bg-linear-to-r from-components-avatar-shape-fill-stop-0 to-components-avatar-shape-fill-stop-100 bg-clip-text font-semibold uppercase text-shadow-shadow-1 opacity-90">{currentWorkspace?.name[0]?.toLocaleUpperCase()}</span>
+ <span className="bg-linear-to-r from-components-avatar-shape-fill-stop-0 to-components-avatar-shape-fill-stop-100 bg-clip-text font-semibold text-shadow-shadow-1 uppercase opacity-90">{currentWorkspace?.name[0]?.toLocaleUpperCase()}</span>
</div>
<div className="grow">
- <div className="flex items-center gap-1 text-text-secondary system-md-semibold">
+ <div className="flex items-center gap-1 system-md-semibold text-text-secondary">
<span>{currentWorkspace?.name}</span>
{isCurrentWorkspaceOwner && (
<span>
@@ -82,7 +82,7 @@ const MembersPage = () => {
</span>
)}
</div>
- <div className="mt-1 text-text-tertiary system-xs-medium">
+ <div className="mt-1 system-xs-medium text-text-tertiary">
{enableBilling && isNotUnlimitedMemberPlan
? (
<div className="flex space-x-1">
@@ -116,9 +116,9 @@ const MembersPage = () => {
</div>
<div className="overflow-visible lg:overflow-visible">
<div className="flex min-w-[480px] items-center border-b border-divider-regular py-[7px]">
- <div className="grow px-3 text-text-tertiary system-xs-medium-uppercase">{t('members.name', { ns: 'common' })}</div>
- <div className="w-[104px] shrink-0 text-text-tertiary system-xs-medium-uppercase">{t('members.lastActive', { ns: 'common' })}</div>
- <div className="w-[96px] shrink-0 px-3 text-text-tertiary system-xs-medium-uppercase">{t('members.role', { ns: 'common' })}</div>
+ <div className="grow px-3 system-xs-medium-uppercase text-text-tertiary">{t('members.name', { ns: 'common' })}</div>
+ <div className="w-[104px] shrink-0 system-xs-medium-uppercase text-text-tertiary">{t('members.lastActive', { ns: 'common' })}</div>
+ <div className="w-[96px] shrink-0 px-3 system-xs-medium-uppercase text-text-tertiary">{t('members.role', { ns: 'common' })}</div>
</div>
<div className="relative min-w-[480px]">
{
@@ -127,27 +127,27 @@ const MembersPage = () => {
<div className="flex grow items-center px-3 py-2">
<Avatar avatar={account.avatar_url} size="sm" className="mr-2" name={account.name} />
<div className="">
- <div className="text-text-secondary system-sm-medium">
+ <div className="system-sm-medium text-text-secondary">
{account.name}
- {account.status === 'pending' && <span className="ml-1 text-text-warning system-xs-medium">{t('members.pending', { ns: 'common' })}</span>}
- {userProfile.email === account.email && <span className="text-text-tertiary system-xs-regular">{t('members.you', { ns: 'common' })}</span>}
+ {account.status === 'pending' && <span className="ml-1 system-xs-medium text-text-warning">{t('members.pending', { ns: 'common' })}</span>}
+ {userProfile.email === account.email && <span className="system-xs-regular text-text-tertiary">{t('members.you', { ns: 'common' })}</span>}
</div>
- <div className="text-text-tertiary system-xs-regular">{account.email}</div>
+ <div className="system-xs-regular text-text-tertiary">{account.email}</div>
</div>
</div>
- <div className="flex w-[104px] shrink-0 items-center py-2 text-text-secondary system-sm-regular">{formatTimeFromNow(Number((account.last_active_at || account.created_at)) * 1000)}</div>
+ <div className="flex w-[104px] shrink-0 items-center py-2 system-sm-regular text-text-secondary">{formatTimeFromNow(Number((account.last_active_at || account.created_at)) * 1000)}</div>
<div className="flex w-[96px] shrink-0 items-center">
{isCurrentWorkspaceOwner && account.role === 'owner' && isAllowTransferWorkspace && (
<TransferOwnership onOperate={() => setShowTransferOwnershipModal(true)}></TransferOwnership>
)}
{isCurrentWorkspaceOwner && account.role === 'owner' && !isAllowTransferWorkspace && (
- <div className="px-3 text-text-secondary system-sm-regular">{RoleMap[account.role] || RoleMap.normal}</div>
+ <div className="px-3 system-sm-regular text-text-secondary">{RoleMap[account.role] || RoleMap.normal}</div>
)}
{isCurrentWorkspaceOwner && account.role !== 'owner' && (
<Operation member={account} operatorRole={currentWorkspace.role} onOperate={refetch} />
)}
{!isCurrentWorkspaceOwner && (
- <div className="px-3 text-text-secondary system-sm-regular">{RoleMap[account.role] || RoleMap.normal}</div>
+ <div className="px-3 system-sm-regular text-text-secondary">{RoleMap[account.role] || RoleMap.normal}</div>
)}
</div>
</div>
diff --git a/web/app/components/header/account-setting/members-page/invited-modal/invitation-link.tsx b/web/app/components/header/account-setting/members-page/invited-modal/invitation-link.tsx
index 0c5874c4dc1..42970993827 100644
--- a/web/app/components/header/account-setting/members-page/invited-modal/invitation-link.tsx
+++ b/web/app/components/header/account-setting/members-page/invited-modal/invitation-link.tsx
@@ -40,7 +40,7 @@ const InvitationLink = ({
<div className="relative h-full grow text-[13px]">
<Tooltip>
<TooltipTrigger
- render={<div className="absolute left-0 right-0 top-0 w-full cursor-pointer truncate pl-2 pr-2 text-text-primary" onClick={copyHandle} data-testid="invitation-link-url">{value.url}</div>}
+ render={<div className="absolute top-0 right-0 left-0 w-full cursor-pointer truncate pr-2 pl-2 text-text-primary" onClick={copyHandle} data-testid="invitation-link-url">{value.url}</div>}
/>
<TooltipContent>
{isCopied ? t('copied', { ns: 'appApi' }) : t('copy', { ns: 'appApi' })}
diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/authorized-item.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/authorized-item.tsx
index 1910e74f33c..b0d45375a51 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/authorized-item.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/authorized-item.tsx
@@ -70,7 +70,7 @@ export const AuthorizedItem = ({
)
}
<div
- className="system-md-medium mx-1 grow truncate text-text-primary"
+ className="mx-1 grow truncate system-md-medium text-text-primary"
title={title ?? model?.model}
>
{title ?? model?.model}
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 0f507a24c69..be3e9edb93f 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
@@ -58,9 +58,9 @@ const CredentialSelector = ({
selectedCredential && (
<div className="flex items-center">
{
- !selectedCredential.addNewCredential && <Indicator className="ml-1 mr-2 shrink-0" />
+ !selectedCredential.addNewCredential && <Indicator className="mr-2 ml-1 shrink-0" />
}
- <div className="truncate text-components-input-text-filled system-sm-regular" title={selectedCredential.credential_name}>{selectedCredential.credential_name}</div>
+ <div className="truncate system-sm-regular text-components-input-text-filled" title={selectedCredential.credential_name}>{selectedCredential.credential_name}</div>
{
selectedCredential.from_enterprise && (
<Badge className="shrink-0">Enterprise</Badge>
@@ -71,7 +71,7 @@ const CredentialSelector = ({
}
{
!selectedCredential && (
- <div className="grow truncate text-components-input-text-placeholder system-sm-regular">{t('modelProvider.auth.selectModelCredential', { ns: 'common' })}</div>
+ <div className="grow truncate system-sm-regular text-components-input-text-placeholder">{t('modelProvider.auth.selectModelCredential', { ns: 'common' })}</div>
)
}
<RiArrowDownSLine className="h-4 w-4 text-text-quaternary" />
@@ -98,7 +98,7 @@ const CredentialSelector = ({
{
!notAllowAddNewCredential && (
<div
- className="flex h-10 cursor-pointer items-center border-t border-t-divider-subtle px-7 text-text-accent-light-mode-only system-xs-medium"
+ className="flex h-10 cursor-pointer items-center border-t border-t-divider-subtle px-7 system-xs-medium text-text-accent-light-mode-only"
onClick={handleAddNewCredential}
>
<RiAddLine className="mr-1 h-4 w-4" />
diff --git a/web/app/components/header/account-setting/model-provider-page/model-modal/Input.tsx b/web/app/components/header/account-setting/model-provider-page/model-modal/Input.tsx
index 2593e360607..6c6d6110f1a 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-modal/Input.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-modal/Input.tsx
@@ -62,7 +62,7 @@ const Input: FC<InputProps> = ({
max={max}
/>
{validated && (
- <div className="absolute right-2.5 top-2.5">
+ <div className="absolute top-2.5 right-2.5">
<CheckCircle className="h-4 w-4 text-[#039855]" />
</div>
)}
diff --git a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/model-display.tsx b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/model-display.tsx
index d8a4fabac0b..8a50a8de5e8 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/model-display.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/model-display.tsx
@@ -17,7 +17,7 @@ const ModelDisplay = ({ currentModel, modelId }: ModelDisplayProps) => {
)
: (
<div className="flex grow items-center gap-1 truncate px-1 py-[3px] opacity-50">
- <div className="system-sm-regular overflow-hidden text-ellipsis text-components-input-text-filled">
+ <div className="overflow-hidden system-sm-regular text-ellipsis text-components-input-text-filled">
{modelId}
</div>
</div>
diff --git a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/status-indicators.tsx b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/status-indicators.tsx
index 3cb37fd4e57..cca58463902 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/status-indicators.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/status-indicators.tsx
@@ -20,12 +20,12 @@ const StatusIndicators = ({ needsConfiguration, modelProvider, inModelList, disa
<div className="flex w-[240px] max-w-[240px] flex-col gap-1 px-1 py-1.5" onClick={e => e.stopPropagation()}>
<div className="title-xs-semi-bold text-text-primary">{title}</div>
{description && (
- <div className="body-xs-regular min-w-[200px] text-text-secondary">
+ <div className="min-w-[200px] body-xs-regular text-text-secondary">
{description}
</div>
)}
{linkText && linkHref && (
- <div className="body-xs-regular z-100 cursor-pointer text-text-accent">
+ <div className="z-100 cursor-pointer body-xs-regular text-text-accent">
<Link
href={linkHref}
onClick={(e) => {
diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/credits-fallback-alert.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/credits-fallback-alert.tsx
index bc7feb33977..672986b8169 100644
--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/credits-fallback-alert.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/credits-fallback-alert.tsx
@@ -12,13 +12,13 @@ export default function CreditsFallbackAlert({ hasCredentials }: CreditsFallback
: 'modelProvider.card.noApiKeysFallback'
return (
- <div className="mx-2 mb-1 mt-0.5 rounded-lg bg-background-section-burn p-3">
+ <div className="mx-2 mt-0.5 mb-1 rounded-lg bg-background-section-burn p-3">
<div className="flex flex-col gap-1">
- <div className="text-text-primary system-sm-medium">
+ <div className="system-sm-medium text-text-primary">
{t(titleKey, { ns: 'common' })}
</div>
{hasCredentials && (
- <div className="text-text-tertiary system-xs-regular">
+ <div className="system-xs-regular text-text-tertiary">
{t('modelProvider.card.apiKeyUnavailableFallbackDescription', { ns: 'common' })}
</div>
)}
diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/dropdown-content.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/dropdown-content.tsx
index 526cdf1dc93..415539383bd 100644
--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/dropdown-content.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-auth-dropdown/dropdown-content.tsx
@@ -109,10 +109,10 @@ function DropdownContent({
>
<AlertDialogContent>
<div className="p-6 pb-0">
- <AlertDialogTitle className="text-text-primary system-xl-semibold">
+ <AlertDialogTitle className="system-xl-semibold text-text-primary">
{t('modelProvider.confirmDelete', { ns: 'common' })}
</AlertDialogTitle>
- <AlertDialogDescription className="mt-1 text-text-secondary system-sm-regular" />
+ <AlertDialogDescription className="mt-1 system-sm-regular text-text-secondary" />
</div>
<AlertDialogActions>
<AlertDialogCancelButton disabled={doingAction}>
diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-list.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-list.tsx
index 21c1ca3fd51..f292397525e 100644
--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-list.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-list.tsx
@@ -53,14 +53,14 @@ const ModelList: FC<ModelListProps> = ({
return (
<div className="rounded-b-xl px-2 pb-2">
<div className="rounded-lg bg-components-panel-bg py-1">
- <div className="flex items-center pl-1 pr-[3px]">
+ <div className="flex items-center pr-[3px] pl-1">
<span className="group mr-2 flex shrink-0 items-center">
- <span className="system-xs-medium inline-flex h-6 items-center pl-1 pr-1.5 text-text-tertiary group-hover:hidden">
+ <span className="inline-flex h-6 items-center pr-1.5 pl-1 system-xs-medium text-text-tertiary group-hover:hidden">
{t('modelProvider.modelsNum', { ns: 'common', num: models.length })}
<RiArrowRightSLine className="mr-0.5 h-4 w-4 rotate-90" />
</span>
<span
- className="system-xs-medium hidden h-6 cursor-pointer items-center rounded-lg bg-state-base-hover pl-1 pr-1.5 text-text-tertiary group-hover:inline-flex"
+ className="hidden h-6 cursor-pointer items-center rounded-lg bg-state-base-hover pr-1.5 pl-1 system-xs-medium text-text-tertiary group-hover:inline-flex"
onClick={() => onCollapse()}
>
{t('modelProvider.modelsNum', { ns: 'common', num: models.length })}
diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/priority-use-tip.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/priority-use-tip.tsx
index 47fd06dfec9..174e417dc94 100644
--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/priority-use-tip.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/priority-use-tip.tsx
@@ -9,7 +9,7 @@ const PriorityUseTip = () => {
<Tooltip
popupContent={t('modelProvider.priorityUsing', { ns: 'common' }) || ''}
>
- <div className="absolute -right-[5px] -top-[5px] cursor-pointer rounded-[5px] border-[0.5px] border-components-panel-border-subtle bg-util-colors-indigo-indigo-50 shadow-xs">
+ <div className="absolute -top-[5px] -right-[5px] cursor-pointer rounded-[5px] border-[0.5px] border-components-panel-border-subtle bg-util-colors-indigo-indigo-50 shadow-xs">
<ChevronDownDouble className="h-3 w-3 rotate-180 text-util-colors-indigo-indigo-600" />
</div>
</Tooltip>
diff --git a/web/app/components/header/index.tsx b/web/app/components/header/index.tsx
index 560d5f1eaa5..d92fd032fd7 100644
--- a/web/app/components/header/index.tsx
+++ b/web/app/components/header/index.tsx
@@ -45,7 +45,7 @@ const Header = () => {
const renderLogo = () => (
<h1>
- <Link href="/apps" className="flex h-8 shrink-0 items-center justify-center overflow-hidden whitespace-nowrap px-0.5 indent-[-9999px]">
+ <Link href="/apps" className="flex h-8 shrink-0 items-center justify-center overflow-hidden px-0.5 indent-[-9999px] whitespace-nowrap">
{isBrandingEnabled && systemFeatures.branding.application_title ? systemFeatures.branding.application_title : 'Dify'}
{systemFeatures.branding.enabled && systemFeatures.branding.workspace_logo
? (
@@ -91,7 +91,7 @@ const Header = () => {
return (
<div className="flex h-[56px] items-center">
- <div className="flex min-w-0 flex-1 items-center pl-3 pr-2 min-[1280px]:pr-3">
+ <div className="flex min-w-0 flex-1 items-center pr-2 pl-3 min-[1280px]:pr-3">
{renderLogo()}
<div className="mx-1.5 shrink-0 font-light text-divider-deep">/</div>
<WorkspaceProvider>
@@ -105,7 +105,7 @@ const Header = () => {
{(isCurrentWorkspaceEditor || isCurrentWorkspaceDatasetOperator) && <DatasetNav />}
{!isCurrentWorkspaceDatasetOperator && <ToolsNav className={navClassName} />}
</div>
- <div className="flex min-w-0 flex-1 items-center justify-end pl-2 pr-3 min-[1280px]:pl-3">
+ <div className="flex min-w-0 flex-1 items-center justify-end pr-3 pl-2 min-[1280px]:pl-3">
<EnvNav />
<div className="mr-2">
<PluginsNav />
diff --git a/web/app/components/header/license-env/index.tsx b/web/app/components/header/license-env/index.tsx
index 292b3a2d306..2e505ddd415 100644
--- a/web/app/components/header/license-env/index.tsx
+++ b/web/app/components/header/license-env/index.tsx
@@ -17,15 +17,15 @@ const LicenseNav = () => {
return (
<PremiumBadge color="orange" className="select-none">
<RiHourglass2Fill className="flex size-3 items-center pl-0.5 text-components-premium-badge-indigo-text-stop-0" />
- {count <= 1 && <span className="system-xs-medium px-0.5">{t('license.expiring', { ns: 'common', count })}</span>}
- {count > 1 && <span className="system-xs-medium px-0.5">{t('license.expiring_plural', { ns: 'common', count })}</span>}
+ {count <= 1 && <span className="px-0.5 system-xs-medium">{t('license.expiring', { ns: 'common', count })}</span>}
+ {count > 1 && <span className="px-0.5 system-xs-medium">{t('license.expiring_plural', { ns: 'common', count })}</span>}
</PremiumBadge>
)
}
if (systemFeatures.license.status === LicenseStatus.ACTIVE) {
return (
<PremiumBadge color="indigo" className="select-none">
- <span className="system-xs-medium px-1">Enterprise</span>
+ <span className="px-1 system-xs-medium">Enterprise</span>
</PremiumBadge>
)
}
diff --git a/web/app/components/header/plan-badge/index.tsx b/web/app/components/header/plan-badge/index.tsx
index 62683717908..9547ddf6f7c 100644
--- a/web/app/components/header/plan-badge/index.tsx
+++ b/web/app/components/header/plan-badge/index.tsx
@@ -26,7 +26,7 @@ const PlanBadge: FC<PlanBadgeProps> = ({ plan, allowHover, sandboxAsUpgrade = fa
<PremiumBadge className="select-none" color="blue" allowHover={allowHover} onClick={onClick}>
<SparklesSoft className="flex h-3.5 w-3.5 items-center py-px pl-[3px] text-components-premium-badge-indigo-text-stop-0" />
<div className="system-xs-medium">
- <span className="whitespace-nowrap p-1">
+ <span className="p-1 whitespace-nowrap">
{t('upgradeBtn.encourageShort', { ns: 'billing' })}
</span>
</div>
diff --git a/web/app/components/plugins/card/base/corner-mark.tsx b/web/app/components/plugins/card/base/corner-mark.tsx
index bead0fd2543..cc5436d1df5 100644
--- a/web/app/components/plugins/card/base/corner-mark.tsx
+++ b/web/app/components/plugins/card/base/corner-mark.tsx
@@ -2,9 +2,9 @@ import { LeftCorner } from '../../../base/icons/src/vender/plugin'
const CornerMark = ({ text }: { text: string }) => {
return (
- <div className="absolute right-0 top-0 flex pl-[13px] ">
+ <div className="absolute top-0 right-0 flex pl-[13px]">
<LeftCorner className="text-background-section" />
- <div className="system-2xs-medium-uppercase h-5 rounded-tr-xl bg-background-section pr-2 leading-5 text-text-tertiary">{text}</div>
+ <div className="h-5 rounded-tr-xl bg-background-section pr-2 system-2xs-medium-uppercase leading-5 text-text-tertiary">{text}</div>
</div>
)
}
diff --git a/web/app/components/plugins/card/base/title.tsx b/web/app/components/plugins/card/base/title.tsx
index c9270c81b8f..b4b0b5f5433 100644
--- a/web/app/components/plugins/card/base/title.tsx
+++ b/web/app/components/plugins/card/base/title.tsx
@@ -4,7 +4,7 @@ const Title = ({
title: string
}) => {
return (
- <div className="system-md-semibold truncate text-text-secondary">
+ <div className="truncate system-md-semibold text-text-secondary">
{title}
</div>
)
diff --git a/web/app/components/plugins/card/card-more-info.tsx b/web/app/components/plugins/card/card-more-info.tsx
index 33f819f31a7..237e9232d22 100644
--- a/web/app/components/plugins/card/card-more-info.tsx
+++ b/web/app/components/plugins/card/card-more-info.tsx
@@ -13,14 +13,14 @@ const CardMoreInfoComponent = ({
return (
<div className="flex h-5 items-center">
{downloadCount !== undefined && <DownloadCount downloadCount={downloadCount} />}
- {downloadCount !== undefined && tags && tags.length > 0 && <div className="system-xs-regular mx-2 text-text-quaternary">·</div>}
+ {downloadCount !== undefined && tags && tags.length > 0 && <div className="mx-2 system-xs-regular text-text-quaternary">·</div>}
{tags && tags.length > 0 && (
<>
<div className="flex h-4 flex-wrap space-x-2 overflow-hidden">
{tags.map(tag => (
<div
key={tag}
- className="system-xs-regular flex max-w-[120px] space-x-1 overflow-hidden"
+ className="flex max-w-[120px] space-x-1 overflow-hidden system-xs-regular"
title={`# ${tag}`}
>
<span className="text-text-quaternary">#</span>
diff --git a/web/app/components/plugins/marketplace/description/index.tsx b/web/app/components/plugins/marketplace/description/index.tsx
index c3c1ab5fb18..c91110b8cce 100644
--- a/web/app/components/plugins/marketplace/description/index.tsx
+++ b/web/app/components/plugins/marketplace/description/index.tsx
@@ -9,10 +9,10 @@ const Description = () => {
return (
<>
- <h1 className="title-4xl-semi-bold mb-2 shrink-0 text-center text-text-primary">
+ <h1 className="mb-2 shrink-0 text-center title-4xl-semi-bold text-text-primary">
{t('marketplace.empower')}
</h1>
- <h2 className="body-md-regular flex shrink-0 items-center justify-center text-center text-text-tertiary">
+ <h2 className="flex shrink-0 items-center justify-center text-center body-md-regular text-text-tertiary">
{
isZhHans && (
<>
@@ -29,31 +29,31 @@ const Description = () => {
</>
)
}
- <span className="body-md-medium relative z-1 ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative z-1 ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.models')}
</span>
,
- <span className="body-md-medium relative z-1 ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative z-1 ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.tools')}
</span>
,
- <span className="body-md-medium relative z-1 ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative z-1 ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.datasources')}
</span>
,
- <span className="body-md-medium relative z-1 ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative z-1 ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.triggers')}
</span>
,
- <span className="body-md-medium relative z-1 ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative z-1 ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.agents')}
</span>
,
- <span className="body-md-medium relative z-1 ml-1 mr-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative z-1 mr-1 ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.extensions')}
</span>
{t('marketplace.and')}
- <span className="body-md-medium relative z-1 ml-1 mr-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative z-1 mr-1 ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.bundles')}
</span>
{
diff --git a/web/app/components/plugins/marketplace/list/list-wrapper.tsx b/web/app/components/plugins/marketplace/list/list-wrapper.tsx
index acc5776a13a..864f2445f38 100644
--- a/web/app/components/plugins/marketplace/list/list-wrapper.tsx
+++ b/web/app/components/plugins/marketplace/list/list-wrapper.tsx
@@ -39,7 +39,7 @@ const ListWrapper = ({
}
{
isLoading && page === 1 && (
- <div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2">
+ <div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">
<Loading />
</div>
)
diff --git a/web/app/components/plugins/marketplace/search-box/tags-filter.tsx b/web/app/components/plugins/marketplace/search-box/tags-filter.tsx
index 5b37d0c488d..b078dbaa9b3 100644
--- a/web/app/components/plugins/marketplace/search-box/tags-filter.tsx
+++ b/web/app/components/plugins/marketplace/search-box/tags-filter.tsx
@@ -88,14 +88,14 @@ const TagsFilter = ({
filteredOptions.map(option => (
<div
key={option.name}
- className="flex h-7 cursor-pointer select-none items-center rounded-lg px-2 py-1.5 hover:bg-state-base-hover"
+ className="flex h-7 cursor-pointer items-center rounded-lg px-2 py-1.5 select-none hover:bg-state-base-hover"
onClick={() => handleCheck(option.name)}
>
<Checkbox
className="mr-1"
checked={tags.includes(option.name)}
/>
- <div className="system-sm-medium px-1 text-text-secondary">
+ <div className="px-1 system-sm-medium text-text-secondary">
{option.label}
</div>
</div>
diff --git a/web/app/components/plugins/marketplace/sort-dropdown/index.tsx b/web/app/components/plugins/marketplace/sort-dropdown/index.tsx
index d8b6939d1a7..99f5650a71d 100644
--- a/web/app/components/plugins/marketplace/sort-dropdown/index.tsx
+++ b/web/app/components/plugins/marketplace/sort-dropdown/index.tsx
@@ -52,10 +52,10 @@ const SortDropdown = () => {
>
<PortalToFollowElemTrigger onClick={() => setOpen(v => !v)}>
<div className="flex h-8 cursor-pointer items-center rounded-lg bg-state-base-hover-alt px-2 pr-3">
- <span className="system-sm-regular mr-1 text-text-secondary">
+ <span className="mr-1 system-sm-regular text-text-secondary">
{t('marketplace.sortBy', { ns: 'plugin' })}
</span>
- <span className="system-sm-medium mr-1 text-text-primary">
+ <span className="mr-1 system-sm-medium text-text-primary">
{selectedOption!.text}
</span>
<RiArrowDownSLine className="h-4 w-4 text-text-tertiary" />
@@ -67,7 +67,7 @@ const SortDropdown = () => {
options.map(option => (
<div
key={`${option.value}-${option.order}`}
- className="system-md-regular flex h-8 cursor-pointer items-center justify-between rounded-lg px-3 pr-2 text-text-primary hover:bg-components-panel-on-panel-item-bg-hover"
+ className="flex h-8 cursor-pointer items-center justify-between rounded-lg px-3 pr-2 system-md-regular text-text-primary hover:bg-components-panel-on-panel-item-bg-hover"
onClick={() => handleSortChange({ sortBy: option.value, sortOrder: option.order })}
>
{option.text}
diff --git a/web/app/components/plugins/plugin-detail-panel/action-list.tsx b/web/app/components/plugins/plugin-detail-panel/action-list.tsx
index 7acf16b5fcb..40317f4b788 100644
--- a/web/app/components/plugins/plugin-detail-panel/action-list.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/action-list.tsx
@@ -28,9 +28,9 @@ const ActionList = ({
return null
return (
- <div className="px-4 pb-4 pt-2">
+ <div className="px-4 pt-2 pb-4">
<div className="mb-1 py-1">
- <div className="system-sm-semibold-uppercase mb-1 flex h-6 items-center justify-between text-text-secondary">
+ <div className="mb-1 flex h-6 items-center justify-between system-sm-semibold-uppercase text-text-secondary">
{t('detailPanel.actionNum', { ns: 'plugin', num: data.length, action: data.length > 1 ? 'actions' : 'action' })}
</div>
</div>
diff --git a/web/app/components/plugins/plugin-detail-panel/agent-strategy-list.tsx b/web/app/components/plugins/plugin-detail-panel/agent-strategy-list.tsx
index db02dc88362..e9aeedfa01f 100644
--- a/web/app/components/plugins/plugin-detail-panel/agent-strategy-list.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/agent-strategy-list.tsx
@@ -37,9 +37,9 @@ const AgentStrategyList = ({
return null
return (
- <div className="px-4 pb-4 pt-2">
+ <div className="px-4 pt-2 pb-4">
<div className="mb-1 py-1">
- <div className="system-sm-semibold-uppercase mb-1 flex h-6 items-center justify-between text-text-secondary">
+ <div className="mb-1 flex h-6 items-center justify-between system-sm-semibold-uppercase text-text-secondary">
{t('detailPanel.strategyNum', { ns: 'plugin', num: strategyList.length, strategy: strategyList.length > 1 ? 'strategies' : 'strategy' })}
</div>
</div>
diff --git a/web/app/components/plugins/plugin-detail-panel/app-selector/app-inputs-form.tsx b/web/app/components/plugins/plugin-detail-panel/app-selector/app-inputs-form.tsx
index f57d82211cf..21e313c93c5 100644
--- a/web/app/components/plugins/plugin-detail-panel/app-selector/app-inputs-form.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/app-selector/app-inputs-form.tsx
@@ -111,7 +111,7 @@ const AppInputsForm = ({
<div className="flex flex-col gap-4 px-4 py-2">
{inputsForms.map(form => (
<div key={form.variable}>
- <div className="system-sm-semibold mb-1 flex h-6 items-center gap-1 text-text-secondary">
+ <div className="mb-1 flex h-6 items-center gap-1 system-sm-semibold text-text-secondary">
<div className="truncate">{form.label}</div>
{!form.required && <span className="system-xs-regular text-text-tertiary">{t('panel.optional', { ns: 'workflow' })}</span>}
</div>
diff --git a/web/app/components/plugins/plugin-detail-panel/app-selector/app-picker.tsx b/web/app/components/plugins/plugin-detail-panel/app-selector/app-picker.tsx
index 4c96b69bebc..41140ac63b2 100644
--- a/web/app/components/plugins/plugin-detail-panel/app-selector/app-picker.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/app-selector/app-picker.tsx
@@ -188,7 +188,7 @@ const AppPicker: FC<Props> = ({
{apps.map(app => (
<div
key={app.id}
- className="flex cursor-pointer items-center gap-3 rounded-lg py-1 pl-2 pr-3 hover:bg-state-base-hover"
+ className="flex cursor-pointer items-center gap-3 rounded-lg py-1 pr-3 pl-2 hover:bg-state-base-hover"
onClick={() => onSelect(app)}
>
<AppIcon
@@ -199,7 +199,7 @@ const AppPicker: FC<Props> = ({
background={app.icon_background}
imageUrl={app.icon_url}
/>
- <div title={`${app.name} (${app.id})`} className="grow text-components-input-text-filled system-sm-medium">
+ <div title={`${app.name} (${app.id})`} className="grow system-sm-medium text-components-input-text-filled">
<span className="mr-1">{app.name}</span>
<span className="text-text-tertiary">
(
@@ -207,7 +207,7 @@ const AppPicker: FC<Props> = ({
)
</span>
</div>
- <div className="shrink-0 text-text-tertiary system-2xs-medium-uppercase">{getAppType(app)}</div>
+ <div className="shrink-0 system-2xs-medium-uppercase text-text-tertiary">{getAppType(app)}</div>
</div>
))}
<div ref={observerTargetRef} className="h-4 w-full">
diff --git a/web/app/components/plugins/plugin-detail-panel/app-selector/index.tsx b/web/app/components/plugins/plugin-detail-panel/app-selector/index.tsx
index abd47b45923..97e144af6f0 100644
--- a/web/app/components/plugins/plugin-detail-panel/app-selector/index.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/app-selector/index.tsx
@@ -161,7 +161,7 @@ const AppSelector: FC<Props> = ({
<PortalToFollowElemContent className="z-1000">
<div className="relative min-h-20 w-[389px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg backdrop-blur-xs">
<div className="flex flex-col gap-1 px-4 py-3">
- <div className="flex h-6 items-center text-text-secondary system-sm-semibold">{t('appSelector.label', { ns: 'app' })}</div>
+ <div className="flex h-6 items-center system-sm-semibold text-text-secondary">{t('appSelector.label', { ns: 'app' })}</div>
<AppPicker
placement="bottom"
offset={offset}
diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header/components/header-modals.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header/components/header-modals.tsx
index ce977053676..3bf24a19b71 100644
--- a/web/app/components/plugins/plugin-detail-panel/detail-header/components/header-modals.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/detail-header/components/header-modals.tsx
@@ -75,13 +75,13 @@ const HeaderModals: FC<HeaderModalsProps> = ({
}}
>
<AlertDialogContent backdropProps={{ forceRender: true }}>
- <div className="flex flex-col gap-2 px-6 pb-4 pt-6">
- <AlertDialogTitle className="text-text-primary title-2xl-semi-bold">
+ <div className="flex flex-col gap-2 px-6 pt-6 pb-4">
+ <AlertDialogTitle className="title-2xl-semi-bold text-text-primary">
{t(`${i18nPrefix}.delete`, { ns: 'plugin' })}
</AlertDialogTitle>
- <AlertDialogDescription className="w-full whitespace-pre-wrap wrap-break-word text-text-tertiary system-md-regular">
+ <AlertDialogDescription className="w-full system-md-regular wrap-break-word whitespace-pre-wrap text-text-tertiary">
{t(`${i18nPrefix}.deleteContentLeft`, { ns: 'plugin' })}
- <span className="text-text-secondary system-md-semibold">{label[locale]}</span>
+ <span className="system-md-semibold text-text-secondary">{label[locale]}</span>
{t(`${i18nPrefix}.deleteContentRight`, { ns: 'plugin' })}
</AlertDialogDescription>
</div>
diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header/components/plugin-source-badge.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header/components/plugin-source-badge.tsx
index e886cec4da4..ba15815cdec 100644
--- a/web/app/components/plugins/plugin-detail-panel/detail-header/components/plugin-source-badge.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/detail-header/components/plugin-source-badge.tsx
@@ -48,7 +48,7 @@ const PluginSourceBadge: FC<PluginSourceBadgeProps> = ({ source }) => {
return (
<>
- <div className="system-xs-regular ml-1 mr-0.5 text-text-quaternary">·</div>
+ <div className="mr-0.5 ml-1 system-xs-regular text-text-quaternary">·</div>
<Tooltip popupContent={t(config.tipKey as never, { ns: 'plugin' })}>
<div>{config.icon}</div>
</Tooltip>
diff --git a/web/app/components/plugins/plugin-detail-panel/model-list.tsx b/web/app/components/plugins/plugin-detail-panel/model-list.tsx
index cc8ecc29984..21c7a88ffb7 100644
--- a/web/app/components/plugins/plugin-detail-panel/model-list.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/model-list.tsx
@@ -20,7 +20,7 @@ const ModelList = ({
return (
<div className="px-4 py-2">
- <div className="system-sm-semibold-uppercase mb-1 flex h-6 items-center text-text-secondary">{t('detailPanel.modelNum', { ns: 'plugin', num: res.data.length })}</div>
+ <div className="mb-1 flex h-6 items-center system-sm-semibold-uppercase text-text-secondary">{t('detailPanel.modelNum', { ns: 'plugin', num: res.data.length })}</div>
<div className="flex flex-col">
{res.data.map(model => (
<div key={model.model} className="flex h-6 items-center py-1">
@@ -30,7 +30,7 @@ const ModelList = ({
modelName={model.model}
/>
<ModelName
- className="system-md-regular grow text-text-secondary"
+ className="grow system-md-regular text-text-secondary"
modelItem={model}
showModelType
showMode
diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/components/modal-steps.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/components/modal-steps.tsx
index e21e49040e4..2cc5e58167f 100644
--- a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/components/modal-steps.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/components/modal-steps.tsx
@@ -21,7 +21,7 @@ type StatusStepProps = {
const StatusStep = ({ isActive, text }: StatusStepProps) => {
return (
- <div className={`system-2xs-semibold-uppercase flex items-center gap-1 ${isActive
+ <div className={`flex items-center gap-1 system-2xs-semibold-uppercase ${isActive
? 'text-state-accent-solid'
: 'text-text-tertiary'}`}
>
diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/schema-modal.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/schema-modal.tsx
index 8934f8c6af2..c01848ea59d 100644
--- a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/schema-modal.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/schema-modal.tsx
@@ -31,11 +31,11 @@ const SchemaModal: FC<Props> = ({
>
<div className="pb-6">
{/* Header */}
- <div className="relative flex p-6 pb-3 pr-14">
- <div className="title-2xl-semi-bold grow truncate text-text-primary">
+ <div className="relative flex p-6 pr-14 pb-3">
+ <div className="grow truncate title-2xl-semi-bold text-text-primary">
{t('nodes.agent.parameterSchema', { ns: 'workflow' })}
</div>
- <div className="absolute right-5 top-5 flex h-8 w-8 items-center justify-center p-1.5" onClick={onClose}>
+ <div className="absolute top-5 right-5 flex h-8 w-8 items-center justify-center p-1.5" onClick={onClose}>
<RiCloseLine className="h-[18px] w-[18px] text-text-tertiary" />
</div>
</div>
diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-base-form.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-base-form.tsx
index be87684f566..c3f8be2e51a 100644
--- a/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-base-form.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/components/tool-base-form.tsx
@@ -47,7 +47,7 @@ const ToolBaseForm: FC<ToolBaseFormProps> = ({
<div className="flex flex-col gap-3 px-4 py-2">
{/* Tool picker */}
<div className="flex flex-col gap-1">
- <div className="system-sm-semibold flex h-6 items-center justify-between text-text-secondary">
+ <div className="flex h-6 items-center justify-between system-sm-semibold text-text-secondary">
{t('detailPanel.toolSelector.toolLabel', { ns: 'plugin' })}
{currentProvider?.plugin_unique_identifier && (
<ReadmeEntrance
@@ -80,7 +80,7 @@ const ToolBaseForm: FC<ToolBaseFormProps> = ({
{/* Description */}
<div className="flex flex-col gap-1">
- <div className="system-sm-semibold flex h-6 items-center text-text-secondary">
+ <div className="flex h-6 items-center system-sm-semibold text-text-secondary">
{t('detailPanel.toolSelector.descriptionLabel', { ns: 'plugin' })}
</div>
<Textarea
diff --git a/web/app/components/plugins/plugin-page/plugin-tasks/components/plugin-item.tsx b/web/app/components/plugins/plugin-page/plugin-tasks/components/plugin-item.tsx
index ca9963e426c..f627047b24e 100644
--- a/web/app/components/plugins/plugin-page/plugin-tasks/components/plugin-item.tsx
+++ b/web/app/components/plugins/plugin-page/plugin-tasks/components/plugin-item.tsx
@@ -31,12 +31,12 @@ const PluginItem: FC<PluginItemProps> = ({
size="small"
src={getIconUrl(plugin.icon)}
/>
- <div className="absolute -bottom-0.5 -right-0.5 z-10">
+ <div className="absolute -right-0.5 -bottom-0.5 z-10">
{statusIcon}
</div>
</div>
<div className="flex min-w-0 grow flex-col gap-0.5 px-1">
- <div className="truncate text-text-secondary system-sm-medium">
+ <div className="truncate system-sm-medium text-text-secondary">
{plugin.labels[language]}
</div>
<div className={`system-xs-regular ${statusClassName || 'text-text-tertiary'}`}>
@@ -47,7 +47,7 @@ const PluginItem: FC<PluginItemProps> = ({
{onClear && (
<button
type="button"
- className="hidden h-6 w-6 shrink-0 items-center justify-center rounded-md hover:bg-state-base-hover-alt group-hover/item:flex"
+ className="hidden h-6 w-6 shrink-0 items-center justify-center rounded-md group-hover/item:flex hover:bg-state-base-hover-alt"
onClick={onClear}
>
<span className="i-ri-close-line h-4 w-4 text-text-tertiary" />
diff --git a/web/app/components/plugins/plugin-page/plugin-tasks/components/plugin-section.tsx b/web/app/components/plugins/plugin-page/plugin-tasks/components/plugin-section.tsx
index 838d2c31191..418c442e11e 100644
--- a/web/app/components/plugins/plugin-page/plugin-tasks/components/plugin-section.tsx
+++ b/web/app/components/plugins/plugin-page/plugin-tasks/components/plugin-section.tsx
@@ -35,7 +35,7 @@ const PluginSection: FC<PluginSectionProps> = ({
return (
<>
- <div className="sticky top-0 flex h-7 items-center justify-between px-2 pt-1 text-text-secondary system-sm-semibold-uppercase">
+ <div className="sticky top-0 flex h-7 items-center justify-between px-2 pt-1 system-sm-semibold-uppercase text-text-secondary">
{title}
{' '}
(
diff --git a/web/app/components/plugins/reference-setting-modal/auto-update-setting/tool-item.tsx b/web/app/components/plugins/reference-setting-modal/auto-update-setting/tool-item.tsx
index 5a6dc081812..e5dbc24b8fd 100644
--- a/web/app/components/plugins/reference-setting-modal/auto-update-setting/tool-item.tsx
+++ b/web/app/components/plugins/reference-setting-modal/auto-update-setting/tool-item.tsx
@@ -26,12 +26,12 @@ const ToolItem: FC<Props> = ({
return (
<div className="p-1">
<div
- className="flex w-full select-none items-center rounded-lg pr-2 hover:bg-state-base-hover"
+ className="flex w-full items-center rounded-lg pr-2 select-none hover:bg-state-base-hover"
>
- <div className="flex h-8 grow items-center space-x-2 pl-3 pr-2">
+ <div className="flex h-8 grow items-center space-x-2 pr-2 pl-3">
<Icon size="tiny" src={`${MARKETPLACE_API_PREFIX}/plugins/${plugin_id}/icon`} />
- <div className="system-sm-medium max-w-[150px] shrink-0 truncate text-text-primary">{renderI18nObject(label, language)}</div>
- <div className="system-xs-regular max-w-[150px] shrink-0 truncate text-text-quaternary">{org}</div>
+ <div className="max-w-[150px] shrink-0 truncate system-sm-medium text-text-primary">{renderI18nObject(label, language)}</div>
+ <div className="max-w-[150px] shrink-0 truncate system-xs-regular text-text-quaternary">{org}</div>
</div>
<Checkbox
checked={isChecked}
diff --git a/web/app/components/rag-pipeline/components/chunk-card-list/q-a-item.tsx b/web/app/components/rag-pipeline/components/chunk-card-list/q-a-item.tsx
index bd317a2ce45..99dde5bbe4d 100644
--- a/web/app/components/rag-pipeline/components/chunk-card-list/q-a-item.tsx
+++ b/web/app/components/rag-pipeline/components/chunk-card-list/q-a-item.tsx
@@ -10,8 +10,8 @@ const QAItem = (props: QAItemProps) => {
const { type, text } = props
return (
<div className="inline-flex items-start justify-start gap-1 self-stretch">
- <div className="w-4 text-[13px] font-medium leading-5 text-text-tertiary">{type === QAItemType.Question ? 'Q' : 'A'}</div>
- <div className="body-md-regular flex-1 text-text-secondary">{text}</div>
+ <div className="w-4 text-[13px] leading-5 font-medium text-text-tertiary">{type === QAItemType.Question ? 'Q' : 'A'}</div>
+ <div className="flex-1 body-md-regular text-text-secondary">{text}</div>
</div>
)
}
diff --git a/web/app/components/rag-pipeline/components/panel/input-field/editor/form/show-all-settings.tsx b/web/app/components/rag-pipeline/components/panel/input-field/editor/form/show-all-settings.tsx
index af79aacf547..d8811884464 100644
--- a/web/app/components/rag-pipeline/components/panel/input-field/editor/form/show-all-settings.tsx
+++ b/web/app/components/rag-pipeline/components/panel/input-field/editor/form/show-all-settings.tsx
@@ -26,10 +26,10 @@ const ShowAllSettings = ({
return (
<div className="flex cursor-pointer items-center gap-x-4" onClick={handleShowAllSettings}>
<div className="flex grow flex-col">
- <span className="system-sm-medium flex min-h-6 items-center text-text-secondary">
+ <span className="flex min-h-6 items-center system-sm-medium text-text-secondary">
{t('variableConfig.showAllSettings', { ns: 'appDebug' })}
</span>
- <span className="body-xs-regular pb-0.5 text-text-tertiary first-letter:capitalize">
+ <span className="pb-0.5 body-xs-regular text-text-tertiary first-letter:capitalize">
{hiddenFieldNames}
</span>
</div>
diff --git a/web/app/components/rag-pipeline/components/panel/input-field/preview/data-source.tsx b/web/app/components/rag-pipeline/components/panel/input-field/preview/data-source.tsx
index 86699ddd88d..7657d114064 100644
--- a/web/app/components/rag-pipeline/components/panel/input-field/preview/data-source.tsx
+++ b/web/app/components/rag-pipeline/components/panel/input-field/preview/data-source.tsx
@@ -24,7 +24,7 @@ const DataSource = ({
return (
<div className="flex flex-col">
- <div className="system-sm-semibold-uppercase px-4 pt-2 text-text-secondary">
+ <div className="px-4 pt-2 system-sm-semibold-uppercase text-text-secondary">
{t('inputFieldPanel.preview.stepOneTitle', { ns: 'datasetPipeline' })}
</div>
<div className="px-4 py-2">
diff --git a/web/app/components/rag-pipeline/components/panel/input-field/preview/process-documents.tsx b/web/app/components/rag-pipeline/components/panel/input-field/preview/process-documents.tsx
index b70d40a4d7d..fc72810d1c8 100644
--- a/web/app/components/rag-pipeline/components/panel/input-field/preview/process-documents.tsx
+++ b/web/app/components/rag-pipeline/components/panel/input-field/preview/process-documents.tsx
@@ -20,7 +20,7 @@ const ProcessDocuments = ({
return (
<div className="flex flex-col">
- <div className="system-sm-semibold-uppercase px-4 pt-2 text-text-secondary">
+ <div className="px-4 pt-2 system-sm-semibold-uppercase text-text-secondary">
{t('inputFieldPanel.preview.stepTwoTitle', { ns: 'datasetPipeline' })}
</div>
<Form variables={paramsConfig?.variables || []} />
diff --git a/web/app/components/rag-pipeline/components/panel/test-run/header.tsx b/web/app/components/rag-pipeline/components/panel/test-run/header.tsx
index c9de890b076..bab93a1a669 100644
--- a/web/app/components/rag-pipeline/components/panel/test-run/header.tsx
+++ b/web/app/components/rag-pipeline/components/panel/test-run/header.tsx
@@ -22,8 +22,8 @@ const Header = () => {
}, [workflowStore])
return (
- <div className="flex items-center gap-x-2 pl-4 pr-3 pt-4">
- <div className="system-xl-semibold grow pl-1 pr-8 text-text-primary">
+ <div className="flex items-center gap-x-2 pt-4 pr-3 pl-4">
+ <div className="grow pr-8 pl-1 system-xl-semibold text-text-primary">
{t('testRun.title', { ns: 'datasetPipeline' })}
</div>
<button
diff --git a/web/app/components/rag-pipeline/components/panel/test-run/preparation/document-processing/options.tsx b/web/app/components/rag-pipeline/components/panel/test-run/preparation/document-processing/options.tsx
index 0e904dae7a8..7e6baa42b1f 100644
--- a/web/app/components/rag-pipeline/components/panel/test-run/preparation/document-processing/options.tsx
+++ b/web/app/components/rag-pipeline/components/panel/test-run/preparation/document-processing/options.tsx
@@ -41,7 +41,7 @@ const Options = ({ initialData, configurations, schema, CustomActions, onSubmit
form.handleSubmit()
}}
>
- <div className="flex flex-col gap-3 px-4 pb-6 pt-3">
+ <div className="flex flex-col gap-3 px-4 pt-3 pb-6">
{configurations.map((config, index) => {
const FieldComponent = BaseField({
initialData,
diff --git a/web/app/components/rag-pipeline/components/panel/test-run/preparation/footer-tips.tsx b/web/app/components/rag-pipeline/components/panel/test-run/preparation/footer-tips.tsx
index b9f35842e92..b4695abd5fd 100644
--- a/web/app/components/rag-pipeline/components/panel/test-run/preparation/footer-tips.tsx
+++ b/web/app/components/rag-pipeline/components/panel/test-run/preparation/footer-tips.tsx
@@ -5,7 +5,7 @@ const FooterTips = () => {
const { t } = useTranslation()
return (
- <div className="system-xs-regular flex grow flex-col justify-end p-4 pt-2 text-text-tertiary">
+ <div className="flex grow flex-col justify-end p-4 pt-2 system-xs-regular text-text-tertiary">
{t('testRun.tooltip', { ns: 'datasetPipeline' })}
</div>
)
diff --git a/web/app/components/rag-pipeline/components/publish-toast.tsx b/web/app/components/rag-pipeline/components/publish-toast.tsx
index 53a7cf4dd4e..2ca92081c87 100644
--- a/web/app/components/rag-pipeline/components/publish-toast.tsx
+++ b/web/app/components/rag-pipeline/components/publish-toast.tsx
@@ -18,7 +18,7 @@ const PublishToast = () => {
return null
return (
- <div className="pointer-events-none absolute bottom-[45px] left-0 right-0 z-10 flex justify-center">
+ <div className="pointer-events-none absolute right-0 bottom-[45px] left-0 z-10 flex justify-center">
<div
className="relative flex w-[420px] space-x-1 overflow-hidden rounded-xl border border-components-panel-border bg-components-panel-bg-blur p-3 shadow-lg"
>
@@ -28,7 +28,7 @@ const PublishToast = () => {
<RiInformation2Fill className="text-text-accent" />
</div>
<div className="p-1">
- <div className="system-sm-semibold mb-1 text-text-primary">{t('publishToast.title', { ns: 'pipeline' })}</div>
+ <div className="mb-1 system-sm-semibold text-text-primary">{t('publishToast.title', { ns: 'pipeline' })}</div>
<div className="system-xs-regular text-text-secondary">
{t('publishToast.desc', { ns: 'pipeline' })}
</div>
diff --git a/web/app/components/share/text-generation/no-data/index.tsx b/web/app/components/share/text-generation/no-data/index.tsx
index 5885f607543..2f253060155 100644
--- a/web/app/components/share/text-generation/no-data/index.tsx
+++ b/web/app/components/share/text-generation/no-data/index.tsx
@@ -12,7 +12,7 @@ const NoData: FC<INoDataProps> = () => {
<div className="flex h-full w-full flex-col items-center justify-center">
<RiSparklingFill className="h-12 w-12 text-text-empty-state-icon" />
<div
- className="system-sm-regular mt-2 text-text-quaternary"
+ className="mt-2 system-sm-regular text-text-quaternary"
>
{t('generation.noData', { ns: 'share' })}
</div>
diff --git a/web/app/components/share/text-generation/run-batch/csv-download/index.tsx b/web/app/components/share/text-generation/run-batch/csv-download/index.tsx
index a179029cb76..301ba13492a 100644
--- a/web/app/components/share/text-generation/run-batch/csv-download/index.tsx
+++ b/web/app/components/share/text-generation/run-batch/csv-download/index.tsx
@@ -33,7 +33,7 @@ const CSVDownload: FC<ICSVDownloadProps> = ({
<thead className="text-text-tertiary">
<tr>
{addQueryContentVars.map((item, i) => (
- <td key={i} className="h-9 border-b border-divider-regular pl-3 pr-2">{item.name}</td>
+ <td key={i} className="h-9 border-b border-divider-regular pr-2 pl-3">{item.name}</td>
))}
</tr>
</thead>
@@ -62,7 +62,7 @@ const CSVDownload: FC<ICSVDownloadProps> = ({
template,
]}
>
- <div className="system-xs-medium flex h-[18px] items-center space-x-1 text-text-accent">
+ <div className="flex h-[18px] items-center space-x-1 system-xs-medium text-text-accent">
<DownloadIcon className="h-3 w-3" />
<span>{t('generation.downloadTemplate', { ns: 'share' })}</span>
</div>
diff --git a/web/app/components/signin/countdown.tsx b/web/app/components/signin/countdown.tsx
index 8eefd1c945b..651a2fb430c 100644
--- a/web/app/components/signin/countdown.tsx
+++ b/web/app/components/signin/countdown.tsx
@@ -41,7 +41,7 @@ export default function Countdown({ onResend }: CountdownProps) {
</span>
)}
{
- time <= 0 && <span className="system-xs-medium cursor-pointer text-text-accent-secondary" onClick={resend}>{t('checkCode.resend', { ns: 'login' })}</span>
+ time <= 0 && <span className="cursor-pointer system-xs-medium text-text-accent-secondary" onClick={resend}>{t('checkCode.resend', { ns: 'login' })}</span>
}
</p>
)
diff --git a/web/app/components/tools/marketplace/index.tsx b/web/app/components/tools/marketplace/index.tsx
index 449f0b8b4a8..e7d6a22d422 100644
--- a/web/app/components/tools/marketplace/index.tsx
+++ b/web/app/components/tools/marketplace/index.tsx
@@ -37,50 +37,50 @@ const Marketplace = ({
return (
<>
- <div className="sticky bottom-0 flex shrink-0 flex-col bg-background-default-subtle px-12 pb-[14px] pt-2">
+ <div className="sticky bottom-0 flex shrink-0 flex-col bg-background-default-subtle px-12 pt-2 pb-[14px]">
{isMarketplaceArrowVisible && (
<RiArrowUpDoubleLine
- className="absolute left-1/2 top-2 z-10 h-4 w-4 -translate-x-1/2 cursor-pointer text-text-quaternary"
+ className="absolute top-2 left-1/2 z-10 h-4 w-4 -translate-x-1/2 cursor-pointer text-text-quaternary"
onClick={showMarketplacePanel}
/>
)}
- <div className="pb-3 pt-4">
- <div className="title-2xl-semi-bold bg-linear-to-r from-[rgba(11,165,236,0.95)] to-[rgba(21,90,239,0.95)] bg-clip-text text-transparent">
+ <div className="pt-4 pb-3">
+ <div className="bg-linear-to-r from-[rgba(11,165,236,0.95)] to-[rgba(21,90,239,0.95)] bg-clip-text title-2xl-semi-bold text-transparent">
{t('marketplace.moreFrom', { ns: 'plugin' })}
</div>
- <div className="body-md-regular flex items-center text-center text-text-tertiary">
+ <div className="flex items-center text-center body-md-regular text-text-tertiary">
{t('marketplace.discover', { ns: 'plugin' })}
- <span className="body-md-medium relative ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.models', { ns: 'plugin' })}
</span>
,
- <span className="body-md-medium relative ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.tools', { ns: 'plugin' })}
</span>
,
- <span className="body-md-medium relative ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.datasources', { ns: 'plugin' })}
</span>
,
- <span className="body-md-medium relative ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.triggers', { ns: 'plugin' })}
</span>
,
- <span className="body-md-medium relative ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.agents', { ns: 'plugin' })}
</span>
,
- <span className="body-md-medium relative ml-1 mr-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative mr-1 ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.extensions', { ns: 'plugin' })}
</span>
{t('marketplace.and', { ns: 'plugin' })}
- <span className="body-md-medium relative ml-1 mr-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
+ <span className="relative mr-1 ml-1 body-md-medium text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
{t('category.bundles', { ns: 'plugin' })}
</span>
{t('operation.in', { ns: 'common' })}
<a
href={getMarketplaceUrl('', { language: locale, q: searchPluginText, tags: filterPluginTags.join(','), theme })}
- className="system-sm-medium ml-1 flex items-center text-text-accent"
+ className="ml-1 flex items-center system-sm-medium text-text-accent"
target="_blank"
>
{t('marketplace.difyMarketplace', { ns: 'plugin' })}
@@ -92,7 +92,7 @@ const Marketplace = ({
<div className="mt-[-14px] shrink-0 grow bg-background-default-subtle px-12 pb-2">
{
isLoading && page === 1 && (
- <div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2">
+ <div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">
<Loading />
</div>
)
diff --git a/web/app/components/tools/mcp/create-card.tsx b/web/app/components/tools/mcp/create-card.tsx
index 6029c856a43..d96365b2dbe 100644
--- a/web/app/components/tools/mcp/create-card.tsx
+++ b/web/app/components/tools/mcp/create-card.tsx
@@ -41,13 +41,13 @@ const NewMCPCard = ({ handleCreate }: Props) => {
<div className="flex h-10 w-10 items-center justify-center rounded-lg border border-dashed border-divider-deep group-hover:border-solid group-hover:border-state-accent-hover-alt group-hover:bg-state-accent-hover">
<RiAddCircleFill className="h-4 w-4 text-text-quaternary group-hover:text-text-accent" />
</div>
- <div className="system-md-semibold ml-3 text-text-secondary group-hover:text-text-accent">{t('mcp.create.cardTitle', { ns: 'tools' })}</div>
+ <div className="ml-3 system-md-semibold text-text-secondary group-hover:text-text-accent">{t('mcp.create.cardTitle', { ns: 'tools' })}</div>
</div>
</div>
<div className="rounded-b-xl border-t-[0.5px] border-divider-subtle px-4 py-3 text-text-tertiary hover:text-text-accent">
<a href={linkUrl} target="_blank" rel="noopener noreferrer" className="flex items-center space-x-1">
<RiBookOpenLine className="h-3 w-3 shrink-0" />
- <div className="system-xs-regular grow truncate" title={t('mcp.create.cardLink', { ns: 'tools' }) || ''}>{t('mcp.create.cardLink', { ns: 'tools' })}</div>
+ <div className="grow truncate system-xs-regular" title={t('mcp.create.cardLink', { ns: 'tools' }) || ''}>{t('mcp.create.cardLink', { ns: 'tools' })}</div>
<RiArrowRightUpLine className="h-3 w-3 shrink-0" />
</a>
</div>
diff --git a/web/app/components/tools/mcp/sections/headers-section.tsx b/web/app/components/tools/mcp/sections/headers-section.tsx
index 052b05b207b..8b46c8605d2 100644
--- a/web/app/components/tools/mcp/sections/headers-section.tsx
+++ b/web/app/components/tools/mcp/sections/headers-section.tsx
@@ -22,7 +22,7 @@ const HeadersSection: FC<HeadersSectionProps> = ({
<div className="mb-1 flex h-6 items-center">
<span className="system-sm-medium text-text-secondary">{t('mcp.modal.headers', { ns: 'tools' })}</span>
</div>
- <div className="body-xs-regular mb-2 text-text-tertiary">{t('mcp.modal.headersTip', { ns: 'tools' })}</div>
+ <div className="mb-2 body-xs-regular text-text-tertiary">{t('mcp.modal.headersTip', { ns: 'tools' })}</div>
<HeadersInput
headersItems={headers}
onChange={onHeadersChange}
diff --git a/web/app/components/tools/provider/custom-create-card.tsx b/web/app/components/tools/provider/custom-create-card.tsx
index 15554cc40a1..f2154de18c3 100644
--- a/web/app/components/tools/provider/custom-create-card.tsx
+++ b/web/app/components/tools/provider/custom-create-card.tsx
@@ -35,7 +35,7 @@ const Contribute = ({ onRefreshData }: Props) => {
<div className="flex h-10 w-10 items-center justify-center rounded-lg border border-dashed border-divider-deep group-hover:border-solid group-hover:border-state-accent-hover-alt group-hover:bg-state-accent-hover">
<RiAddCircleFill className="h-4 w-4 text-text-quaternary group-hover:text-text-accent" />
</div>
- <div className="system-md-semibold ml-3 text-text-secondary group-hover:text-text-accent">{t('createCustomTool', { ns: 'tools' })}</div>
+ <div className="ml-3 system-md-semibold text-text-secondary group-hover:text-text-accent">{t('createCustomTool', { ns: 'tools' })}</div>
</div>
</div>
</div>
diff --git a/web/app/components/workflow-app/components/workflow-onboarding-modal/start-node-option.tsx b/web/app/components/workflow-app/components/workflow-onboarding-modal/start-node-option.tsx
index 8b1ce699e72..07eb8ffe3c1 100644
--- a/web/app/components/workflow-app/components/workflow-onboarding-modal/start-node-option.tsx
+++ b/web/app/components/workflow-app/components/workflow-onboarding-modal/start-node-option.tsx
@@ -30,7 +30,7 @@ const StartNodeOption: FC<StartNodeOptionProps> = ({
<h3 className="text-text-primary">
{title}
{subtitle && (
- <span className="text-text-quaternary system-md-regular">
+ <span className="system-md-regular text-text-quaternary">
{' '}
{subtitle}
</span>
@@ -39,7 +39,7 @@ const StartNodeOption: FC<StartNodeOptionProps> = ({
</div>
<div className="h-12 leading-4">
- <p className="text-text-tertiary system-xs-regular">
+ <p className="system-xs-regular text-text-tertiary">
{description}
</p>
</div>
diff --git a/web/app/components/workflow/block-selector/blocks.tsx b/web/app/components/workflow/block-selector/blocks.tsx
index 97792afd922..7179a7c4580 100644
--- a/web/app/components/workflow/block-selector/blocks.tsx
+++ b/web/app/components/workflow/block-selector/blocks.tsx
@@ -105,7 +105,7 @@ const Blocks = ({
className="mb-2"
type={block.metaData.type}
/>
- <div className="system-md-medium mb-1 text-text-primary">{block.metaData.title}</div>
+ <div className="mb-1 system-md-medium text-text-primary">{block.metaData.title}</div>
<div className="system-xs-regular text-text-tertiary">{block.metaData.description}</div>
</div>
)}
diff --git a/web/app/components/workflow/block-selector/featured-tools.tsx b/web/app/components/workflow/block-selector/featured-tools.tsx
index b57298bcc81..68c6d63a527 100644
--- a/web/app/components/workflow/block-selector/featured-tools.tsx
+++ b/web/app/components/workflow/block-selector/featured-tools.tsx
@@ -126,7 +126,7 @@ const FeaturedTools = ({
const showEmptyState = !isLoading && totalVisible === 0
return (
- <div className="px-3 pb-3 pt-2">
+ <div className="px-3 pt-2 pb-3">
<button
type="button"
className="flex w-full items-center rounded-md px-0 py-1 text-left text-text-primary"
@@ -145,7 +145,7 @@ const FeaturedTools = ({
)}
{showEmptyState && (
- <p className="system-xs-regular py-2 text-text-tertiary">
+ <p className="py-2 system-xs-regular text-text-tertiary">
<Link className="text-text-accent" href={getMarketplaceUrl('', { category: 'tool' })} target="_blank" rel="noopener noreferrer">
{t('tabs.noFeaturedPlugins', { ns: 'workflow' })}
</Link>
@@ -187,7 +187,7 @@ const FeaturedTools = ({
{!isLoading && totalVisible > 0 && canToggleVisibility && (
<div
- className="group mt-1 flex cursor-pointer items-center gap-x-2 rounded-lg py-1 pl-3 pr-2 text-text-tertiary transition-colors hover:bg-state-base-hover hover:text-text-secondary"
+ className="group mt-1 flex cursor-pointer items-center gap-x-2 rounded-lg py-1 pr-2 pl-3 text-text-tertiary transition-colors hover:bg-state-base-hover hover:text-text-secondary"
onClick={() => {
setVisibleCount((count) => {
if (count >= maxAvailable)
@@ -270,18 +270,18 @@ function FeaturedToolUninstalledItem({
disabled={!description || isActionHovered || actionOpen || isInstallModalOpen}
>
<div
- className="group flex h-8 w-full items-center rounded-lg pl-3 pr-1 hover:bg-state-base-hover"
+ className="group flex h-8 w-full items-center rounded-lg pr-1 pl-3 hover:bg-state-base-hover"
>
<div className="flex h-full min-w-0 items-center">
<BlockIcon type={BlockEnum.Tool} toolIcon={plugin.icon} />
<div className="ml-2 min-w-0">
- <div className="system-sm-medium truncate text-text-secondary">{label}</div>
+ <div className="truncate system-sm-medium text-text-secondary">{label}</div>
</div>
</div>
<div className="ml-auto flex h-full items-center gap-1 pl-1">
<span className={`system-xs-regular text-text-tertiary ${actionOpen ? 'hidden' : 'group-hover:hidden'}`}>{installCountLabel}</span>
<div
- className={`system-xs-medium flex h-full items-center gap-1 text-components-button-secondary-accent-text [&_.action-btn]:h-6 [&_.action-btn]:min-h-0 [&_.action-btn]:w-6 [&_.action-btn]:rounded-lg [&_.action-btn]:p-0 ${actionOpen ? 'flex' : 'hidden group-hover:flex'}`}
+ className={`flex h-full items-center gap-1 system-xs-medium text-components-button-secondary-accent-text [&_.action-btn]:h-6 [&_.action-btn]:min-h-0 [&_.action-btn]:w-6 [&_.action-btn]:rounded-lg [&_.action-btn]:p-0 ${actionOpen ? '' : 'hidden group-hover:flex'}`}
onMouseEnter={() => setIsActionHovered(true)}
onMouseLeave={() => {
if (!actionOpen)
diff --git a/web/app/components/workflow/block-selector/featured-triggers.tsx b/web/app/components/workflow/block-selector/featured-triggers.tsx
index 38b74e5b115..c7c83410a68 100644
--- a/web/app/components/workflow/block-selector/featured-triggers.tsx
+++ b/web/app/components/workflow/block-selector/featured-triggers.tsx
@@ -121,7 +121,7 @@ const FeaturedTriggers = ({
const showEmptyState = !isLoading && totalVisible === 0
return (
- <div className="px-3 pb-3 pt-2">
+ <div className="px-3 pt-2 pb-3">
<button
type="button"
className="flex w-full items-center rounded-md px-0 py-1 text-left text-text-primary"
@@ -140,7 +140,7 @@ const FeaturedTriggers = ({
)}
{showEmptyState && (
- <p className="system-xs-regular py-2 text-text-tertiary">
+ <p className="py-2 system-xs-regular text-text-tertiary">
<Link className="text-text-accent" href={getMarketplaceUrl('', { category: 'trigger' })} target="_blank" rel="noopener noreferrer">
{t('tabs.noFeaturedTriggers', { ns: 'workflow' })}
</Link>
@@ -182,7 +182,7 @@ const FeaturedTriggers = ({
{!isLoading && totalVisible > 0 && canToggleVisibility && (
<div
- className="group mt-1 flex cursor-pointer items-center gap-x-2 rounded-lg py-1 pl-3 pr-2 text-text-tertiary transition-colors hover:bg-state-base-hover hover:text-text-secondary"
+ className="group mt-1 flex cursor-pointer items-center gap-x-2 rounded-lg py-1 pr-2 pl-3 text-text-tertiary transition-colors hover:bg-state-base-hover hover:text-text-secondary"
onClick={() => {
setVisibleCount((count) => {
if (count >= maxAvailable)
@@ -265,18 +265,18 @@ function FeaturedTriggerUninstalledItem({
disabled={!description || isActionHovered || actionOpen || isInstallModalOpen}
>
<div
- className="group flex h-8 w-full items-center rounded-lg pl-3 pr-1 hover:bg-state-base-hover"
+ className="group flex h-8 w-full items-center rounded-lg pr-1 pl-3 hover:bg-state-base-hover"
>
<div className="flex h-full min-w-0 items-center">
<BlockIcon type={BlockEnum.TriggerPlugin} toolIcon={plugin.icon} />
<div className="ml-2 min-w-0">
- <div className="system-sm-medium truncate text-text-secondary">{label}</div>
+ <div className="truncate system-sm-medium text-text-secondary">{label}</div>
</div>
</div>
<div className="ml-auto flex h-full items-center gap-1 pl-1">
<span className={`system-xs-regular text-text-tertiary ${actionOpen ? 'hidden' : 'group-hover:hidden'}`}>{installCountLabel}</span>
<div
- className={`system-xs-medium flex h-full items-center gap-1 text-components-button-secondary-accent-text [&_.action-btn]:h-6 [&_.action-btn]:min-h-0 [&_.action-btn]:w-6 [&_.action-btn]:rounded-lg [&_.action-btn]:p-0 ${actionOpen ? 'flex' : 'hidden group-hover:flex'}`}
+ className={`flex h-full items-center gap-1 system-xs-medium text-components-button-secondary-accent-text [&_.action-btn]:h-6 [&_.action-btn]:min-h-0 [&_.action-btn]:w-6 [&_.action-btn]:rounded-lg [&_.action-btn]:p-0 ${actionOpen ? '' : 'hidden group-hover:flex'}`}
onMouseEnter={() => setIsActionHovered(true)}
onMouseLeave={() => {
if (!actionOpen)
diff --git a/web/app/components/workflow/block-selector/rag-tool-recommendations/index.tsx b/web/app/components/workflow/block-selector/rag-tool-recommendations/index.tsx
index 77acd5b3005..1176a0a388f 100644
--- a/web/app/components/workflow/block-selector/rag-tool-recommendations/index.tsx
+++ b/web/app/components/workflow/block-selector/rag-tool-recommendations/index.tsx
@@ -80,7 +80,7 @@ const RAGToolRecommendations = ({
<div className="flex flex-col p-1">
<button
type="button"
- className="flex w-full items-center rounded-md px-3 pb-0.5 pt-1 text-left text-text-tertiary"
+ className="flex w-full items-center rounded-md px-3 pt-1 pb-0.5 text-left text-text-tertiary"
onClick={() => setIsCollapsed(prev => !prev)}
>
<span className="system-xs-medium text-text-tertiary">{t('ragToolSuggestions.title', { ns: 'pipeline' })}</span>
@@ -95,7 +95,7 @@ const RAGToolRecommendations = ({
</div>
)}
{!isFetchingRAGRecommendedPlugins && recommendedPlugins.length === 0 && unInstalledPlugins.length === 0 && (
- <p className="system-xs-regular px-3 py-1 text-text-tertiary">
+ <p className="px-3 py-1 system-xs-regular text-text-tertiary">
<Trans
i18nKey="ragToolSuggestions.noRecommendationPlugins"
ns="pipeline"
@@ -121,7 +121,7 @@ const RAGToolRecommendations = ({
viewType={viewType}
/>
<div
- className="flex cursor-pointer items-center gap-x-2 py-1 pl-3 pr-2"
+ className="flex cursor-pointer items-center gap-x-2 py-1 pr-2 pl-3"
onClick={loadMore}
>
<div className="px-1">
diff --git a/web/app/components/workflow/block-selector/rag-tool-recommendations/uninstalled-item.tsx b/web/app/components/workflow/block-selector/rag-tool-recommendations/uninstalled-item.tsx
index 1badc2497c7..768edc5ace5 100644
--- a/web/app/components/workflow/block-selector/rag-tool-recommendations/uninstalled-item.tsx
+++ b/web/app/components/workflow/block-selector/rag-tool-recommendations/uninstalled-item.tsx
@@ -26,7 +26,7 @@ const UninstalledItem = ({
}] = useBoolean(false)
return (
- <div className="flex h-8 items-center rounded-lg pl-3 pr-2 hover:bg-state-base-hover">
+ <div className="flex h-8 items-center rounded-lg pr-2 pl-3 hover:bg-state-base-hover">
<BlockIcon
className="shrink-0"
type={BlockEnum.Tool}
@@ -34,7 +34,7 @@ const UninstalledItem = ({
/>
<div className="ml-2 flex w-0 grow items-center">
<div className="flex w-0 grow items-center gap-x-2">
- <span className="system-sm-regular truncate text-text-primary">
+ <span className="truncate system-sm-regular text-text-primary">
{getLocalizedText(payload.label)}
</span>
<span className="system-xs-regular text-text-quaternary">
@@ -42,7 +42,7 @@ const UninstalledItem = ({
</span>
</div>
<div
- className="system-xs-medium cursor-pointer pl-1.5 text-components-button-secondary-accent-text"
+ className="cursor-pointer pl-1.5 system-xs-medium text-components-button-secondary-accent-text"
onClick={showInstallModal}
>
{t('installAction', { ns: 'plugin' })}
diff --git a/web/app/components/workflow/block-selector/start-blocks.tsx b/web/app/components/workflow/block-selector/start-blocks.tsx
index 69d8989a07e..ef332844d5d 100644
--- a/web/app/components/workflow/block-selector/start-blocks.tsx
+++ b/web/app/components/workflow/block-selector/start-blocks.tsx
@@ -80,7 +80,7 @@ const StartBlocks = ({
className="mb-2"
type={block.type}
/>
- <div className="system-md-medium mb-1 text-text-primary">
+ <div className="mb-1 system-md-medium text-text-primary">
{block.type === BlockEnumValues.TriggerWebhook
? t('customWebhook', { ns: 'workflow' })
: t(`blocks.${block.type}`, { ns: 'workflow' })}
@@ -89,7 +89,7 @@ const StartBlocks = ({
{t(`blocksAbout.${block.type}`, { ns: 'workflow' })}
</div>
{(block.type === BlockEnumValues.TriggerWebhook || block.type === BlockEnumValues.TriggerSchedule) && (
- <div className="system-xs-regular mb-1 mt-1 text-text-tertiary">
+ <div className="mt-1 mb-1 system-xs-regular text-text-tertiary">
{t('author', { ns: 'tools' })}
{' '}
{t('difyTeam', { ns: 'workflow' })}
@@ -109,7 +109,7 @@ const StartBlocks = ({
<div className="flex w-0 grow items-center justify-between text-sm text-text-secondary">
<span className="truncate">{t(`blocks.${block.type}`, { ns: 'workflow' })}</span>
{block.type === BlockEnumValues.Start && (
- <span className="system-xs-regular ml-2 shrink-0 text-text-quaternary">{t('blocks.originalStartNode', { ns: 'workflow' })}</span>
+ <span className="ml-2 shrink-0 system-xs-regular text-text-quaternary">{t('blocks.originalStartNode', { ns: 'workflow' })}</span>
)}
</div>
</div>
diff --git a/web/app/components/workflow/comment/mention-input.tsx b/web/app/components/workflow/comment/mention-input.tsx
index b5d75d67346..287a1c2e551 100644
--- a/web/app/components/workflow/comment/mention-input.tsx
+++ b/web/app/components/workflow/comment/mention-input.tsx
@@ -511,7 +511,7 @@ const MentionInputInner = forwardRef<HTMLTextAreaElement, MentionInputProps>(({
<div
aria-hidden
className={cn(
- 'inset-0 pointer-events-none absolute z-0 overflow-hidden p-1 leading-6 break-words whitespace-pre-wrap',
+ 'pointer-events-none absolute inset-0 z-0 overflow-hidden p-1 leading-6 break-words whitespace-pre-wrap',
'body-lg-regular text-text-primary',
)}
style={{ paddingRight, paddingBottom }}
diff --git a/web/app/components/workflow/comment/thread.tsx b/web/app/components/workflow/comment/thread.tsx
index a23ac4241df..d0ab65db158 100644
--- a/web/app/components/workflow/comment/thread.tsx
+++ b/web/app/components/workflow/comment/thread.tsx
@@ -730,7 +730,7 @@ export const CommentThread: FC<CommentThreadProps> = memo(({
)}
</div>
{loading && (
- <div className="inset-0 absolute z-30 flex items-center justify-center bg-components-panel-bg/70 text-sm text-text-tertiary">
+ <div className="absolute inset-0 z-30 flex items-center justify-center bg-components-panel-bg/70 text-sm text-text-tertiary">
{t('comments.loading', { ns: 'workflow' })}
</div>
)}
diff --git a/web/app/components/workflow/header/editing-title.tsx b/web/app/components/workflow/header/editing-title.tsx
index 2f4797a98bd..f547eb3fe15 100644
--- a/web/app/components/workflow/header/editing-title.tsx
+++ b/web/app/components/workflow/header/editing-title.tsx
@@ -14,7 +14,7 @@ const EditingTitle = () => {
const maximizeCanvas = useStore(s => s.maximizeCanvas)
return (
- <div className={`system-xs-regular flex h-[18px] min-w-[300px] items-center whitespace-nowrap text-text-tertiary ${maximizeCanvas ? 'ml-2' : ''}`}>
+ <div className={`flex h-[18px] min-w-[300px] items-center system-xs-regular whitespace-nowrap text-text-tertiary ${maximizeCanvas ? 'ml-2' : ''}`}>
{
!!draftUpdatedAt && (
<>
diff --git a/web/app/components/workflow/header/index.tsx b/web/app/components/workflow/header/index.tsx
index 5e6b7142135..0cfb66b11c5 100644
--- a/web/app/components/workflow/header/index.tsx
+++ b/web/app/components/workflow/header/index.tsx
@@ -38,7 +38,7 @@ const Header = ({
return (
<div
- className="absolute left-0 top-7 z-10 flex h-0 w-full items-center justify-between bg-mask-top2bottom-gray-50-to-transparent px-3"
+ className="absolute top-7 left-0 z-10 flex h-0 w-full items-center justify-between bg-mask-top2bottom-gray-50-to-transparent px-3"
>
{(inWorkflowCanvas || isPipelineCanvas) && maximizeCanvas && <div className="h-14 w-[52px]" />}
{
diff --git a/web/app/components/workflow/header/restoring-title.tsx b/web/app/components/workflow/header/restoring-title.tsx
index 53568469f4a..36299b000d5 100644
--- a/web/app/components/workflow/header/restoring-title.tsx
+++ b/web/app/components/workflow/header/restoring-title.tsx
@@ -25,11 +25,11 @@ const RestoringTitle = () => {
<span className="system-sm-semibold text-text-primary">
{versionName}
</span>
- <span className="system-2xs-medium-uppercase rounded-[5px] border border-text-accent-secondary bg-components-badge-bg-dimm px-1 py-0.5 text-text-accent-secondary">
+ <span className="rounded-[5px] border border-text-accent-secondary bg-components-badge-bg-dimm px-1 py-0.5 system-2xs-medium-uppercase text-text-accent-secondary">
{t('common.viewOnly', { ns: 'workflow' })}
</span>
</div>
- <div className="system-xs-regular flex h-4 items-center gap-x-1 text-text-tertiary">
+ <div className="flex h-4 items-center gap-x-1 system-xs-regular text-text-tertiary">
{
currentVersion && (
<>
diff --git a/web/app/components/workflow/header/running-title.tsx b/web/app/components/workflow/header/running-title.tsx
index 590c6cd3294..e3e2ebab75e 100644
--- a/web/app/components/workflow/header/running-title.tsx
+++ b/web/app/components/workflow/header/running-title.tsx
@@ -15,7 +15,7 @@ const RunningTitle = () => {
<ClockPlay className="mr-1 h-3 w-3 text-gray-500" />
<span>{isChatMode ? `Test Chat${formatWorkflowRunIdentifier(historyWorkflowData?.finished_at)}` : `Test Run${formatWorkflowRunIdentifier(historyWorkflowData?.finished_at)}`}</span>
<span className="mx-1">·</span>
- <span className="ml-1 flex h-[18px] items-center rounded-[5px] border border-indigo-300 bg-white/48 px-1 text-[10px] font-semibold uppercase text-indigo-600">
+ <span className="ml-1 flex h-[18px] items-center rounded-[5px] border border-indigo-300 bg-white/48 px-1 text-[10px] font-semibold text-indigo-600 uppercase">
{t('common.viewOnly', { ns: 'workflow' })}
</span>
</div>
diff --git a/web/app/components/workflow/header/test-run-menu-helpers.tsx b/web/app/components/workflow/header/test-run-menu-helpers.tsx
index dbe6b616a08..1c34761df64 100644
--- a/web/app/components/workflow/header/test-run-menu-helpers.tsx
+++ b/web/app/components/workflow/header/test-run-menu-helpers.tsx
@@ -29,7 +29,7 @@ export const OptionRow = ({
return (
<div
key={option.id}
- className="flex cursor-pointer items-center rounded-lg px-3 py-1.5 text-text-secondary system-md-regular hover:bg-state-base-hover"
+ className="flex cursor-pointer items-center rounded-lg px-3 py-1.5 system-md-regular text-text-secondary hover:bg-state-base-hover"
onClick={() => onSelect(option)}
>
<div className="flex min-w-0 flex-1 items-center">
diff --git a/web/app/components/workflow/nodes/_base/components/before-run-form/bool-input.tsx b/web/app/components/workflow/nodes/_base/components/before-run-form/bool-input.tsx
index 45070acea84..00e4f165e42 100644
--- a/web/app/components/workflow/nodes/_base/components/before-run-form/bool-input.tsx
+++ b/web/app/components/workflow/nodes/_base/components/before-run-form/bool-input.tsx
@@ -32,7 +32,7 @@ const BoolInput: FC<Props> = ({
onCheck={handleChange}
disabled={readonly}
/>
- <div className="system-sm-medium flex items-center gap-1 text-text-secondary">
+ <div className="flex items-center gap-1 system-sm-medium text-text-secondary">
{name}
{!required && <span className="system-xs-regular text-text-tertiary">{t('panel.optional', { ns: 'workflow' })}</span>}
</div>
diff --git a/web/app/components/workflow/nodes/_base/components/before-run-form/panel-wrap.tsx b/web/app/components/workflow/nodes/_base/components/before-run-form/panel-wrap.tsx
index c5ec7d72b82..f4472c63f1e 100644
--- a/web/app/components/workflow/nodes/_base/components/before-run-form/panel-wrap.tsx
+++ b/web/app/components/workflow/nodes/_base/components/before-run-form/panel-wrap.tsx
@@ -23,7 +23,7 @@ const PanelWrap: FC<Props> = ({
return (
<div className="absolute inset-0 z-10 rounded-2xl bg-background-overlay-alt">
<div className="flex h-full flex-col rounded-2xl bg-components-panel-bg">
- <div className="flex h-8 shrink-0 items-center justify-between pl-4 pr-3 pt-3">
+ <div className="flex h-8 shrink-0 items-center justify-between pt-3 pr-3 pl-4">
<div className="truncate text-base font-semibold text-text-primary">
{t(`${i18nPrefix}.testRun`, { ns: 'workflow' })}
{' '}
@@ -35,7 +35,7 @@ const PanelWrap: FC<Props> = ({
onHide()
}}
>
- <RiCloseLine className="h-4 w-4 text-text-tertiary " />
+ <RiCloseLine className="h-4 w-4 text-text-tertiary" />
</div>
</div>
{children}
diff --git a/web/app/components/workflow/nodes/_base/components/collapse/field-collapse.tsx b/web/app/components/workflow/nodes/_base/components/collapse/field-collapse.tsx
index 777bd82035a..16a9a1130d3 100644
--- a/web/app/components/workflow/nodes/_base/components/collapse/field-collapse.tsx
+++ b/web/app/components/workflow/nodes/_base/components/collapse/field-collapse.tsx
@@ -19,7 +19,7 @@ const FieldCollapse = ({
<div className="py-4">
<Collapse
trigger={
- <div className="system-sm-semibold-uppercase flex h-6 cursor-pointer items-center text-text-secondary">{title}</div>
+ <div className="flex h-6 cursor-pointer items-center system-sm-semibold-uppercase text-text-secondary">{title}</div>
}
operations={operations}
collapsed={collapsed}
diff --git a/web/app/components/workflow/nodes/_base/components/editor/text-editor.tsx b/web/app/components/workflow/nodes/_base/components/editor/text-editor.tsx
index 1cd18f29078..3de713c0672 100644
--- a/web/app/components/workflow/nodes/_base/components/editor/text-editor.tsx
+++ b/web/app/components/workflow/nodes/_base/components/editor/text-editor.tsx
@@ -53,7 +53,7 @@ const TextEditor: FC<Props> = ({
onChange={e => onChange(e.target.value)}
onFocus={setIsFocus}
onBlur={handleBlur}
- className="h-full w-full resize-none border-none bg-transparent px-3 text-[13px] font-normal leading-[18px] text-gray-900 placeholder:text-gray-300 focus:outline-hidden"
+ className="h-full w-full resize-none border-none bg-transparent px-3 text-[13px] leading-[18px] font-normal text-gray-900 placeholder:text-gray-300 focus:outline-hidden"
placeholder={placeholder}
readOnly={readonly}
/>
diff --git a/web/app/components/workflow/nodes/_base/components/entry-node-container.tsx b/web/app/components/workflow/nodes/_base/components/entry-node-container.tsx
index 8124ea91975..668cea9459b 100644
--- a/web/app/components/workflow/nodes/_base/components/entry-node-container.tsx
+++ b/web/app/components/workflow/nodes/_base/components/entry-node-container.tsx
@@ -26,9 +26,9 @@ const EntryNodeContainer: FC<EntryNodeContainerProps> = ({
}, [customLabel, nodeType, t])
return (
- <div className="w-fit min-w-[242px] rounded-2xl bg-workflow-block-wrapper-bg-1 px-0 pb-0 pt-0.5">
+ <div className="w-fit min-w-[242px] rounded-2xl bg-workflow-block-wrapper-bg-1 px-0 pt-0.5 pb-0">
<div className="mb-0.5 flex items-center px-2.5 pt-0.5">
- <span className="text-2xs font-semibold uppercase text-text-tertiary">
+ <span className="text-2xs font-semibold text-text-tertiary uppercase">
{label}
</span>
</div>
diff --git a/web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx b/web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx
index 080fa0f1079..a3be75d763b 100644
--- a/web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx
+++ b/web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx
@@ -30,7 +30,7 @@ const DefaultValue = ({
return (
<div className="px-4 pt-2">
- <div className="body-xs-regular mb-2 text-text-tertiary">
+ <div className="mb-2 body-xs-regular text-text-tertiary">
{t('nodes.common.errorHandle.defaultValue.desc', { ns: 'workflow' })}
&nbsp;
</div>
@@ -43,7 +43,7 @@ const DefaultValue = ({
className="py-1"
>
<div className="mb-1 flex items-center">
- <div className="system-sm-medium mr-1 text-text-primary">{form.key}</div>
+ <div className="mr-1 system-sm-medium text-text-primary">{form.key}</div>
<div className="system-xs-regular text-text-tertiary">{form.type}</div>
</div>
{
diff --git a/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-panel.tsx b/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-panel.tsx
index f71df1039f1..10a167c5048 100644
--- a/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-panel.tsx
+++ b/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-panel.tsx
@@ -54,7 +54,7 @@ const ErrorHandle = ({
collapseIcon => (
<div className="flex grow items-center justify-between pr-4">
<div className="flex items-center">
- <div className="system-sm-semibold-uppercase mr-0.5 text-text-secondary">
+ <div className="mr-0.5 system-sm-semibold-uppercase text-text-secondary">
{t('nodes.common.errorHandle.title', { ns: 'workflow' })}
</div>
<Tooltip popupContent={t('nodes.common.errorHandle.tip', { ns: 'workflow' })} />
diff --git a/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-tip.tsx b/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-tip.tsx
index 560d1e5d777..dda8ddfdc12 100644
--- a/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-tip.tsx
+++ b/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-tip.tsx
@@ -34,7 +34,7 @@ const ErrorHandleTip = ({
>
</div>
<RiAlertFill className="mr-1 h-4 w-4 shrink-0 text-text-warning-secondary" />
- <div className="system-xs-medium grow text-text-primary">
+ <div className="grow system-xs-medium text-text-primary">
{text}
</div>
</div>
diff --git a/web/app/components/workflow/nodes/_base/components/file-upload-setting.tsx b/web/app/components/workflow/nodes/_base/components/file-upload-setting.tsx
index 19dfbcad1c0..55b0a424a2e 100644
--- a/web/app/components/workflow/nodes/_base/components/file-upload-setting.tsx
+++ b/web/app/components/workflow/nodes/_base/components/file-upload-setting.tsx
@@ -150,7 +150,7 @@ const FileUploadSetting: FC<Props> = ({
title={t('variableConfig.maxNumberOfUploads', { ns: 'appDebug' })!}
>
<div>
- <div className="body-xs-regular mb-1.5 text-text-tertiary">
+ <div className="mb-1.5 body-xs-regular text-text-tertiary">
{t('variableConfig.maxNumberTip', {
ns: 'appDebug',
imgLimit: formatFileSize(imgSizeLimit),
diff --git a/web/app/components/workflow/nodes/_base/components/info-panel.tsx b/web/app/components/workflow/nodes/_base/components/info-panel.tsx
index 71f5399fc74..a7b2efb7ca2 100644
--- a/web/app/components/workflow/nodes/_base/components/info-panel.tsx
+++ b/web/app/components/workflow/nodes/_base/components/info-panel.tsx
@@ -14,7 +14,7 @@ const InfoPanel: FC<Props> = ({
return (
<div>
<div className="flex flex-col gap-y-0.5 rounded-md bg-workflow-block-parma-bg px-[5px] py-[3px]">
- <div className="system-2xs-semibold-uppercase uppercase text-text-secondary">
+ <div className="system-2xs-semibold-uppercase text-text-secondary uppercase">
{title}
</div>
<div className="system-xs-regular wrap-break-word text-text-tertiary">
diff --git a/web/app/components/workflow/nodes/_base/components/mixed-variable-text-input/placeholder.tsx b/web/app/components/workflow/nodes/_base/components/mixed-variable-text-input/placeholder.tsx
index 9884e85657a..4af622bb46f 100644
--- a/web/app/components/workflow/nodes/_base/components/mixed-variable-text-input/placeholder.tsx
+++ b/web/app/components/workflow/nodes/_base/components/mixed-variable-text-input/placeholder.tsx
@@ -27,9 +27,9 @@ const Placeholder = () => {
>
<div className="flex grow items-center">
{t('nodes.tool.insertPlaceholder1', { ns: 'workflow' })}
- <div className="system-kbd mx-0.5 flex h-4 w-4 items-center justify-center rounded-sm bg-components-kbd-bg-gray text-text-placeholder">/</div>
+ <div className="mx-0.5 flex h-4 w-4 items-center justify-center rounded-sm bg-components-kbd-bg-gray system-kbd text-text-placeholder">/</div>
<div
- className="system-sm-regular cursor-pointer text-components-input-text-placeholder underline decoration-dotted decoration-auto underline-offset-auto hover:text-text-tertiary"
+ className="cursor-pointer system-sm-regular text-components-input-text-placeholder underline decoration-dotted decoration-auto underline-offset-auto hover:text-text-tertiary"
onMouseDown={((e) => {
e.preventDefault()
e.stopPropagation()
diff --git a/web/app/components/workflow/nodes/_base/components/title-description-input.tsx b/web/app/components/workflow/nodes/_base/components/title-description-input.tsx
index db34c35c919..d393896becb 100644
--- a/web/app/components/workflow/nodes/_base/components/title-description-input.tsx
+++ b/web/app/components/workflow/nodes/_base/components/title-description-input.tsx
@@ -53,7 +53,7 @@ export const TitleInput = memo(({
onChange={handleChange}
onKeyDown={handleKeyDown}
className={`
- system-xl-semibold mr-2 h-7 min-w-0 grow appearance-none rounded-md border border-transparent bg-transparent px-1 text-text-primary
+ mr-2 h-7 min-w-0 grow appearance-none rounded-md border border-transparent bg-transparent px-1 system-xl-semibold text-text-primary
outline-hidden focus:shadow-xs
`}
placeholder={t('common.addTitle', { ns: 'workflow' }) || ''}
@@ -83,8 +83,8 @@ export const DescriptionInput = memo(({
return (
<div
className={`
- leading-0 group flex max-h-[60px] overflow-y-auto rounded-lg bg-components-panel-bg
- px-2 py-[5px]
+ group flex max-h-[60px] overflow-y-auto rounded-lg bg-components-panel-bg px-2
+ py-[5px] leading-0
${focus && 'shadow-xs!'}
`}
>
diff --git a/web/app/components/workflow/nodes/_base/components/variable/constant-field.tsx b/web/app/components/workflow/nodes/_base/components/variable/constant-field.tsx
index c5ff2ba98b5..41be240bdaf 100644
--- a/web/app/components/workflow/nodes/_base/components/variable/constant-field.tsx
+++ b/web/app/components/workflow/nodes/_base/components/variable/constant-field.tsx
@@ -57,7 +57,7 @@ const ConstantField: FC<Props> = ({
{schema.type === FormTypeEnum.textNumber && (
<input
type="number"
- className="h-8 w-full overflow-hidden rounded-lg bg-workflow-block-parma-bg p-2 text-[13px] font-normal leading-8 text-text-secondary placeholder:text-gray-400 focus:outline-hidden"
+ className="h-8 w-full overflow-hidden rounded-lg bg-workflow-block-parma-bg p-2 text-[13px] leading-8 font-normal text-text-secondary placeholder:text-gray-400 focus:outline-hidden"
value={value}
onChange={handleStaticChange}
readOnly={readonly}
diff --git a/web/app/components/workflow/nodes/_base/components/variable/manage-input-field.tsx b/web/app/components/workflow/nodes/_base/components/variable/manage-input-field.tsx
index aea578fcb47..349bb7bd578 100644
--- a/web/app/components/workflow/nodes/_base/components/variable/manage-input-field.tsx
+++ b/web/app/components/workflow/nodes/_base/components/variable/manage-input-field.tsx
@@ -18,7 +18,7 @@ const ManageInputField = ({
>
<RiAddLine className="mr-1 h-4 w-4 text-text-tertiary" />
<div
- className="system-xs-medium truncate text-text-tertiary"
+ className="truncate system-xs-medium text-text-tertiary"
title="Create user input field"
>
{t('inputField.create', { ns: 'pipeline' })}
@@ -26,7 +26,7 @@ const ManageInputField = ({
</div>
<div className="mx-1 h-3 w-px shrink-0 bg-divider-regular"></div>
<div
- className="system-xs-medium flex h-8 shrink-0 cursor-pointer items-center justify-center px-3 text-text-tertiary"
+ className="flex h-8 shrink-0 cursor-pointer items-center justify-center px-3 system-xs-medium text-text-tertiary"
onClick={onManage}
>
{t('inputField.manage', { ns: 'pipeline' })}
diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-full-path-panel.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-full-path-panel.tsx
index 1ca54888b6f..803164547d6 100644
--- a/web/app/components/workflow/nodes/_base/components/variable/var-full-path-panel.tsx
+++ b/web/app/components/workflow/nodes/_base/components/variable/var-full-path-panel.tsx
@@ -43,12 +43,12 @@ const VarFullPathPanel: FC<Props> = ({
})()
return (
<div className="w-[280px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur pb-0 shadow-lg backdrop-blur-[5px]">
- <div className="flex space-x-1 border-b-[0.5px] border-divider-subtle p-3 pb-2 ">
+ <div className="flex space-x-1 border-b-[0.5px] border-divider-subtle p-3 pb-2">
<BlockIcon size="xs" type={nodeType} />
- <div className="system-xs-medium w-0 grow truncate text-text-secondary">{nodeName}</div>
+ <div className="w-0 grow truncate system-xs-medium text-text-secondary">{nodeName}</div>
</div>
<Panel
- className="px-1 pb-3 pt-2"
+ className="px-1 pt-2 pb-3"
root={{ attrName: path[0]! }}
payload={schema}
readonly
diff --git a/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-node-label.tsx b/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-node-label.tsx
index 35434141ca0..64c7d75dda5 100644
--- a/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-node-label.tsx
+++ b/web/app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-node-label.tsx
@@ -22,14 +22,14 @@ const VariableNodeLabel = ({
{
nodeTitle && (
<div
- className="system-xs-medium max-w-[60px] truncate text-text-secondary"
+ className="max-w-[60px] truncate system-xs-medium text-text-secondary"
title={nodeTitle}
>
{nodeTitle}
</div>
)
}
- <div className="system-xs-regular shrink-0 text-divider-deep">/</div>
+ <div className="shrink-0 system-xs-regular text-divider-deep">/</div>
</>
)
}
diff --git a/web/app/components/workflow/nodes/_base/node-sections.tsx b/web/app/components/workflow/nodes/_base/node-sections.tsx
index ee97bf7ab18..891f17eb504 100644
--- a/web/app/components/workflow/nodes/_base/node-sections.tsx
+++ b/web/app/components/workflow/nodes/_base/node-sections.tsx
@@ -25,7 +25,7 @@ export const NodeHeaderMeta = ({
{data.type === BlockEnum.Iteration && (data as IterationNodeType).is_parallel && (
<Tooltip>
<TooltipTrigger>
- <div className="ml-1 flex items-center justify-center rounded-[5px] border border-text-warning px-[5px] py-[3px] text-text-warning system-2xs-medium-uppercase">
+ <div className="ml-1 flex items-center justify-center rounded-[5px] border border-text-warning px-[5px] py-[3px] system-2xs-medium-uppercase text-text-warning">
{t('nodes.iteration.parallelModeUpper', { ns: 'workflow' })}
</div>
</TooltipTrigger>
@@ -73,7 +73,7 @@ export const NodeBody = ({
}: NodeBodyProps) => {
if (data.type === BlockEnum.Iteration || data.type === BlockEnum.Loop) {
return (
- <div className="grow pb-1 pl-1 pr-1">
+ <div className="grow pr-1 pb-1 pl-1">
{child}
</div>
)
@@ -87,7 +87,7 @@ export const NodeDescription = ({ data }: { data: NodeProps['data'] }) => {
return null
return (
- <div className="whitespace-pre-line wrap-break-word px-3 pb-2 pt-1 text-text-tertiary system-xs-regular">
+ <div className="px-3 pt-1 pb-2 system-xs-regular wrap-break-word whitespace-pre-line text-text-tertiary">
{data.desc}
</div>
)
diff --git a/web/app/components/workflow/nodes/agent/components/model-bar.tsx b/web/app/components/workflow/nodes/agent/components/model-bar.tsx
index 88e6915088d..8e2f19d7267 100644
--- a/web/app/components/workflow/nodes/agent/components/model-bar.tsx
+++ b/web/app/components/workflow/nodes/agent/components/model-bar.tsx
@@ -50,7 +50,7 @@ export const ModelBar: FC<ModelBarProps> = (props) => {
readonly
deprecatedClassName="opacity-50"
/>
- <Indicator color="red" className="absolute -right-0.5 -top-0.5" />
+ <Indicator color="red" className="absolute -top-0.5 -right-0.5" />
</div>
</Tooltip>
)
@@ -74,7 +74,7 @@ export const ModelBar: FC<ModelBarProps> = (props) => {
readonly
deprecatedClassName="opacity-50"
/>
- {showWarn && <Indicator color="red" className="absolute -right-0.5 -top-0.5" />}
+ {showWarn && <Indicator color="red" className="absolute -top-0.5 -right-0.5" />}
</div>
</Tooltip>
)
diff --git a/web/app/components/workflow/nodes/answer/panel.tsx b/web/app/components/workflow/nodes/answer/panel.tsx
index bbab003a057..8fb9e1815d5 100644
--- a/web/app/components/workflow/nodes/answer/panel.tsx
+++ b/web/app/components/workflow/nodes/answer/panel.tsx
@@ -30,7 +30,7 @@ const Panel: FC<NodePanelProps<AnswerNodeType>> = ({
})
return (
- <div className="mb-2 mt-2 space-y-4 px-4">
+ <div className="mt-2 mb-2 space-y-4 px-4">
<Editor
readOnly={readOnly}
justVar
diff --git a/web/app/components/workflow/nodes/assigner/node.tsx b/web/app/components/workflow/nodes/assigner/node.tsx
index e31daac1386..873030d37a3 100644
--- a/web/app/components/workflow/nodes/assigner/node.tsx
+++ b/web/app/components/workflow/nodes/assigner/node.tsx
@@ -30,7 +30,7 @@ const NodeComponent: FC<NodeProps<AssignerNodeType>> = ({
<div className="relative flex flex-col items-start gap-0.5 self-stretch px-3 py-1">
<div className="flex flex-col items-start gap-1 self-stretch">
<div className="flex items-center gap-1 self-stretch rounded-md bg-workflow-block-parma-bg px-[5px] py-1">
- <div className="system-xs-medium flex-1 text-text-tertiary">{t(`${i18nPrefix}.varNotSet`, { ns: 'workflow' })}</div>
+ <div className="flex-1 system-xs-medium text-text-tertiary">{t(`${i18nPrefix}.varNotSet`, { ns: 'workflow' })}</div>
</div>
</div>
</div>
diff --git a/web/app/components/workflow/nodes/assigner/panel.tsx b/web/app/components/workflow/nodes/assigner/panel.tsx
index d3a2e6bc78d..ef32f6a6ac9 100644
--- a/web/app/components/workflow/nodes/assigner/panel.tsx
+++ b/web/app/components/workflow/nodes/assigner/panel.tsx
@@ -40,7 +40,7 @@ const Panel: FC<NodePanelProps<AssignerNodeType>> = ({
<div className="flex flex-col items-start self-stretch py-2">
<div className="flex w-full flex-col items-start justify-center gap-1 self-stretch px-4 py-2">
<div className="flex items-start gap-2 self-stretch">
- <div className="system-sm-semibold-uppercase flex grow flex-col items-start justify-center text-text-secondary">{t(`${i18nPrefix}.variables`, { ns: 'workflow' })}</div>
+ <div className="flex grow flex-col items-start justify-center system-sm-semibold-uppercase text-text-secondary">{t(`${i18nPrefix}.variables`, { ns: 'workflow' })}</div>
<ActionButton onClick={handleAddOperation}>
<RiAddLine className="h-4 w-4 shrink-0 text-text-tertiary" />
</ActionButton>
diff --git a/web/app/components/workflow/nodes/code/dependency-picker.tsx b/web/app/components/workflow/nodes/code/dependency-picker.tsx
index a0da2ccc5bf..feed5234a72 100644
--- a/web/app/components/workflow/nodes/code/dependency-picker.tsx
+++ b/web/app/components/workflow/nodes/code/dependency-picker.tsx
@@ -73,7 +73,7 @@ const DependencyPicker: FC<Props> = ({
}).map(dependency => (
<div
key={dependency.name}
- className="flex h-[30px] cursor-pointer items-center justify-between rounded-lg pl-3 pr-2 text-[13px] text-gray-900 hover:bg-gray-100"
+ className="flex h-[30px] cursor-pointer items-center justify-between rounded-lg pr-2 pl-3 text-[13px] text-gray-900 hover:bg-gray-100"
onClick={handleChange(dependency)}
>
<div className="w-0 grow truncate">{dependency.name}</div>
diff --git a/web/app/components/workflow/nodes/data-source/node.tsx b/web/app/components/workflow/nodes/data-source/node.tsx
index 5bc1dcc7984..81ad58ee7d9 100644
--- a/web/app/components/workflow/nodes/data-source/node.tsx
+++ b/web/app/components/workflow/nodes/data-source/node.tsx
@@ -23,7 +23,7 @@ const Node: FC<NodeProps<DataSourceNodeType>> = ({
return (
<div className="relative mb-1 px-3 py-1">
- <div className="pointer-events-auto absolute right-3 top-[-32px] z-40">
+ <div className="pointer-events-auto absolute top-[-32px] right-3 z-40">
<InstallPluginButton
size="small"
extraIdentifiers={[
diff --git a/web/app/components/workflow/nodes/document-extractor/node.tsx b/web/app/components/workflow/nodes/document-extractor/node.tsx
index 68b6acbab0f..d19ebbea984 100644
--- a/web/app/components/workflow/nodes/document-extractor/node.tsx
+++ b/web/app/components/workflow/nodes/document-extractor/node.tsx
@@ -27,7 +27,7 @@ const NodeComponent: FC<NodeProps<DocExtractorNodeType>> = ({
const node = isSystem ? nodes.find(node => node.data.type === BlockEnum.Start) : nodes.find(node => node.id === variable[0])
return (
<div className="relative mb-1 px-3 py-1">
- <div className="system-2xs-medium-uppercase mb-1 text-text-tertiary">{t(`${i18nPrefix}.inputVar`, { ns: 'workflow' })}</div>
+ <div className="mb-1 system-2xs-medium-uppercase text-text-tertiary">{t(`${i18nPrefix}.inputVar`, { ns: 'workflow' })}</div>
<VariableLabelInNode
variables={variable}
nodeType={node?.data.type}
diff --git a/web/app/components/workflow/nodes/document-extractor/panel.tsx b/web/app/components/workflow/nodes/document-extractor/panel.tsx
index 8504cdf6e53..22421fd8856 100644
--- a/web/app/components/workflow/nodes/document-extractor/panel.tsx
+++ b/web/app/components/workflow/nodes/document-extractor/panel.tsx
@@ -64,7 +64,7 @@ const Panel: FC<NodePanelProps<DocExtractorNodeType>> = ({
filterVar={filterVar}
typePlaceHolder="File | Array[File]"
/>
- <div className="body-xs-regular mt-1 py-0.5 text-text-tertiary">
+ <div className="mt-1 py-0.5 body-xs-regular text-text-tertiary">
{t(`${i18nPrefix}.supportFileTypes`, { ns: 'workflow', types: supportTypesShowNames })}
<a className="text-text-accent" href={link} target="_blank">{t(`${i18nPrefix}.learnMore`, { ns: 'workflow' })}</a>
</div>
diff --git a/web/app/components/workflow/nodes/http/components/key-value/bulk-edit/index.tsx b/web/app/components/workflow/nodes/http/components/key-value/bulk-edit/index.tsx
index 8c0015a74be..70edac3ba93 100644
--- a/web/app/components/workflow/nodes/http/components/key-value/bulk-edit/index.tsx
+++ b/web/app/components/workflow/nodes/http/components/key-value/bulk-edit/index.tsx
@@ -50,9 +50,9 @@ const BulkEdit: FC<Props> = ({
onClick={handleSwitchToKeyValueEdit}
>
<LayoutGrid02 className="h-3 w-3 text-gray-500" />
- <div className="text-xs font-normal leading-[18px] text-gray-500">{t(`${i18nPrefix}.keyValueEdit`, { ns: 'workflow' })}</div>
+ <div className="text-xs leading-[18px] font-normal text-gray-500">{t(`${i18nPrefix}.keyValueEdit`, { ns: 'workflow' })}</div>
</div>
- <div className="ml-3 mr-1.5 h-3 w-px bg-gray-200"></div>
+ <div className="mr-1.5 ml-3 h-3 w-px bg-gray-200"></div>
</div>
)}
minHeight={150}
diff --git a/web/app/components/workflow/nodes/http/node.tsx b/web/app/components/workflow/nodes/http/node.tsx
index e40d6e2b6a2..97c88da18dd 100644
--- a/web/app/components/workflow/nodes/http/node.tsx
+++ b/web/app/components/workflow/nodes/http/node.tsx
@@ -15,8 +15,8 @@ const Node: FC<NodeProps<HttpNodeType>> = ({
return (
<div className="mb-1 px-3 py-1">
<div className="flex items-center justify-start rounded-md bg-workflow-block-parma-bg p-1">
- <div className="flex h-4 shrink-0 items-center rounded-sm bg-components-badge-white-to-dark px-1 text-xs font-semibold uppercase text-text-secondary">{method}</div>
- <div className="w-0 grow pl-1 pt-1">
+ <div className="flex h-4 shrink-0 items-center rounded-sm bg-components-badge-white-to-dark px-1 text-xs font-semibold text-text-secondary uppercase">{method}</div>
+ <div className="w-0 grow pt-1 pl-1">
<ReadonlyInputWithSelectVar
className="text-text-secondary"
value={url}
diff --git a/web/app/components/workflow/nodes/if-else/components/condition-files-list-value.tsx b/web/app/components/workflow/nodes/if-else/components/condition-files-list-value.tsx
index e803b31f7cd..68bd9cd1708 100644
--- a/web/app/components/workflow/nodes/if-else/components/condition-files-list-value.tsx
+++ b/web/app/components/workflow/nodes/if-else/components/condition-files-list-value.tsx
@@ -71,7 +71,7 @@ const ConditionValue = ({
return (
<div className="rounded-md bg-workflow-block-parma-bg">
- <div className="flex h-6 items-center px-1 ">
+ <div className="flex h-6 items-center px-1">
<VariableLabelInNode
className="w-0 grow"
variables={variableSelector}
@@ -96,7 +96,7 @@ const ConditionValue = ({
<div className="system-xs-medium text-text-accent">{c.key}</div>
<div className="system-xs-medium text-text-primary">{comparisonOperatorName}</div>
{c.comparison_operator && !isEmptyRelatedOperator(c.comparison_operator) && <div className="system-xs-regular text-text-secondary">{isSelect(c) ? selectName(c) : formatValue(c)}</div>}
- {index !== sub_variable_condition.conditions.length - 1 && (<div className="absolute bottom-[-10px] right-1 z-10 text-[10px] font-medium uppercase leading-4 text-text-accent">{t(`nodes.ifElse.${sub_variable_condition.logical_operator}`, { ns: 'workflow' })}</div>)}
+ {index !== sub_variable_condition.conditions.length - 1 && (<div className="absolute right-1 bottom-[-10px] z-10 text-[10px] leading-4 font-medium text-text-accent uppercase">{t(`nodes.ifElse.${sub_variable_condition.logical_operator}`, { ns: 'workflow' })}</div>)}
</div>
)
})
diff --git a/web/app/components/workflow/nodes/if-else/node.tsx b/web/app/components/workflow/nodes/if-else/node.tsx
index 5199f6705ae..c6505004a68 100644
--- a/web/app/components/workflow/nodes/if-else/node.tsx
+++ b/web/app/components/workflow/nodes/if-else/node.tsx
@@ -82,7 +82,7 @@ const IfElseNode: FC<NodeProps<IfElseNodeType>> = (props) => {
: conditionNotSet
}
{i !== caseItem.conditions.length - 1 && (
- <div className="absolute bottom-[-10px] right-1 z-10 text-[10px] font-medium uppercase leading-4 text-text-accent">{t(`${i18nPrefix}.${caseItem.logical_operator}`, { ns: 'workflow' })}</div>
+ <div className="absolute right-1 bottom-[-10px] z-10 text-[10px] leading-4 font-medium text-text-accent uppercase">{t(`${i18nPrefix}.${caseItem.logical_operator}`, { ns: 'workflow' })}</div>
)}
</div>
))}
diff --git a/web/app/components/workflow/nodes/iteration-start/index.tsx b/web/app/components/workflow/nodes/iteration-start/index.tsx
index 1cfa095bbce..90a57bef269 100644
--- a/web/app/components/workflow/nodes/iteration-start/index.tsx
+++ b/web/app/components/workflow/nodes/iteration-start/index.tsx
@@ -29,7 +29,7 @@ export const IterationStartNodeDumb = () => {
const { t } = useTranslation()
return (
- <div className="nodrag relative left-[17px] top-[21px] z-11 flex h-11 w-11 items-center justify-center rounded-2xl border border-workflow-block-border bg-workflow-block-bg">
+ <div className="nodrag relative top-[21px] left-[17px] z-11 flex h-11 w-11 items-center justify-center rounded-2xl border border-workflow-block-border bg-workflow-block-bg">
<Tooltip popupContent={t('blocks.iteration-start', { ns: 'workflow' })} asChild={false}>
<div className="flex h-6 w-6 items-center justify-center rounded-full border-[0.5px] border-components-panel-border-subtle bg-util-colors-blue-brand-blue-brand-500">
<RiHome5Fill className="h-3 w-3 text-text-primary-on-surface" />
diff --git a/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsx b/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsx
index 07abcedb19c..e316f941ea1 100644
--- a/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsx
+++ b/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsx
@@ -62,7 +62,7 @@ const RetrievalSetting = ({
fieldTitleProps={{
title: t('form.retrievalSetting.title', { ns: 'datasetSettings' }),
subTitle: (
- <div className="body-xs-regular flex items-center text-text-tertiary">
+ <div className="flex items-center body-xs-regular text-text-tertiary">
<a target="_blank" rel="noopener noreferrer" href={docLink('/use-dify/knowledge/create-knowledge/setting-indexing-methods')} className="text-text-accent">{t('form.retrievalSetting.learnMore', { ns: 'datasetSettings' })}</a>
&nbsp;
{t('nodes.knowledgeBase.aboutRetrieval', { ns: 'workflow' })}
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/dataset-item.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/dataset-item.tsx
index 4262871e7af..90e9caae9de 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/dataset-item.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/dataset-item.tsx
@@ -78,10 +78,10 @@ const DatasetItem: FC<Props> = ({
background={iconInfo.icon_type === 'image' ? undefined : iconInfo.icon_background}
imageUrl={iconInfo.icon_type === 'image' ? iconInfo.icon_url : undefined}
/>
- <div className="system-sm-medium w-0 grow truncate text-text-secondary">{payload.name}</div>
+ <div className="w-0 grow truncate system-sm-medium text-text-secondary">{payload.name}</div>
</div>
{!readonly && (
- <div className="ml-2 hidden shrink-0 items-center space-x-1 group-hover/dataset-item:flex">
+ <div className="ml-2 hidden shrink-0 items-center space-x-1 group-hover/dataset-item:flex">
{
editable && (
<ActionButton
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/dataset-list.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/dataset-list.tsx
index f4e16e9f977..9c1dd854ba0 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/dataset-list.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/dataset-list.tsx
@@ -71,7 +71,7 @@ const DatasetList: FC<Props> = ({
)
})
: (
- <div className="cursor-default select-none rounded-lg bg-background-section p-3 text-center text-xs text-text-tertiary">
+ <div className="cursor-default rounded-lg bg-background-section p-3 text-center text-xs text-text-tertiary select-none">
{t('datasetConfig.knowledgeTip', { ns: 'appDebug' })}
</div>
)}
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-common-variable-selector.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-common-variable-selector.tsx
index 0a671521820..dd0858942dc 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-common-variable-selector.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-common-variable-selector.tsx
@@ -51,7 +51,7 @@ const ConditionCommonVariableSelector = ({
<div className="flex h-6 grow cursor-pointer items-center">
{
selected && (
- <div className="system-xs-medium inline-flex h-6 items-center rounded-md border-[0.5px] border-components-panel-border-subtle bg-components-badge-white-to-dark pl-[5px] pr-1.5 text-text-secondary shadow-xs">
+ <div className="inline-flex h-6 items-center rounded-md border-[0.5px] border-components-panel-border-subtle bg-components-badge-white-to-dark pr-1.5 pl-[5px] system-xs-medium text-text-secondary shadow-xs">
<Variable02 className="mr-1 h-3.5 w-3.5 text-text-accent" />
{selected.value}
</div>
@@ -60,11 +60,11 @@ const ConditionCommonVariableSelector = ({
{
!selected && (
<>
- <div className="system-sm-regular flex grow items-center text-components-input-text-placeholder">
+ <div className="flex grow items-center system-sm-regular text-components-input-text-placeholder">
<Variable02 className="mr-1 h-4 w-4" />
{t('nodes.knowledgeRetrieval.metadata.panel.select', { ns: 'workflow' })}
</div>
- <div className="system-2xs-medium flex h-5 shrink-0 items-center rounded-[5px] border border-divider-deep px-[5px] text-text-tertiary">
+ <div className="flex h-5 shrink-0 items-center rounded-[5px] border border-divider-deep px-[5px] system-2xs-medium text-text-tertiary">
{varType}
</div>
</>
@@ -78,7 +78,7 @@ const ConditionCommonVariableSelector = ({
variables.map(v => (
<div
key={v.value}
- className="system-xs-medium flex h-6 cursor-pointer items-center rounded-md px-2 text-text-secondary hover:bg-state-base-hover"
+ className="flex h-6 cursor-pointer items-center rounded-md px-2 system-xs-medium text-text-secondary hover:bg-state-base-hover"
onClick={() => handleChange(v.value)}
>
<Variable02 className="mr-1 h-4 w-4 text-text-accent" />
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-number.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-number.tsx
index 5fec9ad5b68..8505fe76f9f 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-number.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-number.tsx
@@ -40,12 +40,12 @@ const ConditionNumber = ({
}, [onChange])
return (
- <div className="flex h-8 items-center pl-1 pr-2">
+ <div className="flex h-8 items-center pr-2 pl-1">
<ConditionValueMethod
valueMethod={valueMethod}
onValueMethodChange={onValueMethodChange}
/>
- <div className="ml-1 mr-1.5 h-4 w-px bg-divider-regular"></div>
+ <div className="mr-1.5 ml-1 h-4 w-px bg-divider-regular"></div>
{
valueMethod === 'variable' && !isCommonVariable && (
<ConditionVariableSelector
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-string.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-string.tsx
index b8085e91603..1a0a3e30676 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-string.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-string.tsx
@@ -40,12 +40,12 @@ const ConditionString = ({
}, [onChange])
return (
- <div className="flex h-8 items-center pl-1 pr-2">
+ <div className="flex h-8 items-center pr-2 pl-1">
<ConditionValueMethod
valueMethod={valueMethod}
onValueMethodChange={onValueMethodChange}
/>
- <div className="ml-1 mr-1.5 h-4 w-px bg-divider-regular"></div>
+ <div className="mr-1.5 ml-1 h-4 w-px bg-divider-regular"></div>
{
valueMethod === 'variable' && !isCommonVariable && (
<ConditionVariableSelector
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-variable-selector.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-variable-selector.tsx
index 339ffa6aec6..15f5ec9377c 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-variable-selector.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-variable-selector.tsx
@@ -64,11 +64,11 @@ const ConditionVariableSelector = ({
{
!valueSelector.length && (
<>
- <div className="system-sm-regular flex grow items-center text-components-input-text-placeholder">
+ <div className="flex grow items-center system-sm-regular text-components-input-text-placeholder">
<Variable02 className="mr-1 h-4 w-4" />
{t('nodes.knowledgeRetrieval.metadata.panel.select', { ns: 'workflow' })}
</div>
- <div className="system-2xs-medium flex h-5 shrink-0 items-center rounded-[5px] border border-divider-deep px-[5px] text-text-tertiary">
+ <div className="flex h-5 shrink-0 items-center rounded-[5px] border border-divider-deep px-[5px] system-2xs-medium text-text-tertiary">
{varType}
</div>
</>
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-filter/index.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-filter/index.tsx
index 56da85ca732..2f5baeb0896 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-filter/index.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-filter/index.tsx
@@ -43,7 +43,7 @@ const MetadataFilter = ({
trigger={collapseIcon => (
<div className="flex grow items-center justify-between pr-4">
<div className="flex items-center">
- <div className="system-sm-semibold-uppercase mr-0.5 text-text-secondary">
+ <div className="mr-0.5 system-sm-semibold-uppercase text-text-secondary">
{t('nodes.knowledgeRetrieval.metadata.title', { ns: 'workflow' })}
</div>
<Tooltip
@@ -75,7 +75,7 @@ const MetadataFilter = ({
{
metadataFilterMode === MetadataFilteringModeEnum.automatic && (
<>
- <div className="body-xs-regular px-4 text-text-tertiary">
+ <div className="px-4 body-xs-regular text-text-tertiary">
{t('nodes.knowledgeRetrieval.metadata.options.automatic.desc', { ns: 'workflow' })}
</div>
<div className="mt-1 px-4">
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-panel.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-panel.tsx
index 484cf3595f2..3c92333bd4c 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-panel.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-panel.tsx
@@ -23,7 +23,7 @@ const MetadataPanel = ({
{t('nodes.knowledgeRetrieval.metadata.panel.title', { ns: 'workflow' })}
</div>
<div
- className="absolute bottom-0 right-2.5 flex h-8 w-8 cursor-pointer items-center justify-center"
+ className="absolute right-2.5 bottom-0 flex h-8 w-8 cursor-pointer items-center justify-center"
onClick={onCancel}
>
<RiCloseLine className="h-4 w-4 text-text-tertiary" />
diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/node.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/node.tsx
index 3fafdd018e3..82fee22eee2 100644
--- a/web/app/components/workflow/nodes/knowledge-retrieval/node.tsx
+++ b/web/app/components/workflow/nodes/knowledge-retrieval/node.tsx
@@ -50,7 +50,7 @@ const Node: FC<NodeProps<KnowledgeRetrievalNodeType>> = ({
imageUrl={iconInfo.icon_type === 'image' ? iconInfo.icon_url : undefined}
className="shrink-0"
/>
- <div className="system-xs-regular w-0 grow truncate text-text-secondary">
+ <div className="w-0 grow truncate system-xs-regular text-text-secondary">
{name}
</div>
</div>
diff --git a/web/app/components/workflow/nodes/list-operator/node.tsx b/web/app/components/workflow/nodes/list-operator/node.tsx
index 9f4b69a170c..d31bae9dc3f 100644
--- a/web/app/components/workflow/nodes/list-operator/node.tsx
+++ b/web/app/components/workflow/nodes/list-operator/node.tsx
@@ -27,7 +27,7 @@ const NodeComponent: FC<NodeProps<ListFilterNodeType>> = ({
const node = isSystem ? nodes.find(node => node.data.type === BlockEnum.Start) : nodes.find(node => node.id === variable[0])
return (
<div className="relative px-3">
- <div className="system-2xs-medium-uppercase mb-1 text-text-tertiary">{t(`${i18nPrefix}.inputVar`, { ns: 'workflow' })}</div>
+ <div className="mb-1 system-2xs-medium-uppercase text-text-tertiary">{t(`${i18nPrefix}.inputVar`, { ns: 'workflow' })}</div>
<VariableLabelInNode
variables={variable}
nodeType={node?.data.type}
diff --git a/web/app/components/workflow/nodes/llm/components/config-prompt-item.tsx b/web/app/components/workflow/nodes/llm/components/config-prompt-item.tsx
index f8916d3785a..ddc15b5fdb9 100644
--- a/web/app/components/workflow/nodes/llm/components/config-prompt-item.tsx
+++ b/web/app/components/workflow/nodes/llm/components/config-prompt-item.tsx
@@ -104,7 +104,7 @@ const ConfigPromptItem: FC<Props> = ({
<div className="relative left-1 flex items-center">
{payload.role === PromptRole.system
? (
- <div className="relative left-[-4px] text-xs font-semibold uppercase text-text-secondary">
+ <div className="relative left-[-4px] text-xs font-semibold text-text-secondary uppercase">
SYSTEM
</div>
)
diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/card.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/card.tsx
index 24ab7c39de7..174138e9875 100644
--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/card.tsx
+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/card.tsx
@@ -19,16 +19,16 @@ const Card: FC<CardProps> = ({
return (
<div className="flex flex-col py-0.5">
- <div className="flex h-6 items-center gap-x-1 pl-1 pr-0.5">
- <div className="system-sm-semibold truncate border border-transparent px-1 py-px text-text-primary">
+ <div className="flex h-6 items-center gap-x-1 pr-0.5 pl-1">
+ <div className="truncate border border-transparent px-1 py-px system-sm-semibold text-text-primary">
{name}
</div>
- <div className="system-xs-medium px-1 py-0.5 text-text-tertiary">
+ <div className="px-1 py-0.5 system-xs-medium text-text-tertiary">
{type}
</div>
{
required && (
- <div className="system-2xs-medium-uppercase px-1 py-0.5 text-text-warning">
+ <div className="px-1 py-0.5 system-2xs-medium-uppercase text-text-warning">
{t('nodes.llm.jsonSchema.required', { ns: 'workflow' })}
</div>
)
@@ -36,7 +36,7 @@ const Card: FC<CardProps> = ({
</div>
{description && (
- <div className="system-xs-regular truncate px-2 pb-1 text-text-tertiary">
+ <div className="truncate px-2 pb-1 system-xs-regular text-text-tertiary">
{description}
</div>
)}
diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/advanced-options.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/advanced-options.tsx
index 6380d7eb6bd..171001c688e 100644
--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/advanced-options.tsx
+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/advanced-options.tsx
@@ -47,7 +47,7 @@ const AdvancedOptions: FC<AdvancedOptionsProps> = ({
</div>
</div>
<div className="flex flex-col">
- <div className="system-xs-medium flex h-6 items-center text-text-secondary">
+ <div className="flex h-6 items-center system-xs-medium text-text-secondary">
Enum
</div>
<Textarea
diff --git a/web/app/components/workflow/nodes/llm/components/resolution-picker.tsx b/web/app/components/workflow/nodes/llm/components/resolution-picker.tsx
index 4e350817fa2..8a1d06deb54 100644
--- a/web/app/components/workflow/nodes/llm/components/resolution-picker.tsx
+++ b/web/app/components/workflow/nodes/llm/components/resolution-picker.tsx
@@ -26,7 +26,7 @@ const ResolutionPicker: FC<Props> = ({
}, [onChange])
return (
<div className="flex items-center justify-between">
- <div className="mr-2 text-xs font-medium uppercase text-text-secondary">{t(`${i18nPrefix}.resolution.name`, { ns: 'workflow' })}</div>
+ <div className="mr-2 text-xs font-medium text-text-secondary uppercase">{t(`${i18nPrefix}.resolution.name`, { ns: 'workflow' })}</div>
<div className="flex items-center space-x-1">
<OptionCard
title={t(`${i18nPrefix}.resolution.high`, { ns: 'workflow' })}
diff --git a/web/app/components/workflow/nodes/loop-start/index.tsx b/web/app/components/workflow/nodes/loop-start/index.tsx
index c439516b477..a7bd18c7a5c 100644
--- a/web/app/components/workflow/nodes/loop-start/index.tsx
+++ b/web/app/components/workflow/nodes/loop-start/index.tsx
@@ -29,7 +29,7 @@ export const LoopStartNodeDumb = () => {
const { t } = useTranslation()
return (
- <div className="nodrag relative left-[17px] top-[21px] z-11 flex h-11 w-11 items-center justify-center rounded-2xl border border-workflow-block-border bg-workflow-block-bg">
+ <div className="nodrag relative top-[21px] left-[17px] z-11 flex h-11 w-11 items-center justify-center rounded-2xl border border-workflow-block-border bg-workflow-block-bg">
<Tooltip popupContent={t('blocks.loop-start', { ns: 'workflow' })} asChild={false}>
<div className="flex h-6 w-6 items-center justify-center rounded-full border-[0.5px] border-components-panel-border-subtle bg-util-colors-blue-brand-blue-brand-500">
<RiHome5Fill className="h-3 w-3 text-text-primary-on-surface" />
diff --git a/web/app/components/workflow/nodes/loop/components/condition-files-list-value.tsx b/web/app/components/workflow/nodes/loop/components/condition-files-list-value.tsx
index 63269a85bf5..65ef0218f99 100644
--- a/web/app/components/workflow/nodes/loop/components/condition-files-list-value.tsx
+++ b/web/app/components/workflow/nodes/loop/components/condition-files-list-value.tsx
@@ -73,7 +73,7 @@ const ConditionValue = ({
return (
<div className="rounded-md bg-workflow-block-parma-bg">
- <div className="flex h-6 items-center px-1 ">
+ <div className="flex h-6 items-center px-1">
<VariableLabelInNode
className="w-0 grow"
variables={variableSelector}
@@ -93,7 +93,7 @@ const ConditionValue = ({
<div className="system-xs-medium text-text-accent">{c.key}</div>
<div className="system-xs-medium text-text-primary">{isComparisonOperatorNeedTranslate(c.comparison_operator) ? t(`nodes.ifElse.comparisonOperator.${c.comparison_operator}`, { ns: 'workflow' }) : c.comparison_operator}</div>
{c.comparison_operator && !isEmptyRelatedOperator(c.comparison_operator) && <div className="system-xs-regular text-text-secondary">{isSelect(c) ? selectName(c) : formatValue(c)}</div>}
- {index !== sub_variable_condition.conditions.length - 1 && (<div className="absolute bottom-[-10px] right-1 z-10 text-[10px] font-medium uppercase leading-4 text-text-accent">{t(`${i18nPrefix}.${sub_variable_condition.logical_operator}`, { ns: 'workflow' })}</div>)}
+ {index !== sub_variable_condition.conditions.length - 1 && (<div className="absolute right-1 bottom-[-10px] z-10 text-[10px] leading-4 font-medium text-text-accent uppercase">{t(`${i18nPrefix}.${sub_variable_condition.logical_operator}`, { ns: 'workflow' })}</div>)}
</div>
))
}
diff --git a/web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/item.tsx b/web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/item.tsx
index 859be286147..cc254d324e8 100644
--- a/web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/item.tsx
+++ b/web/app/components/workflow/nodes/parameter-extractor/components/extract-parameter/item.tsx
@@ -30,15 +30,15 @@ const Item: FC<Props> = ({
<div className="flex items-center">
<Variable02 className="h-3.5 w-3.5 text-text-accent-secondary" />
<div className="ml-1 text-[13px] font-medium text-text-primary">{payload.name}</div>
- <div className="ml-2 text-xs font-normal capitalize text-text-tertiary">{payload.type}</div>
+ <div className="ml-2 text-xs font-normal text-text-tertiary capitalize">{payload.type}</div>
</div>
{payload.required && (
- <div className="text-xs font-normal uppercase leading-4 text-text-tertiary">{t(`${i18nPrefix}.addExtractParameterContent.required`, { ns: 'workflow' })}</div>
+ <div className="text-xs leading-4 font-normal text-text-tertiary uppercase">{t(`${i18nPrefix}.addExtractParameterContent.required`, { ns: 'workflow' })}</div>
)}
</div>
- <div className="mt-0.5 text-xs font-normal leading-[18px] text-text-tertiary">{payload.description}</div>
+ <div className="mt-0.5 text-xs leading-[18px] font-normal text-text-tertiary">{payload.description}</div>
<div
- className="absolute right-0 top-0 hidden h-full w-[119px] items-center justify-end space-x-1 rounded-lg bg-linear-to-l from-components-panel-on-panel-item-bg to-background-gradient-mask-transparent pr-1 group-hover:flex"
+ className="absolute top-0 right-0 hidden h-full w-[119px] items-center justify-end space-x-1 rounded-lg bg-linear-to-l from-components-panel-on-panel-item-bg to-background-gradient-mask-transparent pr-1 group-hover:flex"
>
<div
className="cursor-pointer rounded-md p-1 hover:bg-state-base-hover"
diff --git a/web/app/components/workflow/nodes/question-classifier/node.tsx b/web/app/components/workflow/nodes/question-classifier/node.tsx
index 25740fe2b2e..2aae8debcf4 100644
--- a/web/app/components/workflow/nodes/question-classifier/node.tsx
+++ b/web/app/components/workflow/nodes/question-classifier/node.tsx
@@ -31,7 +31,7 @@ const TruncatedClassItem: FC<TruncatedClassItemProps> = ({ topic, index, nodeId,
const shouldShowTooltip = topic.name.length > MAX_CLASS_TEXT_LENGTH
const content = (
- <div className="system-xs-regular truncate text-text-tertiary">
+ <div className="truncate system-xs-regular text-text-tertiary">
<ReadonlyInputWithSelectVar
value={truncatedText}
nodeId={nodeId}
@@ -42,7 +42,7 @@ const TruncatedClassItem: FC<TruncatedClassItemProps> = ({ topic, index, nodeId,
return (
<div className="flex flex-col gap-y-0.5 rounded-md bg-workflow-block-parma-bg px-[5px] py-[3px]">
- <div className="system-2xs-semibold-uppercase uppercase text-text-secondary">
+ <div className="system-2xs-semibold-uppercase text-text-secondary uppercase">
{`${t(`${i18nPrefix}.class`, { ns: 'workflow' })} ${index + 1}`}
</div>
{shouldShowTooltip
diff --git a/web/app/components/workflow/nodes/start/node.tsx b/web/app/components/workflow/nodes/start/node.tsx
index 845a2922aca..7d1cb31766b 100644
--- a/web/app/components/workflow/nodes/start/node.tsx
+++ b/web/app/components/workflow/nodes/start/node.tsx
@@ -21,10 +21,10 @@ const Node: FC<NodeProps<StartNodeType>> = ({
<div className="mb-1 px-3 py-1">
<div className="space-y-0.5">
{variables.map(variable => (
- <div key={variable.variable} className="flex h-6 items-center justify-between space-x-1 rounded-md bg-workflow-block-parma-bg px-1">
+ <div key={variable.variable} className="flex h-6 items-center justify-between space-x-1 rounded-md bg-workflow-block-parma-bg px-1">
<div className="flex w-0 grow items-center space-x-1">
<Variable02 className="h-3.5 w-3.5 shrink-0 text-text-accent" />
- <span className="system-xs-regular w-0 grow truncate text-text-secondary">{variable.variable}</span>
+ <span className="w-0 grow truncate system-xs-regular text-text-secondary">{variable.variable}</span>
</div>
<div className="ml-1 flex items-center space-x-1">
diff --git a/web/app/components/workflow/nodes/tool/components/copy-id.tsx b/web/app/components/workflow/nodes/tool/components/copy-id.tsx
index f0c5e191c7d..eaf3d1bec5c 100644
--- a/web/app/components/workflow/nodes/tool/components/copy-id.tsx
+++ b/web/app/components/workflow/nodes/tool/components/copy-id.tsx
@@ -36,11 +36,11 @@ const CopyFeedbackNew = ({ content }: Props) => {
}
>
<div
- className="group/copy flex w-full items-center gap-0.5 "
+ className="group/copy flex w-full items-center gap-0.5"
onClick={onClickCopy}
>
<div
- className="system-2xs-regular w-0 grow cursor-pointer truncate text-text-quaternary group-hover:text-text-tertiary"
+ className="w-0 grow cursor-pointer truncate system-2xs-regular text-text-quaternary group-hover:text-text-tertiary"
>
{content}
</div>
diff --git a/web/app/components/workflow/nodes/trigger-plugin/node.tsx b/web/app/components/workflow/nodes/trigger-plugin/node.tsx
index 9796fa33941..49fb0fd68cd 100644
--- a/web/app/components/workflow/nodes/trigger-plugin/node.tsx
+++ b/web/app/components/workflow/nodes/trigger-plugin/node.tsx
@@ -64,7 +64,7 @@ const Node: FC<NodeProps<PluginTriggerNodeType>> = ({
return (
<div className="relative mb-1 px-3 py-1">
{showInstallButton && (
- <div className="pointer-events-auto absolute right-3 top-[-32px] z-40">
+ <div className="pointer-events-auto absolute top-[-32px] right-3 z-40">
<InstallPluginButton
size="small"
extraIdentifiers={[
@@ -87,7 +87,7 @@ const Node: FC<NodeProps<PluginTriggerNodeType>> = ({
>
<div
title={key}
- className="max-w-[100px] shrink-0 truncate text-xs font-medium uppercase text-text-tertiary"
+ className="max-w-[100px] shrink-0 truncate text-xs font-medium text-text-tertiary uppercase"
>
{key}
</div>
diff --git a/web/app/components/workflow/nodes/trigger-schedule/components/next-execution-times.tsx b/web/app/components/workflow/nodes/trigger-schedule/components/next-execution-times.tsx
index c24cae9f2ad..68016c92d15 100644
--- a/web/app/components/workflow/nodes/trigger-schedule/components/next-execution-times.tsx
+++ b/web/app/components/workflow/nodes/trigger-schedule/components/next-execution-times.tsx
@@ -26,10 +26,10 @@ const NextExecutionTimes = ({ data }: NextExecutionTimesProps) => {
<div className="flex min-h-[80px] flex-col rounded-xl bg-components-input-bg-normal py-2">
{executionTimes.map((time, index) => (
<div key={index} className="flex items-baseline text-xs">
- <span className="w-6 select-none text-right font-mono font-normal leading-[150%] tracking-wider text-text-quaternary">
+ <span className="w-6 text-right font-mono leading-[150%] font-normal tracking-wider text-text-quaternary select-none">
{String(index + 1).padStart(2, '0')}
</span>
- <span className="pl-2 pr-3 font-mono font-normal leading-[150%] tracking-wider text-text-secondary">
+ <span className="pr-3 pl-2 font-mono leading-[150%] font-normal tracking-wider text-text-secondary">
{time}
</span>
</div>
diff --git a/web/app/components/workflow/nodes/trigger-schedule/components/on-minute-selector.tsx b/web/app/components/workflow/nodes/trigger-schedule/components/on-minute-selector.tsx
index e0a46d1c685..61c943992c8 100644
--- a/web/app/components/workflow/nodes/trigger-schedule/components/on-minute-selector.tsx
+++ b/web/app/components/workflow/nodes/trigger-schedule/components/on-minute-selector.tsx
@@ -19,8 +19,8 @@ const OnMinuteSelector = ({ value = 0, onChange }: OnMinuteSelectorProps) => {
<div className="flex h-full w-12 shrink-0 items-center justify-center text-[13px] text-components-input-text-filled">
{value}
</div>
- <div className="absolute left-12 top-0 h-full w-px bg-components-panel-bg"></div>
- <div className="flex h-full grow items-center pl-4 pr-3">
+ <div className="absolute top-0 left-12 h-full w-px bg-components-panel-bg"></div>
+ <div className="flex h-full grow items-center pr-3 pl-4">
<Slider
className="w-full"
value={value}
diff --git a/web/app/components/workflow/nodes/trigger-schedule/node.tsx b/web/app/components/workflow/nodes/trigger-schedule/node.tsx
index c3b2d0315a3..337f2bd8f38 100644
--- a/web/app/components/workflow/nodes/trigger-schedule/node.tsx
+++ b/web/app/components/workflow/nodes/trigger-schedule/node.tsx
@@ -14,7 +14,7 @@ const Node: FC<NodeProps<ScheduleTriggerNodeType>> = ({
return (
<div className="mb-1 px-3 py-1">
- <div className="mb-1 text-[10px] font-medium uppercase tracking-wide text-text-tertiary">
+ <div className="mb-1 text-[10px] font-medium tracking-wide text-text-tertiary uppercase">
{t(`${i18nPrefix}.nextExecutionTime`, { ns: 'workflow' })}
</div>
<div className="flex h-[26px] items-center rounded-md bg-workflow-block-parma-bg px-2 text-xs text-text-secondary">
diff --git a/web/app/components/workflow/nodes/trigger-schedule/panel.tsx b/web/app/components/workflow/nodes/trigger-schedule/panel.tsx
index f1ec6559014..d8ca0857af2 100644
--- a/web/app/components/workflow/nodes/trigger-schedule/panel.tsx
+++ b/web/app/components/workflow/nodes/trigger-schedule/panel.tsx
@@ -34,7 +34,7 @@ const Panel: FC<NodePanelProps<ScheduleTriggerNodeType>> = ({
return (
<div className="mt-2">
- <div className="space-y-4 px-4 pb-3 pt-2">
+ <div className="space-y-4 px-4 pt-2 pb-3">
<Field
title={t(`${i18nPrefix}.title`, { ns: 'workflow' })}
operations={(
diff --git a/web/app/components/workflow/nodes/trigger-webhook/node.tsx b/web/app/components/workflow/nodes/trigger-webhook/node.tsx
index 2de1b30aee7..1777be1cac0 100644
--- a/web/app/components/workflow/nodes/trigger-webhook/node.tsx
+++ b/web/app/components/workflow/nodes/trigger-webhook/node.tsx
@@ -8,7 +8,7 @@ const Node: FC<NodeProps<WebhookTriggerNodeType>> = ({
}) => {
return (
<div className="mb-1 px-3 py-1">
- <div className="mb-1 text-[10px] font-medium uppercase tracking-wide text-text-tertiary">
+ <div className="mb-1 text-[10px] font-medium tracking-wide text-text-tertiary uppercase">
URL
</div>
<div className="flex h-[26px] items-center rounded-md bg-workflow-block-parma-bg px-2 text-xs text-text-secondary">
diff --git a/web/app/components/workflow/nodes/trigger-webhook/utils/render-output-vars.tsx b/web/app/components/workflow/nodes/trigger-webhook/utils/render-output-vars.tsx
index d58561b6031..a0b0e4e8ede 100644
--- a/web/app/components/workflow/nodes/trigger-webhook/utils/render-output-vars.tsx
+++ b/web/app/components/workflow/nodes/trigger-webhook/utils/render-output-vars.tsx
@@ -34,7 +34,7 @@ const VarItem: FC<VarItemProps> = ({ prefix, name, type }) => {
.
</span>
<span className="code-sm-semibold text-text-secondary">{name}</span>
- <span className="system-xs-regular ml-2 text-text-tertiary">{type}</span>
+ <span className="ml-2 system-xs-regular text-text-tertiary">{type}</span>
</div>
</div>
)
@@ -43,7 +43,7 @@ const VarItem: FC<VarItemProps> = ({ prefix, name, type }) => {
export const OutputVariablesContent: FC<OutputVariablesContentProps> = ({ variables = [] }) => {
if (!variables || variables.length === 0) {
return (
- <div className="system-sm-regular py-2 text-text-tertiary">
+ <div className="py-2 system-sm-regular text-text-tertiary">
No output variables
</div>
)
diff --git a/web/app/components/workflow/nodes/variable-assigner/components/var-group-item.tsx b/web/app/components/workflow/nodes/variable-assigner/components/var-group-item.tsx
index 56cdf833f46..738e986e9cc 100644
--- a/web/app/components/workflow/nodes/variable-assigner/components/var-group-item.tsx
+++ b/web/app/components/workflow/nodes/variable-assigner/components/var-group-item.tsx
@@ -110,7 +110,7 @@ const VarGroupItem: FC<Props> = ({
<Folder className="mr-0.5 h-3.5 w-3.5" />
{(!isEditGroupName)
? (
- <div className="system-sm-semibold flex h-6 cursor-text items-center rounded-lg px-1 text-text-secondary hover:bg-gray-100" onClick={setEditGroupName}>
+ <div className="flex h-6 cursor-text items-center rounded-lg px-1 system-sm-semibold text-text-secondary hover:bg-gray-100" onClick={setEditGroupName}>
{payload.group_name}
</div>
)
@@ -133,7 +133,7 @@ const VarGroupItem: FC<Props> = ({
</div>
{canRemove && (
<div
- className="ml-0.5 hidden cursor-pointer rounded-md p-1 text-text-tertiary hover:bg-state-destructive-hover hover:text-text-destructive group-hover:block"
+ className="ml-0.5 hidden cursor-pointer rounded-md p-1 text-text-tertiary group-hover:block hover:bg-state-destructive-hover hover:text-text-destructive"
onClick={onRemove}
>
<RiDeleteBinLine
@@ -145,9 +145,9 @@ const VarGroupItem: FC<Props> = ({
)
: t(`${i18nPrefix}.title`, { ns: 'workflow' })!}
operations={(
- <div className="flex h-6 items-center space-x-2">
+ <div className="flex h-6 items-center space-x-2">
{payload.variables.length > 0 && (
- <div className="system-2xs-medium-uppercase flex h-[18px] items-center rounded-[5px] border border-divider-deep px-1 text-text-tertiary">{payload.output_type}</div>
+ <div className="flex h-[18px] items-center rounded-[5px] border border-divider-deep px-1 system-2xs-medium-uppercase text-text-tertiary">{payload.output_type}</div>
)}
{
!readOnly
diff --git a/web/app/components/workflow/operator/index.tsx b/web/app/components/workflow/operator/index.tsx
index d13758c87d0..052953cecf9 100644
--- a/web/app/components/workflow/operator/index.tsx
+++ b/web/app/components/workflow/operator/index.tsx
@@ -72,7 +72,7 @@ const Operator = ({ handleUndo, handleRedo }: OperatorProps) => {
return (
<div
ref={bottomPanelRef}
- className="absolute bottom-0 left-0 right-0 z-[60] px-1"
+ className="absolute right-0 bottom-0 left-0 z-[60] px-1"
style={
{
width: bottomPanelWidth,
diff --git a/web/app/components/workflow/panel/chat-record/user-input.tsx b/web/app/components/workflow/panel/chat-record/user-input.tsx
index c29e28ca9a6..111a90c854b 100644
--- a/web/app/components/workflow/panel/chat-record/user-input.tsx
+++ b/web/app/components/workflow/panel/chat-record/user-input.tsx
@@ -43,7 +43,7 @@ const UserInput = ({
/>
{t('panel.userInputField', { ns: 'workflow' }).toLocaleUpperCase()}
</div>
- <div className="px-2 pb-3 pt-1">
+ <div className="px-2 pt-1 pb-3">
{
expanded && (
<div className="py-2 text-[13px] text-text-primary">
diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/object-value-item.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/object-value-item.tsx
index e2ee83cb062..cd8e8468a5b 100644
--- a/web/app/components/workflow/panel/chat-variable-panel/components/object-value-item.tsx
+++ b/web/app/components/workflow/panel/chat-variable-panel/components/object-value-item.tsx
@@ -97,7 +97,7 @@ const ObjectValueItem: FC<Props> = ({
{/* Key */}
<div className="w-[120px] border-r border-gray-200">
<input
- className="block h-7 w-full appearance-none px-2 text-text-secondary caret-primary-600 outline-hidden system-xs-regular placeholder:text-components-input-text-placeholder placeholder:system-xs-regular hover:bg-state-base-hover focus:bg-components-input-bg-active"
+ className="block h-7 w-full appearance-none px-2 system-xs-regular text-text-secondary caret-primary-600 outline-hidden placeholder:system-xs-regular placeholder:text-components-input-text-placeholder hover:bg-state-base-hover focus:bg-components-input-bg-active"
placeholder={t('chatVariable.modal.objectKey', { ns: 'workflow' }) || ''}
value={list[index].key}
onChange={handleKeyChange(index)}
@@ -116,7 +116,7 @@ const ObjectValueItem: FC<Props> = ({
{/* Value */}
<div className="relative w-[230px]">
<input
- className="block h-7 w-full appearance-none px-2 text-text-secondary caret-primary-600 outline-hidden system-xs-regular placeholder:text-components-input-text-placeholder placeholder:system-xs-regular hover:bg-state-base-hover focus:bg-components-input-bg-active"
+ className="block h-7 w-full appearance-none px-2 system-xs-regular text-text-secondary caret-primary-600 outline-hidden placeholder:system-xs-regular placeholder:text-components-input-text-placeholder hover:bg-state-base-hover focus:bg-components-input-bg-active"
placeholder={t('chatVariable.modal.objectValue', { ns: 'workflow' }) || ''}
value={list[index].value}
onChange={handleValueChange(index)}
@@ -126,7 +126,7 @@ const ObjectValueItem: FC<Props> = ({
/>
{list.length > 1 && !isFocus && (
<RemoveButton
- className="absolute right-1 top-0.5 z-10 hidden group-hover:block"
+ className="absolute top-0.5 right-1 z-10 hidden group-hover:block"
onClick={handleItemRemove(index)}
/>
)}
diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/object-value-list.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/object-value-list.tsx
index a89688a5a1a..486fa9370ab 100644
--- a/web/app/components/workflow/panel/chat-variable-panel/components/object-value-list.tsx
+++ b/web/app/components/workflow/panel/chat-variable-panel/components/object-value-list.tsx
@@ -17,10 +17,10 @@ const ObjectValueList: FC<Props> = ({
return (
<div className="w-full overflow-hidden rounded-lg border border-gray-200">
- <div className="system-xs-medium flex h-7 items-center uppercase text-text-tertiary">
+ <div className="flex h-7 items-center system-xs-medium text-text-tertiary uppercase">
<div className="flex h-full w-[120px] items-center border-r border-gray-200 pl-2">{t('chatVariable.modal.objectKey', { ns: 'workflow' })}</div>
<div className="flex h-full w-[96px] items-center border-r border-gray-200 pl-2">{t('chatVariable.modal.objectType', { ns: 'workflow' })}</div>
- <div className="flex h-full w-[230px] items-center pl-2 pr-1">{t('chatVariable.modal.objectValue', { ns: 'workflow' })}</div>
+ <div className="flex h-full w-[230px] items-center pr-1 pl-2">{t('chatVariable.modal.objectValue', { ns: 'workflow' })}</div>
</div>
{list.map((item, index) => (
<ObjectValueItem
diff --git a/web/app/components/workflow/panel/comments-panel/index.tsx b/web/app/components/workflow/panel/comments-panel/index.tsx
index 36e1aef8334..21b3c3c4e66 100644
--- a/web/app/components/workflow/panel/comments-panel/index.tsx
+++ b/web/app/components/workflow/panel/comments-panel/index.tsx
@@ -94,7 +94,7 @@ const CommentsPanel = () => {
}}
>
<span className="text-text-secondary">{t('comments.filter.all', { ns: 'workflow' })}</span>
- {!showOnlyMine && <RiCheckLine className="text-primary-600 h-4 w-4" />}
+ {!showOnlyMine && <RiCheckLine className="h-4 w-4 text-primary-600" />}
</button>
<button
className={cn('mt-1 flex w-full items-center justify-between rounded-md px-2 py-2 text-left text-sm hover:bg-state-base-hover', showOnlyMine && 'bg-components-panel-on-panel-item-bg')}
@@ -104,7 +104,7 @@ const CommentsPanel = () => {
}}
>
<span className="text-text-secondary">{t('comments.filter.onlyYourThreads', { ns: 'workflow' })}</span>
- {showOnlyMine && <RiCheckLine className="text-primary-600 h-4 w-4" />}
+ {showOnlyMine && <RiCheckLine className="h-4 w-4 text-primary-600" />}
</button>
<Divider type="horizontal" className="my-1" />
<div
diff --git a/web/app/components/workflow/panel/debug-and-preview/empty.tsx b/web/app/components/workflow/panel/debug-and-preview/empty.tsx
index 0cb0869b5a1..d71853d8e11 100644
--- a/web/app/components/workflow/panel/debug-and-preview/empty.tsx
+++ b/web/app/components/workflow/panel/debug-and-preview/empty.tsx
@@ -5,7 +5,7 @@ const Empty = () => {
const { t } = useTranslation()
return (
- <div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2">
+ <div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">
<div className="mb-2 flex justify-center">
<ChatBotSlim className="h-12 w-12 text-gray-300" />
</div>
diff --git a/web/app/components/workflow/panel/record.tsx b/web/app/components/workflow/panel/record.tsx
index ff84c73db93..94aaac34580 100644
--- a/web/app/components/workflow/panel/record.tsx
+++ b/web/app/components/workflow/panel/record.tsx
@@ -22,7 +22,7 @@ const Record = () => {
return (
<div className="flex h-full w-[400px] flex-col rounded-l-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg shadow-xl">
- <div className="system-xl-semibold flex items-center justify-between p-4 pb-0 text-text-primary">
+ <div className="flex items-center justify-between p-4 pb-0 system-xl-semibold text-text-primary">
{`Test Run${formatWorkflowRunIdentifier(historyWorkflowData?.finished_at)}`}
</div>
<Run
diff --git a/web/app/components/workflow/panel/version-history-panel/filter/filter-item.tsx b/web/app/components/workflow/panel/version-history-panel/filter/filter-item.tsx
index d7a37caa5ea..6c659fea5b7 100644
--- a/web/app/components/workflow/panel/version-history-panel/filter/filter-item.tsx
+++ b/web/app/components/workflow/panel/version-history-panel/filter/filter-item.tsx
@@ -24,7 +24,7 @@ const FilterItem: FC<FilterItemProps> = ({
onClick(item.key)
}}
>
- <div className="system-md-regular flex-1 text-text-primary">{item.name}</div>
+ <div className="flex-1 system-md-regular text-text-primary">{item.name}</div>
{isSelected && <RiCheckLine className="h-4 w-4 shrink-0 text-text-accent" />}
</div>
)
diff --git a/web/app/components/workflow/panel/version-history-panel/loading/index.tsx b/web/app/components/workflow/panel/version-history-panel/loading/index.tsx
index a6dadcd652a..ad5f7d63917 100644
--- a/web/app/components/workflow/panel/version-history-panel/loading/index.tsx
+++ b/web/app/components/workflow/panel/version-history-panel/loading/index.tsx
@@ -12,7 +12,7 @@ const itemConfig = Array.from({ length: 8 }).map((_, index) => {
const Loading = () => {
return (
<div className="relative w-full overflow-y-hidden">
- <div className="absolute left-0 top-0 z-10 h-full w-full bg-dataset-chunk-list-mask-bg" />
+ <div className="absolute top-0 left-0 z-10 h-full w-full bg-dataset-chunk-list-mask-bg" />
{itemConfig.map((config, index) => <Item key={index} {...config} />)}
</div>
)
diff --git a/web/app/components/workflow/run/meta.tsx b/web/app/components/workflow/run/meta.tsx
index 9cffd7ad413..46dc42c3c11 100644
--- a/web/app/components/workflow/run/meta.tsx
+++ b/web/app/components/workflow/run/meta.tsx
@@ -27,11 +27,11 @@ const MetaData: FC<Props> = ({
return (
<div className="relative">
- <div className="system-xs-medium-uppercase h-6 py-1 text-text-tertiary">{t('meta.title', { ns: 'runLog' })}</div>
+ <div className="h-6 py-1 system-xs-medium-uppercase text-text-tertiary">{t('meta.title', { ns: 'runLog' })}</div>
<div className="py-1">
<div className="flex">
- <div className="system-xs-regular w-[104px] shrink-0 truncate px-2 py-1.5 text-text-tertiary">{t('meta.status', { ns: 'runLog' })}</div>
- <div className="system-xs-regular grow px-2 py-1.5 text-text-secondary">
+ <div className="w-[104px] shrink-0 truncate px-2 py-1.5 system-xs-regular text-text-tertiary">{t('meta.status', { ns: 'runLog' })}</div>
+ <div className="grow px-2 py-1.5 system-xs-regular text-text-secondary">
{status === 'running' && (
<div className="my-1 h-2 w-16 rounded-xs bg-text-quaternary" />
)}
@@ -56,8 +56,8 @@ const MetaData: FC<Props> = ({
</div>
</div>
<div className="flex">
- <div className="system-xs-regular w-[104px] shrink-0 truncate px-2 py-1.5 text-text-tertiary">{t('meta.executor', { ns: 'runLog' })}</div>
- <div className="system-xs-regular grow px-2 py-1.5 text-text-secondary">
+ <div className="w-[104px] shrink-0 truncate px-2 py-1.5 system-xs-regular text-text-tertiary">{t('meta.executor', { ns: 'runLog' })}</div>
+ <div className="grow px-2 py-1.5 system-xs-regular text-text-secondary">
{status === 'running' && (
<div className="my-1 h-2 w-[88px] rounded-xs bg-text-quaternary" />
)}
@@ -67,8 +67,8 @@ const MetaData: FC<Props> = ({
</div>
</div>
<div className="flex">
- <div className="system-xs-regular w-[104px] shrink-0 truncate px-2 py-1.5 text-text-tertiary">{t('meta.startTime', { ns: 'runLog' })}</div>
- <div className="system-xs-regular grow px-2 py-1.5 text-text-secondary">
+ <div className="w-[104px] shrink-0 truncate px-2 py-1.5 system-xs-regular text-text-tertiary">{t('meta.startTime', { ns: 'runLog' })}</div>
+ <div className="grow px-2 py-1.5 system-xs-regular text-text-secondary">
{status === 'running' && (
<div className="my-1 h-2 w-[72px] rounded-xs bg-text-quaternary" />
)}
@@ -78,8 +78,8 @@ const MetaData: FC<Props> = ({
</div>
</div>
<div className="flex">
- <div className="system-xs-regular w-[104px] shrink-0 truncate px-2 py-1.5 text-text-tertiary">{t('meta.time', { ns: 'runLog' })}</div>
- <div className="system-xs-regular grow px-2 py-1.5 text-text-secondary">
+ <div className="w-[104px] shrink-0 truncate px-2 py-1.5 system-xs-regular text-text-tertiary">{t('meta.time', { ns: 'runLog' })}</div>
+ <div className="grow px-2 py-1.5 system-xs-regular text-text-secondary">
{status === 'running' && (
<div className="my-1 h-2 w-[72px] rounded-xs bg-text-quaternary" />
)}
@@ -89,8 +89,8 @@ const MetaData: FC<Props> = ({
</div>
</div>
<div className="flex">
- <div className="system-xs-regular w-[104px] shrink-0 truncate px-2 py-1.5 text-text-tertiary">{t('meta.tokens', { ns: 'runLog' })}</div>
- <div className="system-xs-regular grow px-2 py-1.5 text-text-secondary">
+ <div className="w-[104px] shrink-0 truncate px-2 py-1.5 system-xs-regular text-text-tertiary">{t('meta.tokens', { ns: 'runLog' })}</div>
+ <div className="grow px-2 py-1.5 system-xs-regular text-text-secondary">
{['running', 'paused'].includes(status) && (
<div className="my-1 h-2 w-[48px] animate-pulse rounded-xs bg-text-quaternary" />
)}
@@ -101,8 +101,8 @@ const MetaData: FC<Props> = ({
</div>
{showSteps && (
<div className="flex">
- <div className="system-xs-regular w-[104px] shrink-0 truncate px-2 py-1.5 text-text-tertiary">{t('meta.steps', { ns: 'runLog' })}</div>
- <div className="system-xs-regular grow px-2 py-1.5 text-text-secondary">
+ <div className="w-[104px] shrink-0 truncate px-2 py-1.5 system-xs-regular text-text-tertiary">{t('meta.steps', { ns: 'runLog' })}</div>
+ <div className="grow px-2 py-1.5 system-xs-regular text-text-secondary">
{status === 'running' && (
<div className="my-1 h-2 w-[24px] rounded-xs bg-text-quaternary" />
)}
diff --git a/web/app/components/workflow/run/output-panel.tsx b/web/app/components/workflow/run/output-panel.tsx
index f40470244e5..f7ed097df22 100644
--- a/web/app/components/workflow/run/output-panel.tsx
+++ b/web/app/components/workflow/run/output-panel.tsx
@@ -56,7 +56,7 @@ const OutputPanel: FC<OutputPanelProps> = ({
return (
<div className="p-2">
{isRunning && (
- <div className="pl-[26px] pt-4">
+ <div className="pt-4 pl-[26px]">
<LoadingAnim type="text" />
</div>
)}
diff --git a/web/app/components/workflow/run/result-panel.tsx b/web/app/components/workflow/run/result-panel.tsx
index c7f4a455403..0304037d279 100644
--- a/web/app/components/workflow/run/result-panel.tsx
+++ b/web/app/components/workflow/run/result-panel.tsx
@@ -138,7 +138,7 @@ const ResultPanel: FC<ResultPanelProps> = ({
language={CodeLanguage.json}
value={inputs}
isJSONStringifyBeauty
- footer={inputs_truncated && <LargeDataAlert textHasNoExport className="mx-1 mb-1 mt-2 h-7" />}
+ footer={inputs_truncated && <LargeDataAlert textHasNoExport className="mx-1 mt-2 mb-1 h-7" />}
/>
{process_data && (
<CodeEditor
@@ -147,7 +147,7 @@ const ResultPanel: FC<ResultPanelProps> = ({
language={CodeLanguage.json}
value={process_data}
isJSONStringifyBeauty
- footer={process_data_truncated && <LargeDataAlert textHasNoExport className="mx-1 mb-1 mt-2 h-7" />}
+ footer={process_data_truncated && <LargeDataAlert textHasNoExport className="mx-1 mt-2 mb-1 h-7" />}
/>
)}
{(outputs || status === 'running') && (
@@ -158,7 +158,7 @@ const ResultPanel: FC<ResultPanelProps> = ({
value={outputs}
isJSONStringifyBeauty
tip={<ErrorHandleTip type={execution_metadata?.error_strategy} />}
- footer={outputs_truncated && <LargeDataAlert textHasNoExport downloadUrl={outputs_full_content?.download_url} className="mx-1 mb-1 mt-2 h-7" />}
+ footer={outputs_truncated && <LargeDataAlert textHasNoExport downloadUrl={outputs_full_content?.download_url} className="mx-1 mt-2 mb-1 h-7" />}
/>
)}
</div>
diff --git a/web/app/components/workflow/run/result-text.tsx b/web/app/components/workflow/run/result-text.tsx
index 4169f452b20..fcbbf8043d6 100644
--- a/web/app/components/workflow/run/result-text.tsx
+++ b/web/app/components/workflow/run/result-text.tsx
@@ -28,7 +28,7 @@ const ResultText: FC<ResultTextProps> = ({
return (
<div className="bg-background-section-burn">
{isRunning && !outputs && (
- <div className="pl-[26px] pt-4">
+ <div className="pt-4 pl-[26px]">
<LoadingAnim type="text" />
</div>
)}
@@ -58,8 +58,8 @@ const ResultText: FC<ResultTextProps> = ({
</div>
)}
{!!allFiles?.length && allFiles.map(item => (
- <div key={item.varName} className="system-xs-regular flex flex-col gap-1 px-4 py-2">
- <div className="py-1 text-text-tertiary ">{item.varName}</div>
+ <div key={item.varName} className="flex flex-col gap-1 px-4 py-2 system-xs-regular">
+ <div className="py-1 text-text-tertiary">{item.varName}</div>
<FileList
files={item.list}
showDeleteAction={false}
diff --git a/web/app/components/workflow/run/retry-log/retry-result-panel.tsx b/web/app/components/workflow/run/retry-log/retry-result-panel.tsx
index b0efe6eb212..5ed6574737e 100644
--- a/web/app/components/workflow/run/retry-log/retry-result-panel.tsx
+++ b/web/app/components/workflow/run/retry-log/retry-result-panel.tsx
@@ -23,7 +23,7 @@ const RetryResultPanel: FC<Props> = ({
return (
<div>
<div
- className="system-sm-medium flex h-8 cursor-pointer items-center bg-components-panel-bg px-4 text-text-accent-secondary"
+ className="flex h-8 cursor-pointer items-center bg-components-panel-bg px-4 system-sm-medium text-text-accent-secondary"
onClick={(e) => {
e.stopPropagation()
e.nativeEvent.stopImmediatePropagation()
diff --git a/web/app/components/workflow/workflow-preview/components/nodes/if-else/node.tsx b/web/app/components/workflow/workflow-preview/components/nodes/if-else/node.tsx
index 1fd84fff6dd..27c448c487c 100644
--- a/web/app/components/workflow/workflow-preview/components/nodes/if-else/node.tsx
+++ b/web/app/components/workflow/workflow-preview/components/nodes/if-else/node.tsx
@@ -85,7 +85,7 @@ const IfElseNode: FC<NodeProps<IfElseNodeType>> = (props) => {
: conditionNotSet
}
{i !== caseItem.conditions.length - 1 && (
- <div className="absolute bottom-[-10px] right-1 z-10 text-[10px] font-medium uppercase leading-4 text-text-accent">{t(`${i18nPrefix}.${caseItem.logical_operator}`, { ns: 'workflow' })}</div>
+ <div className="absolute right-1 bottom-[-10px] z-10 text-[10px] leading-4 font-medium text-text-accent uppercase">{t(`${i18nPrefix}.${caseItem.logical_operator}`, { ns: 'workflow' })}</div>
)}
</div>
))}
diff --git a/web/app/education-apply/search-input.tsx b/web/app/education-apply/search-input.tsx
index 072ae340077..47eca921ee7 100644
--- a/web/app/education-apply/search-input.tsx
+++ b/web/app/education-apply/search-input.tsx
@@ -100,7 +100,7 @@ const SearchInput = ({
schools.map((school, index) => (
<div
key={index}
- className="system-md-regular flex h-8 cursor-pointer items-center truncate rounded-lg px-2 py-1.5 text-text-secondary hover:bg-state-base-hover"
+ className="flex h-8 cursor-pointer items-center truncate rounded-lg px-2 py-1.5 system-md-regular text-text-secondary hover:bg-state-base-hover"
title={school}
onClick={() => {
onChange(school)
diff --git a/web/app/signup/page.tsx b/web/app/signup/page.tsx
index da821ae50e0..f3a9d2abb27 100644
--- a/web/app/signup/page.tsx
+++ b/web/app/signup/page.tsx
@@ -20,7 +20,7 @@ const Signup = () => {
<div className="mx-auto mt-8 w-full">
<div className="mx-auto mb-10 w-full">
<h2 className="title-4xl-semi-bold text-text-primary">{t('signup.createAccount', { ns: 'login' })}</h2>
- <p className="body-md-regular mt-2 text-text-tertiary">{t('signup.welcome', { ns: 'login' })}</p>
+ <p className="mt-2 body-md-regular text-text-tertiary">{t('signup.welcome', { ns: 'login' })}</p>
</div>
<MailForm onSuccess={handleInputMailSubmitted} />
</div>
diff --git a/web/context/app-context-provider.tsx b/web/context/app-context-provider.tsx
index 78a8f99e7f3..0bf38510462 100644
--- a/web/context/app-context-provider.tsx
+++ b/web/context/app-context-provider.tsx
@@ -145,7 +145,7 @@ export const AppContextProvider: FC<AppContextProviderProps> = ({ children }) =>
>
<div className="flex h-full flex-col overflow-y-auto">
{env.NEXT_PUBLIC_MAINTENANCE_NOTICE && <MaintenanceNotice />}
- <div className="relative flex grow flex-col overflow-y-auto overflow-x-hidden bg-background-body">
+ <div className="relative flex grow flex-col overflow-x-hidden overflow-y-auto bg-background-body">
{children}
</div>
</div>
diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs
index 73a30fc0722..eab02ec664d 100644
--- a/web/eslint.config.mjs
+++ b/web/eslint.config.mjs
@@ -1,7 +1,7 @@
// @ts-check
import path from 'node:path'
-import antfu, { GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_TESTS, GLOB_TS, GLOB_TSX, isInEditorEnv, isInGitHooksOrLintStaged } from '@antfu/eslint-config'
+import antfu, { GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_TESTS, GLOB_TS, GLOB_TSX } from '@antfu/eslint-config'
import pluginQuery from '@tanstack/eslint-plugin-query'
import md from 'eslint-markdown'
import tailwindcss from 'eslint-plugin-better-tailwindcss'
@@ -19,12 +19,6 @@ import {
} from './eslint.constants.mjs'
import dify from './plugins/eslint/index.js'
-// Enable Tailwind CSS IntelliSense mode for ESLint runs
-// See: tailwind-css-plugin.ts
-process.env.TAILWIND_MODE ??= 'ESLINT'
-
-const disableRuleAutoFix = !(isInEditorEnv() || isInGitHooksOrLintStaged())
-
export default antfu(
{
react: {
@@ -203,10 +197,3 @@ export default antfu(
},
},
)
- .disableRulesFix(disableRuleAutoFix
- ? [
- 'tailwindcss/enforce-consistent-class-order',
- 'tailwindcss/no-duplicate-classes',
- 'tailwindcss/no-unnecessary-whitespace',
- ]
- : [])