Big chat improvements, adjusted mobile ui.
This commit is contained in:
parent
80114d1d66
commit
7a922a5978
15 changed files with 201 additions and 101 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
"withGlobalTauri": true,
|
||||
"windows": [
|
||||
{
|
||||
"title": "tensamin",
|
||||
"title": "Tensamin",
|
||||
"width": 800,
|
||||
"height": 600
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue