[Update] Add Window Title bar.
[bugfix] Note: I think this is tauri's bug. When I try to resize the window and hovered dragable area, I could see resize cursor but it work as a dragging the window behavior that should't be. Updated npm packages but still not work so I managed it as adding margin-top by referring Discord title bar.
This commit is contained in:
@@ -2,6 +2,7 @@ import { getCurrent } from "@tauri-apps/api/window";
|
||||
import { useEffect, useRef } from "react";
|
||||
import { useStartPython } from "@logics/useStartPython";
|
||||
// import { useConfig } from "@logics/useConfig";
|
||||
import { WindowTitleBar } from "./window_title_bar/WindowTitleBar";
|
||||
import { MainPage } from "./main_page/MainPage";
|
||||
import { ConfigPage } from "./config_page/ConfigPage";
|
||||
import styles from "./App.module.scss";
|
||||
@@ -12,10 +13,14 @@ export const App = () => {
|
||||
<StartPythonFacadeComponent />
|
||||
<UiLanguageController />
|
||||
<ConfigPageCloseTrigger />
|
||||
<ConfigPage />
|
||||
<MainPage />
|
||||
<UiSizeController />
|
||||
<FontFamilyController />
|
||||
|
||||
<WindowTitleBar />
|
||||
<div className={styles.pages_wrapper}>
|
||||
<ConfigPage />
|
||||
<MainPage />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -84,7 +89,6 @@ const StartPythonFacadeComponent = () => {
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
main_page.setDecorations(true);
|
||||
if (!hasRunRef.current) {
|
||||
asyncStartPython().then((result) => {
|
||||
getUiLanguage();
|
||||
|
||||
Reference in New Issue
Block a user