Skip to content

Commit

Permalink
fullscreen freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
cordx56 committed Jan 22, 2025
1 parent dcf312c commit 2c346e0
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "eslint .",
"preview": "vite preview",
"tauri": "tauri",
"fmt": "prettier -w src/**/*"
"fmt": "prettier -w src/**/* src/*"
},
"dependencies": {
"@pixiv/three-vrm": "^3.3.2",
Expand Down
35 changes: 35 additions & 0 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ mouse_position = "0.1.4"
axum = { version = "0.8.2", features = ["tokio", "http1"] }
tokio = { version = "1.29.1", features = ["full"] }
tower-http = { version = "0.6.2", features = ["cors"] }
log = "0.4.25"
simple_logger = "5.0.0"

[features]
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
Expand Down
3 changes: 1 addition & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct ModelList {
}

fn main() {
//simple_logger::init_with_env().unwrap();
simple_logger::init_with_env().unwrap();
tauri::Builder::default()
.setup(|app| {
let app_handle = app.app_handle();
Expand All @@ -50,7 +50,6 @@ fn main() {
)
.title("deskvrm")
.inner_size(300.0, 500.0)
.fullscreen(false)
.resizable(false)
.decorations(false)
.transparent(true)
Expand Down
9 changes: 1 addition & 8 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@
},
"tauri": {
"allowlist": {
"all": true,
"fs": {
"all": true,
"scope": ["$APPLOCALDATA/**/*"]
},
"dialog": {
"message": true
}
"all": true
},
"bundle": {
"active": true,
Expand Down
2 changes: 1 addition & 1 deletion src/ModelView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function App() {
e.preventDefault();
setTimeout(() => {
setClickCount(0);
}, 400);
}, 600);
setClickCount((prev) => prev + 1);
if (clickCount === 2) {
const configWindow = getAll().find((v) => v.label === "config");
Expand Down
3 changes: 2 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
@tailwind components;
@tailwind utilities;

html, body {
html,
body {
@apply w-full h-full;
}
#root {
Expand Down

0 comments on commit 2c346e0

Please sign in to comment.