mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-26 08:56:22 +02:00
hide chat instead of unmount (#181)
This commit is contained in:
parent
2da3f3708c
commit
d99419ad61
2 changed files with 3 additions and 4 deletions
|
|
@ -82,13 +82,10 @@ export function App({
|
|||
}
|
||||
}, []);
|
||||
|
||||
if (hidden) {
|
||||
return <></>;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<Panel
|
||||
className={`${hidden ? 'hidden' : 'block'}`}
|
||||
variant="playground"
|
||||
tourTarget="playground"
|
||||
title={
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(({
|
|||
}
|
||||
}, [propValue, isEditing]);
|
||||
|
||||
/*
|
||||
useEffect(() => {
|
||||
if (!autoResize) return;
|
||||
|
||||
|
|
@ -68,6 +69,7 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(({
|
|||
window.addEventListener('resize', adjustHeight);
|
||||
return () => window.removeEventListener('resize', adjustHeight);
|
||||
}, [localValue, autoResize, maxHeight, textareaRef]);
|
||||
*/
|
||||
|
||||
const validateAndUpdate = (value: string) => {
|
||||
if (validate) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue