feat: Phase 1 quick wins - defaultColumnWidth, due date colors, card aging, open attachments
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { FileIcon, X, Plus } from "lucide-react";
|
||||
import { FileIcon, X, Plus, ExternalLink } from "lucide-react";
|
||||
import { openPath } from "@tauri-apps/plugin-opener";
|
||||
import { open } from "@tauri-apps/plugin-dialog";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useBoardStore } from "@/stores/board-store";
|
||||
@@ -68,6 +69,13 @@ export function AttachmentSection({
|
||||
<span className="flex-1 truncate text-sm text-pylon-text">
|
||||
{att.name}
|
||||
</span>
|
||||
<button
|
||||
onClick={() => openPath(att.path)}
|
||||
className="shrink-0 rounded p-0.5 text-pylon-text-secondary opacity-0 transition-opacity hover:bg-pylon-accent/10 hover:text-pylon-accent group-hover/att:opacity-100"
|
||||
aria-label="Open attachment"
|
||||
>
|
||||
<ExternalLink className="size-3" />
|
||||
</button>
|
||||
<button
|
||||
onClick={() => removeAttachment(cardId, att.id)}
|
||||
className="shrink-0 rounded p-0.5 text-pylon-text-secondary opacity-0 transition-opacity hover:bg-pylon-danger/10 hover:text-pylon-danger group-hover/att:opacity-100"
|
||||
|
||||
Reference in New Issue
Block a user