Skip to content

Commit

Permalink
feat: some minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ixahmedxi committed Sep 5, 2023
1 parent 7712903 commit 2d859e0
Show file tree
Hide file tree
Showing 5 changed files with 420 additions and 667 deletions.
6 changes: 3 additions & 3 deletions apps/web/src/layouts/dashboard/SideMenuModules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import { Icon } from '@/components/Icon';
export const SideMenuModules = () => {
return (
<div className="mt-4">
<div className="flex items-center justify-between px-4">
<div className="flex min-w-[180px] items-center justify-between px-4">
<Typography.P as="h3" className="text-xs">
Modules
</Typography.P>
<Button type="button" variant="muted" size="icon" className="p-2">
<Icon name="plus" size={16} />
</Button>
</div>
<div className="w-full">
<Typography.P className="w-[220px] px-4 pt-1 text-xs leading-4 opacity-50">
<div>
<Typography.P className="line-clamp-2 overflow-hidden px-4 pt-1 text-xs leading-4 opacity-50">
Create modules to organize your study material.
</Typography.P>
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/layouts/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const DashboardLayout: FC<PropsWithChildren> = ({ children }) => {
<FeedbackDialog isSideMenuExpanded={isSideMenuExpanded} />
</motion.aside>

<div className="border-gray-3 dark:border-graydark-3 flex flex-1 flex-col overflow-scroll rounded-2xl border px-6 py-4">
<div className="border-gray-3 dark:border-graydark-3 bg-gray-1 dark:bg-graydark-1 z-50 flex flex-1 flex-col overflow-scroll rounded-2xl border px-6 py-4">
{/* Top Navigation Bar */}
<DashboardNavbar
setSideMenuExpanded={setSideMenuExpanded}
Expand Down
1 change: 1 addition & 0 deletions packages/config/tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@noodle/tsconfig": "workspace:^",
"@radix-ui/colors": "^2.1.0",
"@savvywombat/tailwindcss-grid-areas": "^3.1.0",
"@tailwindcss/line-clamp": "^0.4.4",
"autoprefixer": "^10.4.15",
"tailwindcss-animate": "^1.0.7",
"tailwindcss-radix-colors": "^0.5.1"
Expand Down
1 change: 1 addition & 0 deletions packages/config/tailwind/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const config = {
require('tailwindcss-radix-colors'),
require('tailwindcss-animate'),
require('@savvywombat/tailwindcss-grid-areas'),
require('@tailwindcss/line-clamp'),
],
} satisfies Config;

Expand Down
Loading

0 comments on commit 2d859e0

Please sign in to comment.