aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-11-07 12:56:27 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-11-07 12:56:27 +0900
commiteaba9eb775f94ed8a995b849779c0c1504dd1c41 (patch)
tree0526869509b70fb750a82621c29edb7fc8a532f4
parent25d33fad4afb795681d428bb52107b509816a95e (diff)
events: 共有ボタンをXとコピーの2つにする
LINEのボタンとアイコンを外した。
-rw-r--r--src/components/ScheduleTable.astro11
-rw-r--r--src/styles/custom.css3
2 files changed, 0 insertions, 14 deletions
diff --git a/src/components/ScheduleTable.astro b/src/components/ScheduleTable.astro
index 7cbc751..b636171 100644
--- a/src/components/ScheduleTable.astro
+++ b/src/components/ScheduleTable.astro
@@ -61,7 +61,6 @@ const dateHtml = (html: string) =>
const KINDS: { kind: string; label: string }[] = [
{ kind: 'x', label: 'Xでシェア' },
- { kind: 'line', label: 'LINEで送る' },
{ kind: 'copy', label: '文面をコピー' },
];
@@ -126,16 +125,6 @@ const dateHtml = (html: string) =>
return;
}
- if (kind === 'line') {
- // LINEは文面とURLの両方を渡せる
- window.open(
- `https://social-plugins.line.me/lineit/share?text=${encodeURIComponent(text)}&url=${encodeURIComponent(url)}`,
- '_blank',
- 'noopener',
- );
- return;
- }
-
// コピー:Instagram・Facebookなど、文面を直接渡せないSNSにも貼れる
try {
await navigator.clipboard.writeText(`${text}\n${url}`);
diff --git a/src/styles/custom.css b/src/styles/custom.css
index 006d3b8..9df3b25 100644
--- a/src/styles/custom.css
+++ b/src/styles/custom.css
@@ -336,9 +336,6 @@ body:has(.parks-controls) .sl-markdown-content p {
.schedule-share-btn.is-x {
--share-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M18.244%202.25h3.308l-7.227%208.26%208.502%2011.24H16.17l-5.214-6.817L4.99%2021.75H1.68l7.73-8.835L1.254%202.25H8.08l4.713%206.231%205.451-6.231Zm-1.161%2017.52h1.833L7.084%204.126H5.117l11.966%2015.644Z%27%2F%3E%3C%2Fsvg%3E");
}
-.schedule-share-btn.is-line {
- --share-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Crect%20x%3D%272%27%20y%3D%273.5%27%20width%3D%2720%27%20height%3D%2713.5%27%20rx%3D%274%27%2F%3E%3Cpath%20d%3D%27M7.5%2017v4.2L13%2017z%27%2F%3E%3C%2Fsvg%3E");
-}
.schedule-share-btn.is-copy {
--share-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Crect%20x%3D%279%27%20y%3D%279%27%20width%3D%2712%27%20height%3D%2712%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M6%2015H5a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1h10a1%201%200%200%201%201%201v1%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%2F%3E%3C%2Fsvg%3E");
}