Skip to content

Commit

Permalink
Merge branch 'main' into session-config
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa committed Apr 27, 2023
2 parents fb32770 + a604644 commit ace3f7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export function Chat() {
const [isLoading, setIsLoading] = useState(false);
const { submitKey, shouldSubmit } = useSubmitHandler();
const { scrollRef, setAutoScroll, scrollToBottom } = useScrollToBottom();
const [hitBottom, setHitBottom] = useState(false);
const [hitBottom, setHitBottom] = useState(true);
const isMobileScreen = useMobileScreen();
const navigate = useNavigate();

Expand Down
2 changes: 1 addition & 1 deletion app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export function autoGrowTextArea(dom: HTMLTextAreaElement) {

const width = getDomContentWidth(dom);
measureDom.style.width = width + "px";
measureDom.innerHTML = dom.value.trim().length > 0 ? dom.value : "1";
measureDom.innerText = dom.value.trim().length > 0 ? dom.value : "1";

const lineWrapCount = Math.max(0, dom.value.split("\n").length - 1);
const height = parseFloat(window.getComputedStyle(measureDom).height);
Expand Down

0 comments on commit ace3f7f

Please sign in to comment.