diff --git a/src/components/layout/desktop/index.tsx b/src/components/layout/desktop/index.tsx
index 01887f00a..312aac551 100644
--- a/src/components/layout/desktop/index.tsx
+++ b/src/components/layout/desktop/index.tsx
@@ -9,11 +9,11 @@ export default function DesktopLayout() {
return (
<>
- }>
-
+
+ }>
-
-
+
+
>
);
}
diff --git a/src/components/layout/presets/contained-parent-view.tsx b/src/components/layout/presets/contained-parent-view.tsx
index c01fff988..1b7d6f433 100644
--- a/src/components/layout/presets/contained-parent-view.tsx
+++ b/src/components/layout/presets/contained-parent-view.tsx
@@ -18,7 +18,7 @@ export default function ContainedParentView({
if (showMenu)
return (
-
+
{title && }
diff --git a/src/components/legacy-layout/ghost/sidebar.tsx b/src/components/legacy-layout/ghost/sidebar.tsx
deleted file mode 100644
index 29bd0da34..000000000
--- a/src/components/legacy-layout/ghost/sidebar.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import { Box, CloseButton, Flex, FlexProps } from "@chakra-ui/react";
-
-import useCurrentAccount from "../../../hooks/use-current-account";
-import GhostTimeline from "./timeline";
-import UserAvatar from "../../user/user-avatar";
-import UserLink from "../../user/user-link";
-import UserDnsIdentity from "../../user/user-dns-identity";
-import accountService from "../../../services/account";
-
-export default function GhostSideBar({ ...props }: Omit) {
- const account = useCurrentAccount()!;
-
- return (
-
-
-
-
-
-
-
- accountService.stopGhost()} />
-
-
-
- );
-}
diff --git a/src/components/magic-textarea.tsx b/src/components/magic-textarea.tsx
index a3525cbe1..1a569201d 100644
--- a/src/components/magic-textarea.tsx
+++ b/src/components/magic-textarea.tsx
@@ -55,9 +55,9 @@ const Item = ({ entity }: ItemComponentProps) => {
function output(token: Token) {
if (isEmojiToken(token)) {
- return token.char;
+ return token.char || "";
} else if (isPersonToken(token)) {
- return "nostr:" + nip19.npubEncode(token.pubkey);
+ return "nostr:" + nip19.npubEncode(token.pubkey) || "";
} else return "";
}
diff --git a/src/helpers/nostr/stream.ts b/src/helpers/nostr/stream.ts
index 2ca0d0570..2e1b525f3 100644
--- a/src/helpers/nostr/stream.ts
+++ b/src/helpers/nostr/stream.ts
@@ -1,6 +1,7 @@
import { getEventPointerFromETag, getTagValue, safeRelayUrl } from "applesauce-core/helpers";
import { NostrEvent, isPTag } from "../../types/nostr-event";
+import dayjs from "dayjs";
export type StreamStatus = "live" | "ended" | "planned";
@@ -15,7 +16,8 @@ export function getStreamImage(stream: NostrEvent) {
}
export function getStreamStatus(stream: NostrEvent): StreamStatus {
- return (getTagValue(stream, "status") as StreamStatus) || "ended";
+ if (dayjs.unix(stream.created_at).isBefore(dayjs().subtract(2, "weeks"))) return "ended";
+ else return (getTagValue(stream, "status") as StreamStatus) || "ended";
}
export function getStreamHost(stream: NostrEvent) {
diff --git a/src/styles.css b/src/styles.css
index c7e5ca6a2..aafae6d2a 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -1,11 +1,4 @@
html {
- overflow: hidden;
- margin: 0;
- height: 100%;
- width: 100%;
-}
-
-body {
margin: 0;
height: 100%;
width: 100%;
@@ -14,6 +7,11 @@ body {
overscroll-behavior: none;
}
+body {
+ margin: 0;
+ width: 100%;
+}
+
body {
--safe-top: env(safe-area-inset-top, 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
@@ -27,10 +25,8 @@ body {
--safe-left: env(safe-area-inset-left); */
}
-body,
#root {
- width: 100%;
display: flex;
flex-direction: column;
- min-height: 100%;
+ width: 100%;
}
diff --git a/src/views/discovery/index.tsx b/src/views/discovery/index.tsx
index 572235f46..0759f26de 100644
--- a/src/views/discovery/index.tsx
+++ b/src/views/discovery/index.tsx
@@ -44,7 +44,7 @@ function DVMFeeds() {
Favorite Feeds
-
+
{favoriteFeeds.map((feed) => (
@@ -64,7 +64,7 @@ function DVMFeeds() {
-
+
{DVMs.filter((feed) => !isEventInList(favorites, feed)).map((feed) => (
@@ -79,8 +79,8 @@ function DVMFeeds() {
function DiscoveryHomePage() {
return (
-
-
+
+
@@ -91,7 +91,7 @@ function DiscoveryHomePage() {
What are other users seeing that you are not?
-
+