refactor: improve KanbanCard styling and enhance path normalization in worktree routes

- Updated the button variant in KanbanCard for better visual consistency.
- Adjusted CSS classes for improved styling of shortcut keys.
- Introduced a normalizePath function to ensure consistent path formatting across platforms.
- Updated worktree routes to utilize normalizePath for path handling, enhancing cross-platform compatibility.
This commit is contained in:
Cody Seibert
2025-12-16 13:09:20 -05:00
parent 064a395c4c
commit 8482cdab87
5 changed files with 23 additions and 18 deletions

View File

@@ -866,9 +866,9 @@ export const KanbanCard = memo(function KanbanCard({
<>
{onViewOutput && (
<Button
variant="default"
variant="secondary"
size="sm"
className="flex-1 h-7 text-[11px] bg-[var(--status-info)] hover:bg-[var(--status-info)]/90"
className="flex-1 h-7 text-[11px]"
onClick={(e) => {
e.stopPropagation();
onViewOutput();
@@ -880,7 +880,7 @@ export const KanbanCard = memo(function KanbanCard({
Logs
{shortcutKey && (
<span
className="ml-1.5 px-1 py-0.5 text-[9px] font-mono rounded bg-white/20"
className="ml-1.5 px-1 py-0.5 text-[9px] font-mono rounded bg-foreground/10"
data-testid={`shortcut-key-${feature.id}`}
>
{shortcutKey}
@@ -972,7 +972,7 @@ export const KanbanCard = memo(function KanbanCard({
)}
{!isCurrentAutoTask && feature.status === "verified" && (
<>
{/* Logs button - styled like Refine */}
{/* Logs button */}
{onViewOutput && (
<Button
variant="secondary"