Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/core/components/CollapseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const CollapseCard = ({
const tooltipId = tooltipContent ? uuidv4() : undefined

return (
<div className={clsx("collapse collapse-arrow bg-base-300 overflow-visible", className)}>
<div className={clsx("collapse collapse-arrow bg-base-300 w-full max-w-full", className)}>
<input type="checkbox" data-tooltip-id={tooltipId} defaultChecked={defaultOpen} />
<div className="collapse-title text-xl font-medium">
<div className="card-title">{title}</div>
<div className="collapse-title text-xl font-medium min-w-0 pr-10">
<div className="card-title truncate">{title}</div>
{tooltipContent && (
<TooltipWrapper
id={tooltipId}
Expand All @@ -37,8 +37,8 @@ const CollapseCard = ({
)}
</div>

<div className="collapse-content">
<div className="w-full overflow-visible">{children}</div>
<div className="collapse-content min-w-0">
<div className="w-full min-w-0">{children}</div>
{actions && <div className="card-actions justify-end">{actions}</div>}
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/pages/projects/[projectId]/summary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,18 +245,18 @@ const Summary = () => {
{project.formVersionId ? (
<>
<MetadataDisplay metadata={project.metadata} />
<div className="flex flex-wrap gap-2 justify-end max-w-xl">
<div className="flex flex-wrap md:flex-nowrap gap-2 justify-end">
<DownloadJSON
data={project.metadata}
fileName={project.name}
className="btn btn-primary"
className="btn btn-primary whitespace-nowrap"
type="button"
label="Download Metadata JSON"
/>
<DownloadXLSX
data={project.metadata}
fileName={project.name}
className="btn btn-secondary mx-2"
className="btn btn-secondary whitespace-nowrap"
type="button"
label="Download Metadata XLSX"
/>
Expand All @@ -265,7 +265,7 @@ const Summary = () => {
uiSchema={getJsonSchema(project.formVersion?.uiSchema)}
metadata={project.metadata}
label={"Edit Project Metadata"}
classNames="btn-info"
classNames="btn-info whitespace-nowrap"
onSubmit={handleJsonFormSubmit}
onError={handleJsonFormError}
resetHandler={handleResetMetadata}
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/components/TaskSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TaskLogTable } from "./TaskLogTable"
// Create task summary for the PM
export const TaskSummary = ({ contributorFilter }: { contributorFilter?: number }) => {
return (
<div className="flex flex-row justify-center mt-2 mb-2">
<div className="flex flex-row justify-center mt-4 mb-2">
{/* overall project information */}
<CollapseCard title="Task Completion" className="w-full" defaultOpen={true}>
{!contributorFilter && (
Expand Down