mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-14 08:03:58 +00:00
feat: icon fix (#176)
* fix: remove grayscale filter from provider icons and use npx in lefthook
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
13
lefthook.yml
13
lefthook.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user