Spaces:
Runtime error
Runtime error
fix: restore @mention autocomplete visibility in task modal
Browse files- Increase MentionTextarea dropdown z-index to z-[60] so it renders
above z-50 modals (was z-20, clipped by overflow-y-auto on modal)
- Replace plain textarea in broadcast section with MentionTextarea
for consistent @mention support across all text inputs
- Add hint text to broadcast placeholder about @mention usage
Fixes #172
src/components/panels/task-board-panel.tsx
CHANGED
|
@@ -217,7 +217,7 @@ function MentionTextarea({
|
|
| 217 |
className={className}
|
| 218 |
/>
|
| 219 |
{open && filtered.length > 0 && (
|
| 220 |
-
<div className="absolute z-
|
| 221 |
{filtered.map((option, index) => (
|
| 222 |
<button
|
| 223 |
key={`${option.type}-${option.handle}-${option.recipient}`}
|
|
@@ -1062,12 +1062,13 @@ function TaskDetailModal({
|
|
| 1062 |
<div className="text-xs text-muted-foreground mb-2">{broadcastStatus}</div>
|
| 1063 |
)}
|
| 1064 |
<form onSubmit={handleBroadcast} className="space-y-2">
|
| 1065 |
-
<
|
| 1066 |
value={broadcastMessage}
|
| 1067 |
-
onChange={
|
| 1068 |
className="w-full bg-surface-1 text-foreground border border-border rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-primary/50"
|
| 1069 |
rows={2}
|
| 1070 |
-
placeholder="Send a message to all task subscribers..."
|
|
|
|
| 1071 |
/>
|
| 1072 |
<div className="flex justify-end">
|
| 1073 |
<button
|
|
|
|
| 217 |
className={className}
|
| 218 |
/>
|
| 219 |
{open && filtered.length > 0 && (
|
| 220 |
+
<div className="absolute z-[60] mt-1 w-full bg-surface-1 border border-border rounded-md shadow-xl max-h-56 overflow-y-auto">
|
| 221 |
{filtered.map((option, index) => (
|
| 222 |
<button
|
| 223 |
key={`${option.type}-${option.handle}-${option.recipient}`}
|
|
|
|
| 1062 |
<div className="text-xs text-muted-foreground mb-2">{broadcastStatus}</div>
|
| 1063 |
)}
|
| 1064 |
<form onSubmit={handleBroadcast} className="space-y-2">
|
| 1065 |
+
<MentionTextarea
|
| 1066 |
value={broadcastMessage}
|
| 1067 |
+
onChange={setBroadcastMessage}
|
| 1068 |
className="w-full bg-surface-1 text-foreground border border-border rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-primary/50"
|
| 1069 |
rows={2}
|
| 1070 |
+
placeholder="Send a message to all task subscribers... (use @ to mention)"
|
| 1071 |
+
mentionTargets={mentionTargets}
|
| 1072 |
/>
|
| 1073 |
<div className="flex justify-end">
|
| 1074 |
<button
|