feat: clips

This commit is contained in:
2023-12-08 15:45:44 +00:00
parent 74c087525c
commit 6d3724fd87
12 changed files with 110 additions and 11 deletions

View File

@ -57,12 +57,15 @@
.stream-page .profile-info {
width: calc(100% - 32px);
}
.stream-page .video-content video {
max-height: 30vh;
}
}
.profile-info {
display: flex;
justify-content: space-between;
padding: 0 16px;
gap: var(--gap-m);
}

View File

@ -27,8 +27,9 @@ import { ContentWarningOverlay, isContentWarningAccepted } from "@/element/conte
import { useCurrentStreamFeed } from "@/hooks/current-stream-feed";
import { useStreamLink } from "@/hooks/stream-link";
import { FollowButton } from "@/element/follow-button";
import { ClipButton } from "@/element/clip-button";
function ProfileInfo({ ev, goal }: { ev?: NostrEvent; goal?: TaggedNostrEvent }) {
function ProfileInfo({ ev, goal }: { ev?: TaggedNostrEvent; goal?: TaggedNostrEvent }) {
const system = useContext(SnortContext);
const login = useLogin();
const navigate = useNavigate();
@ -85,6 +86,7 @@ function ProfileInfo({ ev, goal }: { ev?: NostrEvent; goal?: TaggedNostrEvent })
</div>
{ev && (
<>
<ClipButton ev={ev} />
<ShareMenu ev={ev} />
{zapTarget && (
<SendZapsDialog