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

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
平衡世界的BOY 2026-07-22 20:44:29 +08:00 committed by GitHub
parent 34a5ca191b
commit 8853ed99a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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} />
)}