fix(web): unify New RAG content padding (WTA-2065)

This commit is contained in:
Stephen Zhou 2026-08-17 15:59:44 +08:00
parent 28f715f800
commit 233db4dd56
No known key found for this signature in database
8 changed files with 8 additions and 8 deletions

View File

@ -1245,7 +1245,7 @@ export function AddSourcePage({
return (
<>
<main className="h-full min-h-0 w-full min-w-0 flex-1 overflow-y-auto px-4 pt-3 pb-6 sm:px-8 sm:pb-8">
<main className="h-full min-h-0 w-full min-w-0 flex-1 overflow-y-auto px-6 pt-3 pb-6 sm:pb-8">
<header>
<h2 className="system-xl-semibold text-text-primary">
{t(($) => $['newKnowledge.addSource'])}

View File

@ -264,7 +264,7 @@ export function DocumentDetailPage({
const document = documentQuery.data
return (
<section className="flex min-h-0 flex-1 flex-col px-6 pt-3 pb-5 lg:px-8">
<section className="flex min-h-0 flex-1 flex-col px-6 pt-3 pb-5">
<KnowledgeModelReadinessBanner
capability="index"
className="mb-4"

View File

@ -2587,7 +2587,7 @@ export function DocumentsPage({ knowledgeSpaceId }: { knowledgeSpaceId: string }
<section
ref={documentsSectionRef}
className={cn(
'relative flex min-h-full w-full flex-col gap-4 px-4 pt-3 sm:px-8',
'relative flex min-h-full w-full flex-col gap-4 px-6 pt-3',
bulkActionsVisible ? 'pb-[calc(7rem+env(safe-area-inset-bottom,0px))]' : 'pb-6',
)}
onDragEnter={(event) => {

View File

@ -217,7 +217,7 @@ export function KnowledgeSettingsPage({ knowledgeSpaceId }: { knowledgeSpaceId:
}
return (
<div className="min-h-full w-full overflow-y-auto px-6 pt-3 pb-6 sm:pr-6 sm:pl-20">
<div className="min-h-full w-full overflow-y-auto px-6 pt-3 pb-6">
<div className="flex flex-col gap-0.5">
<h1 className="system-xl-semibold text-text-primary">{tSettings(($) => $.title)}</h1>
<p className="system-xs-regular text-text-tertiary">

View File

@ -1939,7 +1939,7 @@ export function KnowledgeOverviewPage({ knowledgeSpaceId }: { knowledgeSpaceId:
return (
<main className="min-h-0 min-w-0 flex-1 overflow-y-auto bg-components-panel-bg">
<div className="mx-auto w-full max-w-332 px-5 pt-3 pb-6 sm:px-8">
<div className="mx-auto w-full max-w-332 px-6 pt-3 pb-6">
<header className="flex flex-wrap items-center justify-between gap-3">
<h1 className="title-3xl-bold text-text-primary">
{t(($) => $['newKnowledge.overviewTitle'])}

View File

@ -437,7 +437,7 @@ export function QualityPage({ knowledgeSpaceId }: { knowledgeSpaceId: string })
})
return (
<main className="relative min-h-full min-w-0 flex-1 px-8 pt-3 pb-20">
<main className="relative min-h-full min-w-0 flex-1 px-6 pt-3 pb-20">
<header>
<h1 className="system-xl-semibold text-text-primary">
{t(($) => $['newKnowledge.qualityPage.title'])}

View File

@ -1834,7 +1834,7 @@ export function RetrievalTestPage({ knowledgeSpaceId }: { knowledgeSpaceId: stri
}
return (
<main className="flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden rounded-lg bg-components-panel-bg px-5 pt-3 pb-5">
<main className="flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden rounded-lg bg-components-panel-bg px-6 pt-3 pb-5">
<header className="shrink-0">
<h1 className="title-xl-semi-bold leading-6 text-text-primary">
{t(($) => $['newKnowledge.retrievalTest.title'])}

View File

@ -1168,7 +1168,7 @@ export function SourcesPage({ knowledgeSpaceId }: { knowledgeSpaceId: string })
])
return (
<div className="flex min-h-full min-w-0 flex-1 flex-col px-4 pt-3 pb-6 sm:px-8 sm:pb-8">
<div className="flex min-h-full min-w-0 flex-1 flex-col px-6 pt-3 pb-6 sm:pb-8">
<header className="flex items-start justify-between gap-4">
<div>
<h2 className="title-xl-semi-bold leading-6 text-text-primary">