Skip to content

armgit / dify

Public Imported from GitHub
0

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

fix: prevent RBAC role names overflowing settings panel (#39412)

平衡世界的BOY8853ed99a53d
diff --git a/web/app/components/header/account-setting/index.tsx b/web/app/components/header/account-setting/index.tsx
index 36429c36cde..6bcc9f335eb 100644
--- a/web/app/components/header/account-setting/index.tsx
+++ b/web/app/components/header/account-setting/index.tsx
@@ -257,13 +257,13 @@ export default function AccountSetting({
))}
</div>
</div>
- <div className="relative flex min-h-0 w-[824px]">
+ <div className="relative flex min-h-0 w-[824px] min-w-0">
<ScrollArea
ref={scrollContainerRef}
- className="h-full min-h-0 flex-1 bg-components-panel-bg"
+ className="h-full min-h-0 min-w-0 flex-1 bg-components-panel-bg"
slotClassNames={{
- viewport: 'overscroll-contain',
- content: 'min-h-full pb-4',
+ viewport: 'overscroll-contain overflow-x-hidden',
+ content: 'min-h-full min-w-0 w-full max-w-full pb-4',
}}
>
<div className="sticky top-0 z-20 mx-8 flex min-h-[60px] items-end bg-components-panel-bg pt-8 pb-2">
@@ -288,7 +288,7 @@ export default function AccountSetting({
<div className="mt-1 system-2xs-medium-uppercase text-text-tertiary">ESC</div>
</div>
</div>
- <div className="px-4 pt-6 sm:px-8">
+ <div className="max-w-full min-w-0 px-4 pt-6 sm:px-8">
{activeMenu === ACCOUNT_SETTING_TAB.PROVIDER && (
<ModelProviderPage searchText={searchValue} onSearchTextChange={setSearchValue} />
)}