Skip to content

Commit

Permalink
adding min width, removing fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwaltosssw committed Mar 25, 2024
1 parent a1da263 commit aa62876
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions pages/company/[filename].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,20 @@ export default function CompanyPage(
{(data.company.sidebar ||
data.company.sidebarTestimonial ||
data.company.showRdPanel) && (
<>
<div className="max-w-sm shrink pl-16">
{data.company.sidebar && (
<TinaMarkdown
content={data.company.sidebar}
components={componentRenderer}
/>
)}
{data.company.sidebarTestimonial && (
<TestimonialPanel
testimonialName={data.company.sidebarTestimonial}
/>
)}
{data.company.showRdPanel && <RDPanel />}
</div>
</>
<div className="min-w-fit max-w-sm shrink pl-16">
{data.company.sidebar && (
<TinaMarkdown
content={data.company.sidebar}
components={componentRenderer}
/>
)}
{data.company.sidebarTestimonial && (
<TestimonialPanel
testimonialName={data.company.sidebarTestimonial}
/>
)}
{data.company.showRdPanel && <RDPanel />}
</div>
)}
</section>
)}
Expand Down

0 comments on commit aa62876

Please sign in to comment.