fix: highlight plugin and theme cards in settings search
This commit is contained in:
@@ -189,10 +189,13 @@ interface PluginCardProps {
|
|||||||
|
|
||||||
function PluginCard({ plugin, isExpanded, isForceEnabled, isManaged, needsApproval, controlsDisabled, onToggleExpand, onToggle, onUninstall, onUpdateSettings }: PluginCardProps) {
|
function PluginCard({ plugin, isExpanded, isForceEnabled, isManaged, needsApproval, controlsDisabled, onToggleExpand, onToggle, onUninstall, onUpdateSettings }: PluginCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className={cn(
|
<div
|
||||||
'rounded-lg border transition-colors',
|
data-search-label={plugin.name}
|
||||||
plugin.status === 'error' ? 'border-destructive/40' : 'border-border',
|
className={cn(
|
||||||
)}>
|
'rounded-lg border transition-colors',
|
||||||
|
plugin.status === 'error' ? 'border-destructive/40' : 'border-border',
|
||||||
|
)}
|
||||||
|
>
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
<div className="flex items-center gap-3 p-3">
|
<div className="flex items-center gap-3 p-3">
|
||||||
<div className="flex-1 min-w-0 cursor-pointer" onClick={onToggleExpand}>
|
<div className="flex-1 min-w-0 cursor-pointer" onClick={onToggleExpand}>
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ interface ThemeCardProps {
|
|||||||
|
|
||||||
function ThemeCard({ name, author, preview, isActive, isDefault, isForceEnabled, disabled, variants, onActivate, onRemove }: ThemeCardProps) {
|
function ThemeCard({ name, author, preview, isActive, isDefault, isForceEnabled, disabled, variants, onActivate, onRemove }: ThemeCardProps) {
|
||||||
return (
|
return (
|
||||||
<div className="relative">
|
<div data-search-label={name} className="relative">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={onActivate}
|
onClick={onActivate}
|
||||||
|
|||||||
Reference in New Issue
Block a user