-
Notifications
You must be signed in to change notification settings - Fork 52
Fix calendar link placement and styling #430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -293,21 +293,25 @@ | |
| } | ||
| .event-detail__calendar-links { | ||
| display: flex; | ||
| gap: 16px; | ||
| margin-top: 12px; | ||
| gap: 12px; | ||
| margin-top: 24px; | ||
| flex-wrap: wrap; | ||
| } | ||
|
|
||
| .event-detail__calendar-link { | ||
| font-size: 14px; | ||
| color: var(--color-fg-muted, #656d76); | ||
| text-decoration: underline; | ||
| background: none; | ||
| border: none; | ||
| padding: 0; | ||
| cursor: pointer; | ||
| font-size: 0.875rem; | ||
| font-family: inherit; | ||
| color: rgba(255, 255, 255, 0.8); | ||
| background: rgba(255, 255, 255, 0.15); | ||
| border: 1px solid rgba(255, 255, 255, 0.3); | ||
| border-radius: 100px; | ||
|
Comment on lines
+304
to
+307
|
||
| padding: 8px 16px; | ||
| cursor: pointer; | ||
| text-decoration: none; | ||
| transition: background 0.2s ease, color 0.2s ease; | ||
|
|
||
| &:hover { | ||
| color: var(--color-fg-default, #1f2328); | ||
| background: rgba(255, 255, 255, 0.95); | ||
| color: #6e40c9; | ||
| } | ||
|
Comment on lines
313
to
316
|
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getGoogleCalendarUrl(event)is computed 3 times andgetIcsContent(event)is computed 2 times in this render path. These functions allocate dates/URLSearchParams and build long strings; consider computing them once (e.g.,const googleUrl = …; const icsContent = …) and reusing the values for the condition + render, to avoid redundant work and keep the JSX simpler.