Hopefully fix windows issues
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -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'
|
||||
}}
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user