Skip to content

Commit 593d4b4

Browse files
committed
feat: Enhance UI/UX with query key formatting, improved selection states, and streamlined CSS architecture
1 parent dedb65b commit 593d4b4

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/components/query/QueryListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function QueryListItem({ query, index, isSelected, onSelect, staggerIndex
7676
<StatusBadge status={status} count={query.observersCount} transitionDuration={500} />
7777

7878
{/* Query key */}
79-
<div className="flex-1 font-mono text-xs text-gray-700 dark:text-gray-300 truncate">{formatQueryKeyShort(query.queryKey)}</div>
79+
<div className="flex-1 font-mono text-xs text-gray-700 dark:text-gray-300 break-all">{formatQueryKeyShort(query.queryKey)}</div>
8080
</div>
8181
</div>
8282
);

src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
@import "./styles/animations.css";
66

77
/* Modern CSS Architecture with Cascade Layers */
8-
@layer base, responsive, components, cards, animations;
8+
@layer base, components, cards, animations;

src/styles/cards.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616

1717
/* Selection states with blue theming */
1818
.card-selected {
19-
@apply bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-700;
20-
@apply ring-2 ring-blue-500/20 dark:ring-blue-400/30;
19+
@apply bg-blue-100 dark:bg-blue-900/50 border-blue-300 dark:border-blue-600;
20+
@apply ring-2 ring-blue-500/40 dark:ring-blue-400/50;
21+
@apply border-l-4 border-l-blue-500 dark:border-l-blue-400;
2122
}
2223

2324
/* Container query-enabled containers */

src/utils/formatters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Helper function to format query key (single line for list)
22
export function formatQueryKeyShort(queryKey: readonly unknown[]): string {
33
try {
4-
return JSON.stringify(queryKey).replace(/"/g, "");
4+
return JSON.stringify(queryKey);
55
} catch {
66
return String(queryKey);
77
}

0 commit comments

Comments
 (0)