hide footer in conversation page

This commit is contained in:
m5r 2022-05-20 01:05:06 +02:00
parent 5bf885c060
commit 8607e70007
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ function NewMessageArea() {
<Form
ref={formRef}
method="post"
className="absolute bottom-0 w-screen backdrop-filter backdrop-blur-xl bg-white bg-opacity-75 border-t flex flex-row h-14 mb-16 p-2 pr-0"
className="absolute bottom-0 w-screen backdrop-filter backdrop-blur-xl bg-white bg-opacity-75 border-t flex flex-row p-2 pr-0"
replace
>
<textarea

View File

@ -34,10 +34,8 @@ export const loader: LoaderFunction = async ({ request }) => {
};
export default function __App() {
const hideFooter = false;
const matches = useMatches();
// matches[0].handle.hideFooter
// console.log("matches", matches);
const hideFooter = matches.some(match => match.handle?.hideFooter === true);
return (
<div className="h-full w-full overflow-hidden fixed bg-gray-100">

View File

@ -91,3 +91,5 @@ export default function ConversationPage() {
</section>
);
}
export const handle = { hideFooter: true };