Hopefully fix windows issues

This commit is contained in:
2025-11-05 13:18:18 -07:00
parent 847c8d2a3e
commit f0d635ebe6
4 changed files with 14 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
}
.downloads-scroll {
@apply h-[calc(100vh-84px)] bg-(--col1) border border-(--col3) rounded-lg overflow-y-auto w-full;
@apply bg-(--col1) border border-(--col3) rounded-lg overflow-y-auto w-full;
}
.downloads-entry {

View File

@@ -6,6 +6,7 @@ import { format } from 'date-fns'
import { invoke } from '@tauri-apps/api/core'
import { useGlobal } from '../GlobalProvider'
import { useSearchParams } from 'next/navigation'
import { platform } from '@tauri-apps/plugin-os'
export default function Installs () {
const {
@@ -48,7 +49,11 @@ export default function Installs () {
</button>
</div>
<div className='downloads-container'>
<div className='downloads-scroll'>
<div
className={`downloads-scroll h-[calc(100vh-${
platform() === 'windows' ? '116' : '84'
}px)]`}
>
{downloadedVersionsConfig && downloadedVersionsConfig.list.length ? (
downloadedVersionsConfig.list
.filter(v => {

View File

@@ -461,7 +461,7 @@ export default function RootLayout ({
>
<Sidebar />
<div
className='relative z-2 ml-[239px] w-[761px] border-b border-(--col3) h-[33px] bg-(--col1)'
className='relative z-2 ml-[239px] w-[calc(100vh-239px)] border-b border-(--col3) h-[33px] bg-(--col1)'
style={{
display: platform() === 'windows' ? 'block' : 'none'
}}

View File

@@ -10,6 +10,7 @@ import {
faShieldHalved,
faWarning
} from '@fortawesome/free-solid-svg-icons'
import { platform } from '@tauri-apps/plugin-os'
export default function Installs () {
const {
@@ -49,7 +50,11 @@ export default function Installs () {
</button>
</div>
<div className='downloads-container'>
<div className='downloads-scroll'>
<div
className={`downloads-scroll h-[calc(100vh-${
platform() === 'windows' ? '116' : '84'
}px)]`}
>
{downloadedVersionsConfig && downloadedVersionsConfig.list.length ? (
getListOfGames()
.sort((a, b) => {