diff --git a/components/shared/Chat/v2/Chat.tsx b/components/shared/Chat/v2/Chat.tsx index bd4c8f3f..5f05911f 100644 --- a/components/shared/Chat/v2/Chat.tsx +++ b/components/shared/Chat/v2/Chat.tsx @@ -12,6 +12,7 @@ export type ChatProps = { lobbyMessages: MessageType[]; friendList: FriendType[]; roomMessages: MessageType[]; + maxHeight?: string; }; export default function Chat({ @@ -19,6 +20,7 @@ export default function Chat({ lobbyMessages, friendList, roomMessages, + maxHeight = "calc(100vh - 10rem)", }: Readonly) { const [messages, setMessages] = useState(lobbyMessages); const [target, setTarget] = useState<[ChatTab["id"], string | null]>([ @@ -70,7 +72,7 @@ export default function Chat({ return (
- {notifications && ( + {Number(notifications) > 0 && ( {notifications} diff --git a/components/shared/SearchBar/SearchBar.tsx b/components/shared/SearchBar/SearchBar.tsx index 57747926..3ad93817 100644 --- a/components/shared/SearchBar/SearchBar.tsx +++ b/components/shared/SearchBar/SearchBar.tsx @@ -38,7 +38,7 @@ export const SearchBar = ({ {leftSlot} setValue(e.target.value)} diff --git a/components/shared/Sidebar.tsx b/components/shared/Sidebar.tsx index 477852e5..2a54d719 100644 --- a/components/shared/Sidebar.tsx +++ b/components/shared/Sidebar.tsx @@ -30,7 +30,7 @@ export default function Sidebar() { ]; return ( -