Skip to content

Commit

Permalink
fix: avoid content overflow (#225)
Browse files Browse the repository at this point in the history
this sets min-width to zero for content columns to avoid overflow.
  • Loading branch information
stefanprobst authored Mar 19, 2024
1 parent e1a73d7 commit a704e80
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 50 deletions.
2 changes: 1 addition & 1 deletion app/[locale]/curricula/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async function CurriculumContent(props: CurriculumContentProps) {

return (
<Fragment>
<div className="prose prose-sm w-full">
<div className="prose prose-sm w-full min-w-0">
<PageTitle>{curriculum.title}</PageTitle>

<div className="border-b">
Expand Down
2 changes: 1 addition & 1 deletion app/[locale]/documentation/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async function DocumentationPageContent(props: DocumentationPageContentProps) {
const { Content } = await getDocumentationContent(id);

return (
<div className="prose prose-sm w-full">
<div className="prose prose-sm w-full min-w-0">
<PageTitle>{document.title}</PageTitle>

<Content />
Expand Down
2 changes: 1 addition & 1 deletion app/[locale]/imprint/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function ImprintPageContent(props: ImprintPageContentProps) {
const html = await getImprintHtml(locale);

return (
<div className="prose prose-sm w-full">
<div className="prose prose-sm w-full min-w-0">
<PageTitle>{title}</PageTitle>

<div dangerouslySetInnerHTML={{ __html: html }} />
Expand Down
2 changes: 1 addition & 1 deletion app/[locale]/resources/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async function ResourceContent(props: ResourceContentProps) {
);

return (
<div className="prose prose-sm w-full">
<div className="prose prose-sm w-full min-w-0">
<PageTitle>{resource.title}</PageTitle>

<div className="border-b">
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"@shikijs/rehype": "^1.2.0",
"@types/mdast": "^4.0.3",
"@types/mdx": "^2.0.11",
"@types/node": "^20.11.29",
"@types/node": "^20.11.30",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"axe-core": "^4.8.4",
Expand All @@ -102,7 +102,7 @@
"is-ci": "^3.0.1",
"lint-staged": "^15.2.2",
"npm-run-all2": "^6.1.2",
"postcss": "^8.4.36",
"postcss": "^8.4.37",
"prettier": "^3.2.5",
"schema-dts": "^1.1.2",
"simple-git-hooks": "^2.11.0",
Expand Down
94 changes: 50 additions & 44 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a704e80

Please sign in to comment.