File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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" }
Original file line number Diff line number Diff line change 22import Head from " @components/Head/index.astro" ;
33import BaseLayout from " ./BaseLayout.astro" ;
44import type { CollectionEntry } from " astro:content" ;
5- <<<<<< < HEAD
65import { 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 )
107import { getCurrentLocale } from " ../i18n/utils" ;
118
129interface Props {
@@ -22,14 +19,7 @@ const pageTopic = Astro.url.pathname.includes("donate")
2219
2320const 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
You can’t perform that action at this time.
0 commit comments