Skip to content

Commit b5900b3

Browse files
committed
Cleanup cherrypicked changes
1 parent 37a1654 commit b5900b3

3 files changed

Lines changed: 4 additions & 13 deletions

File tree

‎src/components/AnnotatedCode/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ for (const attr of codeTag.attributes) {
9393
{rows.map((row, i) => {
9494
const lineNodes = lines.slice(row.startLine, row.endLine);
9595
return (
96-
<tr class="[&>*]:align-top [&>*]:m-0 [&>*:not(:first-child)]:py-2 [&>*:not(:first-child)]:pl-6 [&>*:not(:first-child)]:w-1/2">
96+
<tr class="[&>*]:align-top [&>*]:m-0 [&>*:not(:first-child)]:py-2 [&>*:not(:first-child)]:pl-6 [&>*:not(:first-child)]:max-w-xl">
9797
<td class="align-top p-0" style="height:100%; margin:0">
9898
<pre {...preAttrs} style={`${getPreStyle(i)};overflow:visible;white-space:pre-wrap;word-wrap:break-word;height:100%;`}><code {...codeAttrs} set:html={lineNodes.map((n) => n.outerHTML).join('\n')} /></pre>
9999
</td>

‎src/layouts/HomepageLayout.astro‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const sketches = config.data.sketchIds.map(
2424
curationSketches.find((sk) => id === sk.visualID) ??
2525
curationSketches[i]
2626
);
27+
---
2728

2829
<Head
2930
title={"p5.js"}

‎src/layouts/TextDetailLayout.astro‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22
import Head from "@components/Head/index.astro";
33
import BaseLayout from "./BaseLayout.astro";
44
import type { CollectionEntry } from "astro:content";
5-
<<<<<<< HEAD
65
import { render } from "astro:content";
7-
import { setJumpToState } from "../globals/state";
8-
=======
9-
>>>>>>> 64ce2c96f (Update "text detail" pages to pass "jumpToState" as a prop to <BaseLayout>, rather than use global "jumpToState" variable)
6+
prop to <BaseLayout>, rather than use global "jumpToState" variable)
107
import { getCurrentLocale } from "../i18n/utils";
118
129
interface Props {
@@ -22,14 +19,7 @@ const pageTopic = Astro.url.pathname.includes("donate")
2219
2320
const currentLocale = getCurrentLocale(Astro.url.pathname);
2421
25-
const { showBanner, englishUrl } = checkTranslationBanner(
26-
'text-detail',
27-
page.id,
28-
currentLocale,
29-
Astro.url.pathname,
30-
Astro.url.origin
31-
);
32-
22+
---
3323
<Head title={page.data.title} locale={currentLocale} />
3424

3525
<BaseLayout

0 commit comments

Comments
 (0)