diff --git a/bun.lock b/bun.lock index d30afa3..fdd4625 100644 --- a/bun.lock +++ b/bun.lock @@ -25,7 +25,7 @@ "@tailwindcss/postcss": "4.1.16", "@tauri-apps/cli": "2.9.2", "@types/crypto-js": "4.2.2", - "@types/node": "24.9.2", + "@types/node": "24.10.0", "@types/react": "19.2.2", "@types/react-dom": "19.2.2", "crypto-js": "4.2.0", @@ -279,7 +279,7 @@ "@types/json5": ["@types/json5@0.0.29", "", {}, "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ=="], - "@types/node": ["@types/node@24.9.2", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-uWN8YqxXxqFMX2RqGOrumsKeti4LlmIMIyV0lgut4jx7KQBcBiW6vkDtIBvHnHIquwNfJhk8v2OtmO8zXWHfPA=="], + "@types/node": ["@types/node@24.10.0", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-qzQZRBqkFsYyaSWXuEHc2WR9c0a0CXwiE5FWUvn7ZM+vdy1uZLfCunD38UzhuB7YN/J11ndbDBcTmOdxJo9Q7A=="], "@types/react": ["@types/react@19.2.2", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-6mDvHUFSjyT2B2yeNx2nUgMxh9LtOWvkhIU3uePn2I2oyNymUAX1NIsdgviM4CH+JSrp2D2hsMvJOkxY+0wNRA=="], @@ -387,7 +387,7 @@ "balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="], - "baseline-browser-mapping": ["baseline-browser-mapping@2.8.21", "", { "bin": { "baseline-browser-mapping": "dist/cli.js" } }, "sha512-JU0h5APyQNsHOlAM7HnQnPToSDQoEBZqzu/YBlqDnEeymPnZDREeXJA3KBMQee+dKteAxZ2AtvQEvVYdZf241Q=="], + "baseline-browser-mapping": ["baseline-browser-mapping@2.8.23", "", { "bin": { "baseline-browser-mapping": "dist/cli.js" } }, "sha512-616V5YX4bepJFzNyOfce5Fa8fDJMfoxzOIzDCZwaGL8MKVpFrXqfNUoIpRn9YMI5pXf/VKgzjB4htFMsFKKdiQ=="], "brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="], @@ -403,7 +403,7 @@ "callsites": ["callsites@3.1.0", "", {}, "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="], - "caniuse-lite": ["caniuse-lite@1.0.30001751", "", {}, "sha512-A0QJhug0Ly64Ii3eIqHu5X51ebln3k4yTUkY1j8drqpWHVreg/VLijN48cZ1bYPiqOQuqpkIKnzr/Ul8V+p6Cw=="], + "caniuse-lite": ["caniuse-lite@1.0.30001753", "", {}, "sha512-Bj5H35MD/ebaOV4iDLqPEtiliTN29qkGtEHCwawWn4cYm+bPJM2NsaP30vtZcnERClMzp52J4+aw2UNbK4o+zw=="], "chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], diff --git a/package.json b/package.json index fa0d44b..9e2a223 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lncvrt-games-launcher", "private": true, - "version": "1.1.0", + "version": "1.1.1", "type": "module", "scripts": { "dev": "next dev", @@ -34,7 +34,7 @@ "@types/react": "19.2.2", "@types/react-dom": "19.2.2", "crypto-js": "4.2.0", - "@types/node": "24.9.2", + "@types/node": "24.10.0", "tailwindcss": "4.1.16", "typescript": "5.9.3", "eslint": "9.39.0", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index bc8d994..e2e4e1b 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lncvrt-games-launcher" -version = "1.1.0" +version = "1.1.1" authors = ["Lncvrt"] edition = "2024" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index ca65c65..f95c264 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Lncvrt Games Launcher", - "version": "1.1.0", + "version": "1.1.1", "identifier": "xyz.lncvrt.games-launcher", "build": { "beforeDevCommand": "next dev", diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json index ca65c65..f95c264 100644 --- a/src-tauri/tauri.linux.conf.json +++ b/src-tauri/tauri.linux.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Lncvrt Games Launcher", - "version": "1.1.0", + "version": "1.1.1", "identifier": "xyz.lncvrt.games-launcher", "build": { "beforeDevCommand": "next dev", diff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.json index a5ce11d..d340eb1 100644 --- a/src-tauri/tauri.macos.conf.json +++ b/src-tauri/tauri.macos.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Lncvrt Games Launcher", - "version": "1.1.0", + "version": "1.1.1", "identifier": "xyz.lncvrt.games-launcher", "build": { "beforeDevCommand": "next dev", diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index d57ddaf..4af3cbe 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Lncvrt Games Launcher", - "version": "1.1.0", + "version": "1.1.1", "identifier": "xyz.lncvrt.games-launcher", "build": { "beforeDevCommand": "next dev", diff --git a/src/app/componets/Sidebar.css b/src/app/componets/Sidebar.css index 5048e89..2c6e964 100644 --- a/src/app/componets/Sidebar.css +++ b/src/app/componets/Sidebar.css @@ -18,7 +18,7 @@ } .nav-links { - @apply flex flex-col p-4 space-y-1; + @apply flex flex-col p-4 space-y-1 overflow-y-auto overflow-x-hidden; } .link { diff --git a/src/app/componets/Sidebar.tsx b/src/app/componets/Sidebar.tsx index 2422dd0..2dc05c7 100644 --- a/src/app/componets/Sidebar.tsx +++ b/src/app/componets/Sidebar.tsx @@ -20,6 +20,7 @@ import { usePathname, useSearchParams } from 'next/navigation' export default function Sidebar () { const { + normalConfig, getListOfGames, setShowPopup, setPopupMode, @@ -88,7 +89,11 @@ export default function Sidebar () { ? 'active' : '' } ml-auto w-50 ${ - pathname === '/' || pathname === '/game' ? '' : 'hidden' + normalConfig?.settings.alwaysShowGamesInSidebar || + pathname === '/' || + pathname === '/game' + ? '' + : 'hidden' }`} > {' '} diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 4e4524e..d9303ac 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -39,6 +39,7 @@ import { ServerVersionsResponse } from './types/ServerVersionsResponse' import { GameVersion } from './types/GameVersion' import { Game } from './types/Game' import { listen } from '@tauri-apps/api/event' +import { usePathname } from 'next/navigation' const roboto = Roboto({ subsets: ['latin'] @@ -78,6 +79,8 @@ export default function RootLayout ({ } } + const pathname = usePathname() + const notifyUser = useCallback( async (title: string, body: string) => { if (!normalConfig?.settings.allowNotifications) return @@ -512,7 +515,11 @@ export default function RootLayout ({