CLASSROOMIO-T-144:Made the dashboard responsive

Co-authored-by: Ifeanyi Nwosu <[email protected]>


Merge-request: CLASSROOMIO-MR-65
Merged-by: Best Admin <[email protected]>
This commit is contained in:
emmanuel
2023-09-04 19:48:13 +00:00
committed by Space Cloud
parent 1ce386ac3b
commit 9dd7ede04a
3 changed files with 28 additions and 1 deletions
+6 -1
View File
@@ -14,6 +14,7 @@
import { currentOrg, currentOrgPath } from '$lib/utils/store/org';
import { profile } from '$lib/utils/store/user';
import { NavClasses } from '$lib/utils/constants/reusableClass';
import { menu } from './store';
const menuItems = [
{
@@ -55,7 +56,11 @@
</script>
<aside
class="w-[250px] min-w-[250px] bg-gray-100 dark:bg-gray-800 h-full border border-l-0 border-t-0 border-b-0 border-r-1"
class={` ${
$menu.hidden
? '-translate-x-[100%] top-[48px] md:top-0 absolute md:translate-x-0 md:relative '
: 'translate-x-0 absolute md:relative top-[48px] md:top-0'
} transition w-[250px] min-w-[250px] bg-gray-100 dark:bg-gray-800 h-full border border-l-0 border-t-0 border-b-0 border-r-1`}
>
<div class="h-full flex flex-col">
<div class="border-b border-gray-200 pt-5 px-4">
+5
View File
@@ -0,0 +1,5 @@
import { writable } from 'svelte/store';
export const menu = writable({
hidden: true
});