mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-04 14:38:50 +00:00
refactor(web): scroll resources container
This commit is contained in:
1 parent
7b2b440825
commit
4cbcd57a8a
2 files changed
+36
-3
No files matched your search
@@ -13,3 +13,19 @@
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background: #25262b;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: #909296;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: #a6a7ab;
|
||||||
|
}
|
||||||
@@ -3,14 +3,31 @@
|
|||||||
import { IconSearch } from '@tabler/icons-svelte';
|
import { IconSearch } from '@tabler/icons-svelte';
|
||||||
import { router } from 'tinro';
|
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>
|
</script>
|
||||||
|
|
||||||
<div class="p-4 w-full h-full flex justify-between gap-4">
|
<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">
|
<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>
|
<p class="text-2xl mb-4">Resources</p>
|
||||||
<Input icon={IconSearch} />
|
<Input icon={IconSearch} />
|
||||||
<div class="flex flex-col gap-3 mt-6">
|
</div>
|
||||||
|
<div class="flex flex-col gap-3 mt-6 overflow-y-auto pr-4">
|
||||||
{#each resources as resource}
|
{#each resources as resource}
|
||||||
<button
|
<button
|
||||||
on:click={() => router.goto(`/${resource}`)}
|
on:click={() => router.goto(`/${resource}`)}
|
||||||
|
|||||||
Reference in new issue
Block a user