diff --git a/apps/web/app/orgs/[orgslug]/(withmenu)/course/[courseuuid]/activity/[activityid]/page.tsx b/apps/web/app/orgs/[orgslug]/(withmenu)/course/[courseuuid]/activity/[activityid]/page.tsx index 51e1541f..9418630d 100644 --- a/apps/web/app/orgs/[orgslug]/(withmenu)/course/[courseuuid]/activity/[activityid]/page.tsx +++ b/apps/web/app/orgs/[orgslug]/(withmenu)/course/[courseuuid]/activity/[activityid]/page.tsx @@ -39,7 +39,7 @@ export async function generateMetadata(props: MetadataProps): Promise const course_meta = await fetchCourseMetadata(params.courseuuid, access_token) const activity = await getActivityWithAuthHeader( params.activityid, - { revalidate: 1800, tags: ['activities'] }, + { revalidate: 0, tags: ['activities'] }, access_token || null ) @@ -78,7 +78,7 @@ const ActivityPage = async (params: any) => { fetchCourseMetadata(courseuuid, access_token), getActivityWithAuthHeader( activityid, - { revalidate: 60, tags: ['activities'] }, + { revalidate: 0, tags: ['activities'] }, access_token || null ) ]) diff --git a/apps/web/components/Objects/Activities/DynamicCanva/DynamicCanva.tsx b/apps/web/components/Objects/Activities/DynamicCanva/DynamicCanva.tsx index c77525e2..9ce8ef2d 100644 --- a/apps/web/components/Objects/Activities/DynamicCanva/DynamicCanva.tsx +++ b/apps/web/components/Objects/Activities/DynamicCanva/DynamicCanva.tsx @@ -171,6 +171,26 @@ const ContentWrapper = styled.div` width: 80%; } + // Only apply flex layout when there are multiple children (table of contents present) + &:has(> div:first-child:not(:last-child)) { + > div:first-child { + width: 20%; + padding-right: 1rem; + } + + > div:last-child { + width: 80%; + } + } + + // When there's only one child (no table of contents), make it full width + &:has(> div:first-child:last-child) { + > div:first-child { + width: 100%; + padding-right: 0; + } + } + .ProseMirror { flex: 1; padding: 1rem;