Skip to content

[FE-29] Add responsive layout for mobile and tablet breakpoints in opsce folder #793

@yusuftomilola

Description

@yusuftomilola

Problem

The sidebar and dashboard layout are designed only for desktop screens. On mobile and tablet devices, the layout breaks — the sidebar overflows, tables are unscrollable, and modals are too wide.

Proposed Solution

Create frontend/opsce/components/layout/ResponsiveSidebar.tsx that collapses to a slide-out drawer on screens below the md breakpoint. Update the dashboard layout to use this component.

Acceptance Criteria

  • On screens smaller than 768px: sidebar is hidden, a hamburger menu icon shown in topbar
  • Tapping the hamburger opens the sidebar as a slide-in drawer with a backdrop overlay
  • Tapping the backdrop or a navigation link closes the drawer
  • DataTable components are horizontally scrollable on small screens (no overflow clipping)
  • Modals are full-screen on mobile (below sm breakpoint)
  • Summary cards on the dashboard stack vertically on mobile

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions