Skip to content

Commit

Permalink
minor style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
xvvvyz committed Jul 8, 2024
1 parent 569a1d6 commit 643b350
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 1 addition & 3 deletions app/_components/event-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ const EventCard = ({
return (
<div className="space-y-16 py-8">
{eventType.content && (
<DirtyHtml className="-my-1 px-4 sm:px-8">
{eventType.content}
</DirtyHtml>
<DirtyHtml className="px-4 sm:px-8">{eventType.content}</DirtyHtml>
)}
{(event || (!isPublic && !isArchived)) && (
<EventForm
Expand Down
3 changes: 3 additions & 0 deletions app/_components/insight-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ const InsightForm = ({ events, insight, subjectId }: InsightFormProps) => {
<CollapsibleSection
className="grid gap-6 pt-6 md:grid-cols-3 md:gap-4"
title="Additional options"
titleClassName="smallcaps"
>
<Controller
control={form.control}
Expand Down Expand Up @@ -272,6 +273,7 @@ const InsightForm = ({ events, insight, subjectId }: InsightFormProps) => {
<CollapsibleSection
className="grid gap-6 pt-6 md:grid-cols-2 md:gap-4"
title="Filter events"
titleClassName="smallcaps"
>
<Controller
control={form.control}
Expand Down Expand Up @@ -322,6 +324,7 @@ const InsightForm = ({ events, insight, subjectId }: InsightFormProps) => {
<CollapsibleSection
className="grid grid-cols-2 gap-6 pt-6 md:grid-cols-4 md:gap-4"
title="Margins"
titleClassName="smallcaps"
>
<Input
label="Top"
Expand Down
10 changes: 4 additions & 6 deletions app/_components/module-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ const ModuleCard = ({

return (
<CollapsibleSection
className="space-y-16 py-8"
className="space-y-16 pb-8 pt-10"
defaultOpen={!event && !disabled}
title={
<div className="py-4 text-left">
<div className="text-xl leading-none">
<div className="py-2 text-left">
<div className="leading-none">
Module {(eventType.order as number) + 1}
</div>
{event && (
Expand All @@ -62,9 +62,7 @@ const ModuleCard = ({
titleClassName="sm:pl-8 border-0 my-0 pr-6 sm:pr-10"
>
{eventType.content && (
<DirtyHtml className="-my-1 px-4 sm:px-8">
{eventType.content}
</DirtyHtml>
<DirtyHtml className="px-4 sm:px-8">{eventType.content}</DirtyHtml>
)}
{(event || (!isPublic && !isArchived)) && (
<EventForm
Expand Down

0 comments on commit 643b350

Please sign in to comment.