refactor(web): scroll resources container

This commit is contained in:
Luke committed 2023-03-19 11:19:31 +01:00
1 parent 7b2b440825
commit 4cbcd57a8a
2 files changed
+38 -5

No files matched your search

+16
View File
@@ -13,3 +13,19 @@
width: 100vw;
height: 100vh;
}
::-webkit-scrollbar {
width: 2px;
}
::-webkit-scrollbar-track {
background: #25262b;
}
::-webkit-scrollbar-thumb {
background: #909296;
}
::-webkit-scrollbar-thumb:hover {
background: #a6a7ab;
}
+22 -5
View File
@@ -3,14 +3,31 @@
import { IconSearch } from '@tabler/icons-svelte';
import { router } from 'tinro';
const resources = ['ox_core', 'oxmysql', 'ox_inventory', 'ox_doorlock', 'ox_lib', 'ox_vehicleshop', 'ox_target'];
const resources = [
'ox_core',
'oxmysql',
'ox_inventory',
'ox_doorlock',
'ox_lib',
'ox_vehicleshop',
'ox_target',
'ox_core',
'oxmysql',
'ox_inventory',
'ox_doorlock',
'ox_lib',
'ox_vehicleshop',
'ox_target',
];
</script>
<div class="p-4 w-full h-full flex justify-between gap-4">
<div class="bg-dark-700 p-4 flex flex-col w-2/3 rounded-md">
<p class="text-2xl mb-4">Resources</p>
<Input icon={IconSearch} />
<div class="flex flex-col gap-3 mt-6">
<div class="bg-dark-700 p-4 pr-0 flex flex-col w-2/3 rounded-md">
<div class="pr-4">
<p class="text-2xl mb-4">Resources</p>
<Input icon={IconSearch} />
</div>
<div class="flex flex-col gap-3 mt-6 overflow-y-auto pr-4">
{#each resources as resource}
<button
on:click={() => router.goto(`/${resource}`)}