fallback creator, focus dragdrop on paste

This commit is contained in:
Dylan Knutson
2025-07-31 02:34:47 +00:00
parent 118a0c58c2
commit 55dfc81436
2 changed files with 3 additions and 1 deletions

View File

@@ -625,6 +625,8 @@ export default function VisualSearchForm({
if (imageFile) {
await handleImageFile(imageFile);
// focus the drag/drop zone
dragDropRef.current?.focus();
} else {
showFeedback(
'No image found in clipboard. Copy an image first, then paste here.',

View File

@@ -70,7 +70,7 @@
<div class="px-2 pb-2 text-xs text-gray-600 mt-auto">
<div class="flex justify-between items-center flex-wrap gap-1">
<span class="flex items-center gap-0.5">
<% if creator = post.primary_creator_for_view %>
<% if creator = post.primary_creator_for_view || post.primary_fallback_creator_for_view %>
<span class="text-gray-500 italic">by</span>
<%= render "domain/has_description_html/inline_link_domain_user", user: creator, visual_style: "sky-link", size: "small" %>
<% elsif creator = post.primary_creator_name_fallback_for_view %>