Skip to content

Commit

Permalink
break words if needed (deepset-ai#132)
Browse files Browse the repository at this point in the history
* break words if needed

* benchmarks for mobile
  • Loading branch information
PiffPaffM committed Aug 30, 2021
1 parent f6e48dc commit bb75a76
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Layout: FC<LayoutProps> = ({
<Header docsType={"haystack"} />
<DesktopNav menu={menu} />
<MobileNav menu={menu} />
<main className="grid grid-cols-12 sm:ml-60 px-3 sm:px-8 py-6 lg:py-8 min-h-screen dark:text-white">
<main className="grid grid-cols-12 sm:ml-60 px-3 sm:px-8 py-6 lg:py-8 min-h-screen dark:text-white break-words">
<div className={styles["markdown"]}>{children}</div>
<div>
<Toc toc={toc} editOnGitHubLink={editOnGitHubLink} stars={stars} />
Expand Down
40 changes: 20 additions & 20 deletions pages/benchmarks/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ export default function LatestBenchmark({
Haystack Benchmarks
</h1>
</div>
<div className="flex mb-4 ml-16">
<div className="flex mb-4 sm:ml-16">
<h2 className="text-3xl font-semibold max-w-4xl">
{reader_performance.title}
</h2>
</div>
<div
className="mb-3 mr-16 ml-16 text-justify"
className="mb-3 sm:mr-16 sm:ml-16 text-justify"
dangerouslySetInnerHTML={createMarkup(reader_performance.desc)}
></div>
<div className="mb-16 ml-16">
<div className="mb-16 sm:ml-16">
<Chart
width={1200}
height={600}
width="100%"
height="100%"
chartType={reader_performance.chartType}
loader={<div>Loading Chart</div>}
data={reader_performance.dataReader}
Expand All @@ -74,19 +74,19 @@ export default function LatestBenchmark({
}}
/>
</div>
<div className="flex mb-4 ml-16">
<div className="flex mb-4 sm:ml-16">
<h2 className="text-3xl font-semibold max-w-4xl">
{retriever_performance.title}
</h2>
</div>
<div
className="mb-3 mr-16 ml-16 text-justify"
className="mb-3 sm:mr-16 sm:ml-16 text-justify"
dangerouslySetInnerHTML={createMarkup(retriever_performance.desc)}
></div>
<div className="mb-16 ml-16">
<div className="mb-16 sm:ml-16">
<Chart
width={1200}
height={600}
width="100%"
height="100%"
chartType={retriever_performance.chartType}
loader={<div>Loading Chart</div>}
data={retriever_performance.dataRetriever}
Expand All @@ -112,17 +112,17 @@ export default function LatestBenchmark({
}}
/>
</div>
<div className="flex mb-4 ml-16">
<div className="flex sm:mb-4 sm:ml-16">
<h2 className="text-3xl font-semibold max-w-4xl">{map.title}</h2>
</div>
<div
className="mb-3 mr-16 ml-16 text-justify"
className="mb-3 sm:mr-16 sm:ml-16 text-justify"
dangerouslySetInnerHTML={createMarkup(map.desc)}
></div>
<div className="mb-16 ml-16">
<div className="mb-16 sm:ml-16">
<Chart
width={1200}
height={600}
width="100%"
height="100%"
chartType={map.chartType}
loader={<div>Loading Chart</div>}
data={map.dataRetriever}
Expand All @@ -140,19 +140,19 @@ export default function LatestBenchmark({
}}
/>
</div>
<div className="flex mb-4 ml-16">
<div className="flex mb-4 sm:ml-16">
<h2 className="text-3xl font-semibold max-w-4xl">
{retriever_speed.title}
</h2>
</div>
<div
className="mb-3 mr-16 ml-16 text-justify"
className="mb-3 sm:mr-16 sm:ml-16 text-justify"
dangerouslySetInnerHTML={createMarkup(retriever_speed.desc)}
></div>
<div className="mb-16 ml-16">
<div className="mb-16 sm:ml-16">
<Chart
width={1200}
height={600}
width="100%"
height="100%"
chartType={retriever_speed.chartType}
loader={<div>Loading Chart</div>}
data={retriever_speed.dataRetrieverSpeed}
Expand Down

0 comments on commit bb75a76

Please sign in to comment.