tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
use document uris for post page ids
awarm.space
2 months ago
42a5b97e
efd33996
+5
-3
3 changed files
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
CanvasPage.tsx
Interactions
Quotes.tsx
LinearDocumentPage.tsx
+1
-1
app/lish/[did]/[publication]/[rkey]/CanvasPage.tsx
···
57
57
<PageWrapper
58
58
pageType="canvas"
59
59
fullPageScroll={fullPageScroll}
60
60
-
id={pageId ? `post-page-${pageId}` : "post-page"}
60
60
+
id={`post-page-${pageId ?? document_uri}`}
61
61
drawerOpen={
62
62
!!drawer && (pageId ? drawer.pageId === pageId : !drawer.pageId)
63
63
}
+3
-1
app/lish/[did]/[publication]/[rkey]/Interactions/Quotes.tsx
···
183
183
}) => {
184
184
let isMobile = useIsMobile();
185
185
const data = useContext(PostPageContext);
186
186
+
const document_uri = data?.uri;
186
187
187
188
let record = data?.data as PubLeafletDocument.Record;
188
189
let page: PubLeafletPagesLinearDocument.Main | undefined = (
···
214
215
let scrollMargin = isMobile
215
216
? 16
216
217
: e.currentTarget.getBoundingClientRect().top;
217
217
-
let scrollContainer = window.document.getElementById("post-page");
218
218
+
let scrollContainerId = `post-page-${props.position.pageId ?? document_uri}`;
219
219
+
let scrollContainer = window.document.getElementById(scrollContainerId);
218
220
let el = window.document.getElementById(
219
221
props.position.start.block.join("."),
220
222
);
+1
-1
app/lish/[did]/[publication]/[rkey]/LinearDocumentPage.tsx
···
61
61
<PageWrapper
62
62
pageType="doc"
63
63
fullPageScroll={fullPageScroll}
64
64
-
id={pageId ? `post-page-${pageId}` : "post-page"}
64
64
+
id={`post-page-${pageId ?? document_uri}`}
65
65
drawerOpen={
66
66
!!drawer && (pageId ? drawer.pageId === pageId : !drawer.pageId)
67
67
}