-
Notifications
You must be signed in to change notification settings - Fork 41
add link to jump to session header #225
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 3 commits
8322e61
d3f6aee
98a5180
d006c4f
3cd51d6
3eee4f6
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -32,8 +32,10 @@ const { speaker_name, title, abstract, self_introduction, image_url } = | |||||||||
| </div> | ||||||||||
| <div class="flex-1 text-center md:text-left"> | ||||||||||
| <div class="mb-3"> | ||||||||||
| <h3 class="mb-2 text-2xl font-bold text-gray-900 md:text-3xl"> | ||||||||||
| <h3 id={encodeURIComponent(`${speaker_name}-${title}`)} class="mb-2 text-2xl font-bold text-gray-900 md:text-3xl"> | ||||||||||
| <a href={`#${encodeURIComponent(`${speaker_name}-${title}`)}`} class="hover:underline"> | ||||||||||
|
||||||||||
| <h3 id={encodeURIComponent(`${speaker_name}-${title}`)} class="mb-2 text-2xl font-bold text-gray-900 md:text-3xl"> | |
| <a href={`#${encodeURIComponent(`${speaker_name}-${title}`)}`} class="hover:underline"> | |
| <h3 id={Astro.props.session_id} class="mb-2 text-2xl font-bold text-gray-900 md:text-3xl"> | |
| <a href={`#${Astro.props.session_id}`} class="hover:underline"> |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,6 +8,10 @@ body { | |||||
| font-family: Arial, Helvetica, sans-serif; | ||||||
| } | ||||||
|
|
||||||
| html { | ||||||
| scroll-padding-top: calc(var(--spacing) * 16) | ||||||
|
||||||
| scroll-padding-top: calc(var(--spacing) * 16) | |
| scroll-padding-top: calc(var(--spacing) * 16); |
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.
@gamoutatsumi これも多分必要かも?
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.
修正済み
Uh oh!
There was an error while loading. Please reload this page.
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.
[nits]変数化してもいいかも?
@gamoutatsumi
Uh oh!
There was an error while loading. Please reload this page.
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.
copilotが言うように、
session_idを使う方が簡素な気がするが、どっちがいいのだろう一意なものならなんでもいい気もするが
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.
session_idは一意っぽいな。そっちのが良さそうかもencodeは多分要らない?はず?