Skip to content

Commit

Permalink
Fix formatting; use '/g/<handle>' for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
hulloitskai committed Sep 24, 2023
1 parent 8ad375c commit aa7386e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/components/ActivityCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const ActivityCard: FC<ActivityCardProps> = ({
>
{topSection}
<Group align="start" noWrap>
<Group spacing={8} sx={{ flexGrow: 1 }}>
<Group spacing={8} sx={{ flexGrow: 1, rowGap: 0 }}>
<Text weight={500} lh={1.3} sx={{ textTransform: "none" }}>
{name}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion app/models/activity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def save_to_icalendar_event(event)
event.append_attendee(attendee)
end
attachment = Icalendar::Values::Uri.new(
join_activity_url(self),
join_activity_url(friendly_id),
"fmttype" => "text/html",
)
event.append_attach(attachment)
Expand Down
2 changes: 1 addition & 1 deletion app/pages/ActivityPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const ActivityPage: PageComponent<ActivityPageProps> = ({
</Alert>
<Stack>
<Box>
<Group spacing={8}>
<Group spacing={8} sx={{ rowGap: 0 }}>
<Title size="h3" lh={1.3} sx={{ textTransform: "none" }}>
{name}
</Title>
Expand Down
8 changes: 7 additions & 1 deletion app/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ const HomePage: PageComponent<HomePageProps> = ({
<Text>First</Text>
<CopyButton value={calendarUrl}>
{({ copy, copied }) => (
<Button variant="default" leftIcon={<CopyIcon />} onClick={copy}>
<Button
variant="default"
leftIcon={<CopyIcon />}
compact
onClick={copy}
>
{copied ? "Link copied" : "Copy link"}
</Button>
)}
Expand All @@ -96,6 +101,7 @@ const HomePage: PageComponent<HomePageProps> = ({
rel="noopener noreferrer nofollow"
variant="default"
leftIcon={<OpenExternalIcon />}
compact
>
Add to Google Calendar
</Button>
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
end

# == Groups
resources :groups, only: :show
resources :groups, path: "/g", only: :show

# == Activities
resources :activities, only: :show do
Expand Down

0 comments on commit aa7386e

Please sign in to comment.