Frontmatter
| id | 8480 |
| title | Constrain Markdown image wrapper width in Portal app |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Jan 9, 2026, 7:26 PM |
| updatedAt | Jan 9, 2026, 8:27 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8480 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 9, 2026, 8:27 PM |
Constrain Markdown image wrapper width in Portal app
tobiu assigned to @tobiu on Jan 9, 2026, 8:27 PM

tobiu
Jan 9, 2026, 8:27 PM
Input from Gemini 3 Pro:
✦ Resolved the layout overflow issue by implementing a comprehensive flexbox constraint chain.
Key Changes:
- Flex Shrink: Enforced
flex-shrink: 1 !importantandmin-width: 0onMainContainer,PageContainer, andTabContainerlevels to prevent flex items from forcing parent expansion.- Image Wrapper: Set
max-width: 100%on.neo-markdown-image-wrapperto respect the parent's constrained width.- Article Constraints: Applied
max-width: min(1200px, calc(100% - 250px))to the Markdown component on large screens to strictly reserve space for the Sections Navigation.- Cleanup: Removed redundant padding from the Portal component SCSS.
This ensures the layout correctly adapts to the viewport width, preventing content from overlapping the side navigation.
tobiu closed this issue on Jan 9, 2026, 8:27 PM
The
.neo-markdown-image-wrapperwithwidth: 100%overrides thepadding-rightdefined inresources/scss/src/apps/portal/shared/content/Component.scss, causing the image container to still overlap the sections navigation in some contexts.We need to adjust the styles in
resources/scss/src/apps/portal/shared/content/Component.scssto constrain themax-widthof the image wrapper effectively, ensuring it respects the padding intended for the navigation layout.Goal: Ensure the image wrapper does not exceed the available content width (minus the right padding/margin reserved for the nav).