FEAT: Sidebar update to include followed streamers & categories;

FEAT: Sidebar now alters page width on open/close (DynamicPageContent);
FIX: Properly disallow shortcut keys when typing in an input field;
This commit is contained in:
Chris-1010
2025-02-18 00:47:24 +00:00
parent 902c745065
commit fde7c70b54
14 changed files with 311 additions and 172 deletions

View File

@@ -16,13 +16,11 @@ interface ChatMessage {
interface ChatPanelProps {
streamId: number;
onViewerCountChange?: (count: number) => void;
onInputFocus: (focused: boolean) => void;
}
const ChatPanel: React.FC<ChatPanelProps> = ({
streamId,
onViewerCountChange,
onInputFocus,
}) => {
const { isLoggedIn, username, user_id} = useAuth();
const { showAuthModal, setShowAuthModal } = useAuthModal();
@@ -205,8 +203,6 @@ const ChatPanel: React.FC<ChatPanelProps> = ({
extraClasses="flex-grow w-full focus:w-full"
maxLength={200}
onClick={() => !isLoggedIn && setShowAuthModal(true)}
onFocus={() => onInputFocus(true)}
onBlur={() => onInputFocus(false)}
/>
<button

View File

@@ -58,7 +58,7 @@ const VideoPlayer: React.FC = () => {
}, [streamerName]);
return (
<div className="min-w-[65vw] w-full h-full flex justify-center items-center bg-gray-900 rounded-lg">
<div className="w-full h-full flex justify-center items-center bg-gray-900 rounded-lg">
<div ref={videoRef} className="w-full max-w-[160vh] self-center" />
</div>
);