diff --git a/src/providers/drawer-sub-view-provider.tsx b/src/providers/drawer-sub-view-provider.tsx
index bec4382ec..72012322e 100644
--- a/src/providers/drawer-sub-view-provider.tsx
+++ b/src/providers/drawer-sub-view-provider.tsx
@@ -123,6 +123,7 @@ export default function DrawerSubViewProvider({
log("Updating parent state from Router");
direction.current = "up";
parentRouter.navigate(".", {
+ preventScrollReset: true,
state: { ...parentRouter.state.location.state, subRouterPath: e.location.pathname },
});
}
@@ -144,7 +145,10 @@ export default function DrawerSubViewProvider({
const openDrawer = useCallback(
(to: To) => {
marker.current = 0;
- parentRouter.navigate(".", { state: { ...parentRouter.state.location.state, subRouterPath: to } });
+ parentRouter.navigate(".", {
+ preventScrollReset: true,
+ state: { ...parentRouter.state.location.state, subRouterPath: to },
+ });
},
[parentRouter],
);
@@ -156,7 +160,10 @@ export default function DrawerSubViewProvider({
parentRouter.navigate(-i);
} else {
log(`Failed to navigate back, clearing state`);
- parentRouter.navigate(".", { state: { ...parentRouter.state.location.state, subRouterPath: undefined } });
+ parentRouter.navigate(".", {
+ preventScrollReset: true,
+ state: { ...parentRouter.state.location.state, subRouterPath: undefined },
+ });
}
// reset marker
diff --git a/src/views/community/components/community-post.tsx b/src/views/community/components/community-post.tsx
index c8c456132..8492a5f7c 100644
--- a/src/views/community/components/community-post.tsx
+++ b/src/views/community/components/community-post.tsx
@@ -6,6 +6,7 @@ import {
CardFooter,
CardHeader,
CardProps,
+ Flex,
Heading,
LinkBox,
Text,
@@ -70,9 +71,7 @@ function PostSubject({ event }: { event: NostrEvent }) {
function Approvals({ approvals }: { approvals: NostrEvent[] }) {
return (
<>
-
- Approved by
-
+ Approved by
{approvals.map((approval) => (
@@ -97,19 +96,21 @@ export function CommunityTextPost({
-
+
Posted {dayjs.unix(event.created_at).fromNow()} by
- {approvals.length > 0 && }
-
+
+ {approvals.length > 0 && }
+
+
);
@@ -145,19 +146,21 @@ export function CommunityRepostPost({
>
)}
-
+
Shared {dayjs.unix(event.created_at).fromNow()} by
- {approvals.length > 0 && }
-
+
+ {approvals.length > 0 && }
+
+
);