Big chat improvements, adjusted mobile ui.

This commit is contained in:
Alois 2026-04-04 22:49:34 +02:00
commit 7a922a5978
15 changed files with 201 additions and 101 deletions

View file

@ -15,7 +15,9 @@
},
"dependencies": {
"@tauri-apps/api": "^2",
"@tauri-apps/plugin-opener": "^2"
"@tauri-apps/plugin-opener": "^2",
"react": "^19.2.0",
"react-dom": "^19.2.0"
},
"devDependencies": {
"@tauri-apps/cli": "^2"

View file

@ -13,7 +13,7 @@
"withGlobalTauri": true,
"windows": [
{
"title": "tensamin",
"title": "Tensamin",
"width": 800,
"height": 600
}

View file

@ -1,25 +1,16 @@
import { isTauri } from "@tauri-apps/api/core";
import { createContext, useEffect } from "react";
import { createContext } from "react";
type contextType = {
isTauri: boolean;
nothing: undefined;
};
export const context = createContext<contextType | undefined>(undefined);
export default function Provider({ children }: { children: React.ReactNode }) {
const isTauriVar = isTauri();
useEffect(() => {
if (!isTauriVar) return;
document.body.classList.add("");
}, [isTauriVar]);
return (
<context.Provider
value={{
isTauri: isTauriVar,
nothing: undefined,
}}
>
{children}