Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

📜 fix: Layout/Overflow handling in Share View (#11314)

Danny Avilaa8fa85b8e2e9
diff --git a/client/src/components/Share/MessagesView.tsx b/client/src/components/Share/MessagesView.tsx
index 2d11051688..9fa4276024 100644
--- a/client/src/components/Share/MessagesView.tsx
+++ b/client/src/components/Share/MessagesView.tsx
@@ -13,7 +13,7 @@ export default function MessagesView({
const localize = useLocalize();
const [currentEditId, setCurrentEditId] = useState<number | string | null>(-1);
return (
- <div className="flex-1 pb-[50px]">
+ <div className="min-h-0 flex-1 overflow-hidden pb-[50px]">
<div className="dark:gpt-dark-gray relative h-full">
<div
style={{
diff --git a/client/src/components/Share/ShareView.tsx b/client/src/components/Share/ShareView.tsx
index 9f75569c6d..99ab7f35eb 100644
--- a/client/src/components/Share/ShareView.tsx
+++ b/client/src/components/Share/ShareView.tsx
@@ -130,7 +130,7 @@ function SharedView() {
const mainContent = (
<div className="transition-width relative flex h-full w-full flex-1 flex-col items-stretch overflow-hidden pt-0 dark:bg-surface-secondary">
- <div className="flex h-full flex-col text-text-primary" role="presentation">
+ <div className="flex h-full min-h-0 flex-col text-text-primary" role="presentation">
{content}
{footer}
</div>
@@ -150,7 +150,7 @@ function SharedView() {
return (
<ShareContext.Provider value={{ isSharedConvo: true }}>
- <div className="relative flex min-h-screen w-full dark:bg-surface-secondary">
+ <div className="relative flex h-screen w-full overflow-hidden dark:bg-surface-secondary">
<main className="relative flex w-full grow overflow-hidden dark:bg-surface-secondary">
{artifactsContainer}
</main>