Skip to content

Commit d3dbf04

Browse files
committed
Fix docs mobile rendering
1 parent e42483b commit d3dbf04

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/src/frontend.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function FootNote(props: { r: number, children?: React.ReactNode }) {
4141
function App() {
4242
return (
4343
<div className="flex flex-col text-black dark:text-white bg-white dark:bg-black items-center px-4 py-8">
44-
<div className="size-full flex flex-col items-center md:items-start max-w-6xl">
44+
<div className="size-full flex flex-col max-w-6xl">
4545
<h1 className="text-4xl">Qun</h1>
4646
<hr className="my-2 w-full border-black dark:border-white" />
4747

@@ -194,8 +194,8 @@ function App() {
194194
It's heavily inspired by Bevy, check out the simple code that spins up the example Need For Speed scene.
195195
</p>
196196

197-
<div className="bg-gray-100 dark:bg-gray-800 px-2 rounded-md mt-2">
198-
<pre className="text-sm">
197+
<div className="bg-gray-100 max-w-full w-fit dark:bg-gray-800 px-4 py-2 rounded-md mt-2">
198+
<pre className="text-sm whitespace-pre-wrap max-w-full">
199199
<code lang="cpp" dangerouslySetInnerHTML={{ __html: hljs.highlight(`
200200
int main() {
201201
auto game = std::make_unique<Game>();
@@ -230,7 +230,7 @@ int main() {
230230
<h2 className="text-3xl mt-8">Final Product</h2>
231231
<hr className="my-2 w-1/2 border-black dark:border-white" />
232232

233-
<iframe className="mt-4 md:w-full lg:h-[720px]" src="https://www.youtube.com/embed/fUAYiQOhAow">
233+
<iframe className="mt-4 w-full h-64 md:h-[720px]" src="https://www.youtube.com/embed/fUAYiQOhAow">
234234
</iframe>
235235

236236
<h2 className="text-3xl mt-8">Future Work</h2>
@@ -250,8 +250,8 @@ int main() {
250250
</p>
251251
</div>
252252

253-
<div className="w-full flex flex-row gap-20 justify-evenly">
254-
<div className="w-1/2">
253+
<div className="w-full flex flex-col md:flex-row md:gap-20 md:justify-evenly">
254+
<div className="md:w-1/2">
255255
<h2 className="text-3xl mt-6">Links</h2>
256256
<hr className="my-2 w-full border-black dark:border-white" />
257257

@@ -299,7 +299,7 @@ int main() {
299299
</ul>
300300
</div>
301301

302-
<div className="w-1/2">
302+
<div className="md:w-1/2">
303303
<h2 className="text-3xl mt-8">Build Instructions</h2>
304304
<hr className="my-2 w-full border-black dark:border-white" />
305305

0 commit comments

Comments
 (0)