mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-27 09:26:23 +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 (
|
return (
|
||||||
<>
|
<>
|
||||||
<Panel
|
<Panel
|
||||||
|
className={`${hidden ? 'hidden' : 'block'}`}
|
||||||
variant="playground"
|
variant="playground"
|
||||||
tourTarget="playground"
|
tourTarget="playground"
|
||||||
title={
|
title={
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(({
|
||||||
}
|
}
|
||||||
}, [propValue, isEditing]);
|
}, [propValue, isEditing]);
|
||||||
|
|
||||||
|
/*
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!autoResize) return;
|
if (!autoResize) return;
|
||||||
|
|
||||||
|
|
@ -68,6 +69,7 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(({
|
||||||
window.addEventListener('resize', adjustHeight);
|
window.addEventListener('resize', adjustHeight);
|
||||||
return () => window.removeEventListener('resize', adjustHeight);
|
return () => window.removeEventListener('resize', adjustHeight);
|
||||||
}, [localValue, autoResize, maxHeight, textareaRef]);
|
}, [localValue, autoResize, maxHeight, textareaRef]);
|
||||||
|
*/
|
||||||
|
|
||||||
const validateAndUpdate = (value: string) => {
|
const validateAndUpdate = (value: string) => {
|
||||||
if (validate) {
|
if (validate) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue