Conversation
Review Summary by QodoHide footer and adjust layout for embedding page
WalkthroughsDescription• Hide footer on embedding page using CSS display none • Adjust embedding container height calculation to account for hidden footer • Remove Breadcrumb component from embedded agent page • Simplify page layout for embedding context Diagramflowchart LR
A["Embedding Page Component"] -->|"Add CSS to hide footer"| B["Footer Hidden"]
A -->|"Remove Breadcrumb"| C["Simplified Layout"]
D["SCSS Calculations"] -->|"Reduce footer height factor"| E["Adjusted Container Height"]
File Changes1. src/routes/page/agent/[embed]/[embedType]/+page.svelte
|
Code Review by Qodo
1. Embed height ignores footer
|
| .embedding-container { | ||
| padding: 0px; | ||
| height: calc(100vh - #{$header-height} - #{$grid-gutter-width} - #{$footer-height}); | ||
| height: calc(100vh - #{$header-height} - #{$grid-gutter-width} - 0.2 * #{$footer-height}); |
There was a problem hiding this comment.
1. Embed height ignores footer 🐞 Bug ≡ Correctness
.embedding-container now subtracts only 0.2 * $footer-height, but /page routes still render the absolute-positioned 60px footer, so embedding pages that keep the footer (e.g. Knowledge Base embed) will have embedded content covered by the footer. This can hide/cut off the bottom of the embedded iframe/component and block interaction with its UI.
Agent Prompt
## Issue description
The global `.embedding-container` height change makes the embedded content area extend into the footer region on embedding routes that still render the footer.
## Issue Context
`EmbeddingPage` is reused by multiple embedding routes, but only the *agent* embed route hides the footer via a page-local `<svelte:head>` override. Other embedding routes (e.g. Knowledge Base embed) still render the footer.
## Fix Focus Areas
- src/lib/scss/custom/pages/_agent.scss[435-442]
- src/routes/VerticalLayout/Index.svelte[48-67]
- src/routes/page/knowledge-base/[embed]/[embedType]/+page.svelte[1-20]
## Suggested fix approach
1) Pick one consistent behavior for *all* embedding routes:
- **Option A (recommended):** Conditionally *do not render* `<Footer />` when `isEmbeddingPage` (based on `$page.params.embed` and `$page.params.embedType`), then set `.embedding-container` height to not subtract footer height.
- **Option B:** Keep rendering the footer on non-agent embed pages; revert `.embedding-container` height to subtract the full `$footer-height` and only override the height on routes where the footer is actually removed.
2) Ensure the final embed container height does not result in any footer overlap on routes where the footer remains visible.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
No description provided.