Commit Graph
12 Commits
Author SHA1 Message Date
20b1ac72a4 fix: prevent chat container from overflowing viewport in embedded view (#4713)
* fix: prevent chat container from overflowing viewport in embedded view

Add max-height: 100vh to .chatContainer to prevent the chat from getting
cut off vertically when used in the /embed/chat/readwrite view.

Fixes #4492

* fix: use flexbox layout for readwrite embed to prevent overflow in short viewports

Changes the readwrite embed to use a flexbox container with height: 100dvh
instead of a fixed 92vh height on the chat. This ensures the header takes
its natural height and the chat fills the remaining space without overflow.

- Add .embed-container with flex column layout and 100dvh height
- Set #chat-container to flex: 1 with min-height: 0 to fill remaining space
- Change ChatContainer height prop from "92vh" to "100%"

This addresses maintainer feedback that the chat was still getting cut off
in shorter viewports.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor: remove max-height from global ChatContainer styles

Address Copilot review feedback: the max-height: 100vh on the global
.chatContainer class is no longer needed since the embed-container
flexbox layout properly constrains the height for the embedded chat.
Removing this avoids potential unintended side effects on other
ChatContainer instances (desktop sidebar, chat modal).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-23 15:40:27 -08:00
93b482871f Require authentication to participate in chat (#4762)
* feat(chat): require authentication to participate in chat

* fix: it's pretty much impossible to bypass the auth requirement, addressing review feedback anyway

* feat(chat): render chat text input as disabled if chat auth is required

* Commit updated API documentation

---------

Co-authored-by: Owncast <owncast@owncast.online>
2026-01-28 11:49:07 -08:00
Gabe Kangas 8dbc8a07cf feat(embeds): wrap chat embeds in error components 2023-05-06 14:11:23 -07:00
Gabe Kangas d139cf08f5 fix(embeds): import custom theme into chat embeds 2023-05-05 12:21:20 -07:00
Gabe Kangas f2fbce113e fix(embed): set background color and height of chat embed. closes #2961 2023-04-27 10:26:12 -07:00
Gabe Kangas 4a0476b237 Add support for disabled chat state in the chat input field. Closes #2761 2023-03-01 16:22:10 -08:00
Gabe Kangas 5b8bacb83f Add chat embed automated browser tests. Closes #2743 2023-02-26 19:06:22 -08:00
Gabe Kangas 1f99b0bf22 Fix chat embeds not loading. Fixes #2744 2023-02-26 18:48:41 -08:00
Gabe Kangas 8b8f221eb4 Show streamTitle in header if set. Closes #2720 2023-02-22 18:52:25 -08:00
Gabe Kangas cdaae66e94 Add skip links for content, player and footer. For #1826 2023-01-21 23:22:28 -08:00
Gabe Kangas 80a012a3c7 Add current user object that holds user session values instead of standalone getters. Closes #2050 2022-10-10 16:40:13 -07:00
Gabe Kangas 88919efde9 Add read-write chat embed. Closes #1906 2022-09-10 21:19:35 -07:00