mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 00:17:02 +02:00
refactor: use link variant and remove size class overrides
- Change all Button components from variant="ghost" to variant="link" - Remove className="h-8 w-8" overrides to use default Button sizing - Maintains size="icon" for proper icon button behavior - Applies to WindowToolbar and CommunityNIPDetailRenderer
This commit is contained in:
@@ -106,9 +106,8 @@ export function WindowToolbar({
|
||||
<>
|
||||
{/* Edit button */}
|
||||
<Button
|
||||
variant="ghost"
|
||||
variant="link"
|
||||
size="icon"
|
||||
className="h-8 w-8"
|
||||
onClick={handleEdit}
|
||||
title="Edit command"
|
||||
aria-label="Edit command"
|
||||
@@ -119,9 +118,8 @@ export function WindowToolbar({
|
||||
{/* Copy button for NIPs */}
|
||||
{isNipWindow && (
|
||||
<Button
|
||||
variant="ghost"
|
||||
variant="link"
|
||||
size="icon"
|
||||
className="h-8 w-8"
|
||||
onClick={handleCopyNip}
|
||||
title="Copy NIP markdown"
|
||||
aria-label="Copy NIP markdown"
|
||||
@@ -136,9 +134,8 @@ export function WindowToolbar({
|
||||
<DropdownMenu>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
variant="link"
|
||||
size="icon"
|
||||
className="h-8 w-8"
|
||||
title="More actions"
|
||||
aria-label="More actions"
|
||||
>
|
||||
@@ -170,9 +167,8 @@ export function WindowToolbar({
|
||||
)}
|
||||
{onClose && (
|
||||
<Button
|
||||
variant="ghost"
|
||||
variant="link"
|
||||
size="icon"
|
||||
className="h-8 w-8"
|
||||
onClick={onClose}
|
||||
title="Close window"
|
||||
aria-label="Close window"
|
||||
|
||||
@@ -48,7 +48,7 @@ export function CommunityNIPDetailRenderer({ event }: { event: NostrEvent }) {
|
||||
<div className="flex items-start justify-between gap-4">
|
||||
<h1 className="text-3xl font-bold">{title}</h1>
|
||||
<Button
|
||||
variant="ghost"
|
||||
variant="link"
|
||||
size="icon"
|
||||
onClick={handleCopy}
|
||||
title="Copy NIP markdown"
|
||||
|
||||
Reference in New Issue
Block a user