Skip to content

Commit d329f10

Browse files
committed
chat: always use compact mode on mobile
1 parent 59dbc70 commit d329f10

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/packages/frontend/chat/chatroom.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
} from "antd";
2323
import { debounce } from "lodash";
2424
import { FormattedMessage } from "react-intl";
25-
25+
import { IS_MOBILE } from "@cocalc/frontend/feature";
2626
import { Col, Row, Well } from "@cocalc/frontend/antd-bootstrap";
2727
import {
2828
React,
@@ -161,6 +161,9 @@ export function ChatPanel({
161161
variant = "default",
162162
disableFilters: disableFiltersProp,
163163
}: ChatPanelProps) {
164+
if (IS_MOBILE) {
165+
variant = "compact";
166+
}
164167
const account_id = useTypedRedux("account", "account_id");
165168
const [input, setInput] = useState("");
166169
const search = getDescValue(desc, "data-search") ?? "";

0 commit comments

Comments
 (0)