better card title
This commit is contained in:
parent
5dbd10f3e7
commit
44e90059b3
@ -359,32 +359,16 @@ export default function StudioPage() {
|
|||||||
>
|
>
|
||||||
{/* Card Header */}
|
{/* Card Header */}
|
||||||
<div className="p-4 pb-3 flex-1">
|
<div className="p-4 pb-3 flex-1">
|
||||||
<div className="flex items-start justify-between mb-3">
|
<div className="mb-3">
|
||||||
<div className="flex-1 min-w-0 pr-2">
|
<h3 className="font-semibold text-foreground text-sm leading-tight mb-2 group-hover:text-primary transition-colors">
|
||||||
<h3 className="font-semibold text-foreground text-sm leading-tight mb-2 group-hover:text-primary transition-colors">
|
<span className="line-clamp-2 break-words" title={prompt.name}>
|
||||||
<span className="line-clamp-2 break-words" title={prompt.name}>
|
{prompt.name}
|
||||||
{prompt.name}
|
</span>
|
||||||
</span>
|
</h3>
|
||||||
</h3>
|
<div className="h-10 overflow-hidden">
|
||||||
<div className="h-10 overflow-hidden">
|
<p className="text-xs text-muted-foreground leading-relaxed line-clamp-2">
|
||||||
<p className="text-xs text-muted-foreground leading-relaxed line-clamp-2">
|
{prompt.description || 'No description available'}
|
||||||
{prompt.description || 'No description available'}
|
</p>
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="flex-shrink-0">
|
|
||||||
<Button
|
|
||||||
variant="ghost"
|
|
||||||
size="sm"
|
|
||||||
className="h-7 w-7 p-0 opacity-0 group-hover:opacity-100 transition-opacity duration-200 hover:bg-primary/10 hover:text-primary"
|
|
||||||
onClick={(e) => {
|
|
||||||
e.stopPropagation()
|
|
||||||
handleQuickEdit(prompt)
|
|
||||||
}}
|
|
||||||
title="Quick Edit"
|
|
||||||
>
|
|
||||||
<Edit className="h-3.5 w-3.5" />
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -19,10 +19,10 @@ export function Header() {
|
|||||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||||
<div className="flex justify-between items-center h-16">
|
<div className="flex justify-between items-center h-16">
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<div className="flex-shrink-0 flex items-center">
|
<Link href="/" className="flex-shrink-0 flex items-center hover:opacity-80 transition-opacity">
|
||||||
<Zap className="h-8 w-8 text-primary" />
|
<Zap className="h-8 w-8 text-primary" />
|
||||||
<span className="ml-2 text-xl font-bold text-foreground">Prmbr</span>
|
<span className="ml-2 text-xl font-bold text-foreground">Prmbr</span>
|
||||||
</div>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Desktop Navigation */}
|
{/* Desktop Navigation */}
|
||||||
|
Loading…
Reference in New Issue
Block a user