Skip to content

Commit

Permalink
fix: set flexible width for project container and set an end date fro…
Browse files Browse the repository at this point in the history
…m 1 to 3 as creating new goal
  • Loading branch information
hudy9x committed Mar 26, 2024
1 parent cf3f79d commit 287bfda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/ui-app/app/[orgID]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export default function ProjectLayout({
return (
<>
<ProjectSidebar />
<main className="main-content w-full">
<main
className="main-content w-full"
style={{ width: 'calc(100% - 308px)' }}>
<HamburgerMenu />
{children}
</main>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ export default function VisionCreate() {
parentId: null,
organizationId: orgID,
startDate: new Date(y, m, 1),
dueDate: new Date(y, m, 1)
dueDate: new Date(y, m, 3)
}

// ex: goal 12 /start-2
if (matchStart) {
startDate = new Date(y, m, parseInt(matchStart[2], 10))
visionData.name = visionData.name
Expand All @@ -40,6 +41,7 @@ export default function VisionCreate() {
visionData.startDate = startDate
}

// ex: goal 14 /start-4 /end-15
if (matchEnd) {
endDate = new Date(y, m, parseInt(matchEnd[2], 10))
const endOfDate = endOfMonth(new Date(y, m, 1))
Expand Down

0 comments on commit 287bfda

Please sign in to comment.