diff options
| author | BigCoke233 <hi@guhub.cn> | 2026-02-07 20:15:19 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2026-02-07 20:15:19 +0800 |
| commit | b46e42280ca32aca178e56dc3f5caa275bad95af (patch) | |
| tree | b0efd7515f04fe1769b2a2ea5870302af0572e15 /layouts/_partials | |
| parent | b305c6cec902ef9cee2a57b0ed28606d5736340f (diff) | |
feat: add "Copy Toot Link" button
fix the issue where webmention and fediverse input text are black in
dark mode
Diffstat (limited to 'layouts/_partials')
| -rw-r--r-- | layouts/_partials/posts/fediverse-form.html | 8 | ||||
| -rw-r--r-- | layouts/_partials/posts/webmention-form.html | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/layouts/_partials/posts/fediverse-form.html b/layouts/_partials/posts/fediverse-form.html index 08ccaa69..585cb1ef 100644 --- a/layouts/_partials/posts/fediverse-form.html +++ b/layouts/_partials/posts/fediverse-form.html @@ -1,8 +1,12 @@ {{ if .Params.toot }} <div class="flex flex-col gap-2"> <h4 class="text-sm font-semibold m-0">{{ T "actionMenu.fediverse" }}</h4> - <input type="text" id="fediverse-instance" placeholder="{{ T "actionMenu.fediversePlaceholder" }}" class="text-sm px-2 py-1 border border-neutral-300 dark:border-neutral-600 rounded bg-transparent"> - <button id="fediform-button" class="text-xs px-2 py-1 bg-neutral-200 dark:bg-neutral-600 rounded hover:bg-neutral-300 dark:hover:bg-neutral-500 transition-colors">{{ T "actionMenu.openToot" }}</button> + <input type="text" id="fediverse-instance" placeholder="{{ T "actionMenu.fediversePlaceholder" }}" class="text-sm px-2 py-1 border border-neutral-300 dark:border-neutral-600 rounded bg-transparent dark:text-white"> + <div class="flex gap-2"> + <button id="fediform-copy-button" class="text-xs px-2 py-1 bg-neutral-100 dark:bg-neutral-700 rounded hover:bg-neutral-200 dark:hover:bg-neutral-700 transition-colors">📋</button> + + <button id="fediform-button" class="w-full text-xs px-2 py-1 bg-neutral-200 dark:bg-neutral-600 rounded hover:bg-neutral-300 dark:hover:bg-neutral-500 transition-colors">{{ T "actionMenu.openToot" }}</button> + </div> </div> <script> const tootUrl = '{{ .Params.toot }}' diff --git a/layouts/_partials/posts/webmention-form.html b/layouts/_partials/posts/webmention-form.html index 65062592..4430961b 100644 --- a/layouts/_partials/posts/webmention-form.html +++ b/layouts/_partials/posts/webmention-form.html @@ -1,6 +1,6 @@ <form action="https://webmention.io/www.geedea.pro/webmention" method="POST" class="flex flex-col gap-2"> <h4 class="text-sm font-semibold m-0">{{ T "actionMenu.webmention" }}</h4> - <input type="url" name="source" placeholder="{{ T "actionMenu.webmentionPlaceholder" }}" class="text-sm px-2 py-1 border border-neutral-300 dark:border-neutral-600 rounded bg-transparent"> + <input type="url" name="source" placeholder="{{ T "actionMenu.webmentionPlaceholder" }}" class="text-sm px-2 py-1 border border-neutral-300 dark:border-neutral-600 rounded bg-transparent dark:text-white"> <input type="hidden" name="target" value="{{ .Permalink }}"> <button type="submit" class="text-xs px-2 py-1 bg-neutral-200 dark:bg-neutral-600 rounded hover:bg-neutral-300 dark:hover:bg-neutral-500 transition-colors">{{ T "actionMenu.send" }}</button> </form> |
