feat: icon fix (#176)

* fix: remove grayscale filter from provider icons and use npx in lefthook
This commit is contained in:
Felarof
2026-01-07 14:51:32 -08:00
committed by GitHub
parent 2c833e4dd2
commit 1539384603
3 changed files with 4 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ export const ProviderTemplateCard: FC<ProviderTemplateCardProps> = ({
onClick={() => onUseTemplate(template)}
className="group flex w-full items-center justify-between rounded-lg border border-border bg-background p-4 text-left transition-all hover:border-[var(--accent-orange)] hover:shadow-md"
>
<div className="flex items-center gap-3 text-muted-foreground group-hover:text-[var(--accent-orange)]">
<div className="flex items-center gap-3 text-accent-orange/70 transition-colors group-hover:text-accent-orange">
<ProviderIcon type={template.id} size={28} />
<span className="font-medium text-foreground">{template.name}</span>
</div>

View File

@@ -20,13 +20,13 @@ export const HubProviderRow: FC<HubProviderRowProps> = ({
const iconUrl = useMemo(() => getFaviconUrl(provider.url), [provider.url])
return (
<div className="flex w-full items-center gap-4 rounded-xl border border-border bg-card p-4">
<div className="group flex w-full items-center gap-4 rounded-xl border border-border bg-card p-4 transition-all hover:border-[var(--accent-orange)] hover:shadow-md">
<div className="flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted">
{iconUrl ? (
<img
src={iconUrl}
alt={`${provider.name} icon`}
className="h-full w-full object-cover opacity-60 grayscale"
className="h-full w-full object-cover"
/>
) : (
<Globe2 className="h-5 w-5 text-muted-foreground" />

View File

@@ -18,7 +18,7 @@ pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: bunx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
stage_fixed: true
file-length:
@@ -43,14 +43,3 @@ pre-push:
if [[ "$branch" == "main" || "$branch" == "master" ]]; then
exit 0
fi
if [[ ! "$branch" =~ ^(feat|fix|bugfix|hotfix|release|docs|refactor|test|chore|experiment)/[a-z0-9-]+$ ]]; then
echo "Branch name '$branch' doesn't match required format."
echo "Use: <type>/<short-description>"
echo "Types: feat, fix, bugfix, hotfix, release, docs, refactor, test, chore, experiment"
echo "Example: feat/add-auth, fix/login-crash"
echo ""
echo "To rename your branch:"
echo " git branch -m <new-name>"
echo " git push -u origin <new-name>"
exit 1
fi