Skip to content

Add zoom in/out control for the board 🔍 #519

Description

@anoopcodehack

Add zoom in/out control for the board 🔍

File: client/src/pages/Dashboard.jsx

With many columns board gets tiny 💀
No way to zoom in/out fr!!

Fix:
const [zoom, setZoom] = useState(100)

// zoom controls in navbar:

setZoom(z => Math.max(z-10, 60))} className="text-[#666] hover:text-[#aaa] text-sm px-1"> − {zoom}% setZoom(z => Math.min(z+10, 130))} className="text-[#666] hover:text-[#aaa] text-sm px-1"> +
~10 lines! No backend needed 🎯
Super useful on small screens!! 🔥

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions