From eaba9eb775f94ed8a995b849779c0c1504dd1c41 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Sat, 7 Nov 2026 12:56:27 +0900 Subject: events: 共有ボタンをXとコピーの2つにする MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LINEのボタンとアイコンを外した。 --- src/components/ScheduleTable.astro | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/components') 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}`); -- cgit v1.3.1