fix(nostr-feed): Use theme-aware colors for comment threading lines
Replace hardcoded Tailwind colors with semantic chart-* colors that adapt to light/dark theme. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
56033994b9
commit
b62ef19ced
1 changed files with 6 additions and 9 deletions
|
|
@ -81,16 +81,13 @@ function formatTime(timestamp: number): string {
|
|||
return formatDistanceToNow(timestamp * 1000, { addSuffix: true })
|
||||
}
|
||||
|
||||
// Depth colors for threading lines (using bg-* since we use width, not border)
|
||||
// Depth colors for threading lines (using theme-aware chart colors)
|
||||
const depthColors = [
|
||||
'bg-blue-400',
|
||||
'bg-green-400',
|
||||
'bg-yellow-400',
|
||||
'bg-red-400',
|
||||
'bg-purple-400',
|
||||
'bg-pink-400',
|
||||
'bg-orange-400',
|
||||
'bg-cyan-400'
|
||||
'bg-chart-1',
|
||||
'bg-chart-2',
|
||||
'bg-chart-3',
|
||||
'bg-chart-4',
|
||||
'bg-chart-5'
|
||||
]
|
||||
|
||||
const depthColor = computed(() => depthColors[props.depth % depthColors.length])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue